diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-14 16:32:08 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-14 16:37:53 +0200 |
commit | 9e1b472701fa1785989f6757243a3d81e97944f2 (patch) | |
tree | 653d994cbb1ce34a2e7c396162f6b1e2be7d02b4 /Makefile | |
parent | ef3e5e8e21d8ddefd35bcd082a06eb8e7ff461d5 (diff) | |
download | mkinitfs-9e1b472701fa1785989f6757243a3d81e97944f2.tar.bz2 mkinitfs-9e1b472701fa1785989f6757243a3d81e97944f2.tar.xz |
generate mkinitfs.conf
we may want have conditional default config depending on architecture
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -70,12 +70,13 @@ SED_REPLACE := -e 's:@VERSION@:$(FULL_VERSION):g' \ -e 's:@sysconfdir@:$(sysconfdir):g' \ -e 's:@datadir@:$(datadir):g' +DEFAULT_FEATURES ?= ata base cdrom ext2 ext4 keymap kms mmc raid scsi usb virtio -all: $(SBIN_FILES) $(SCRIPTS) +all: $(SBIN_FILES) $(SCRIPTS) $(CONF_FILES) clean: - rm -f $(SCRIPTS) + rm -f $(SCRIPTS) mkinitfs.conf help: @echo mkinitfs $(VERSION) @@ -116,3 +117,5 @@ install: $(SBIN_FILES) $(SHARE_FILES) $(CONF_FILES) $(INSTALL) -D $$i $(DESTDIR)/usr/share/mkinitfs/$$i;\ done +mkinitfs.conf: + echo 'features="$(DEFAULT_FEATURES)"' > $@ |