aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2018-05-14 16:32:08 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-05-14 16:37:53 +0200
commit9e1b472701fa1785989f6757243a3d81e97944f2 (patch)
tree653d994cbb1ce34a2e7c396162f6b1e2be7d02b4 /Makefile
parentef3e5e8e21d8ddefd35bcd082a06eb8e7ff461d5 (diff)
downloadmkinitfs-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--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 68959fe..fc01d1a 100644
--- a/Makefile
+++ b/Makefile
@@ -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)"' > $@