summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-11 08:09:06 -0500
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-11 08:09:28 -0500
commit9d4241c6b0122b354f0d1ae643ed7912347db942 (patch)
treee8ae110c037e9cd9113f3a736529562afd6ae607
parent4eb0a578d5a950064b7b75ec26608f0f2687f2a5 (diff)
downloadminitramfs-9d4241c6b0122b354f0d1ae643ed7912347db942.tar.xz
minitramfs-9d4241c6b0122b354f0d1ae643ed7912347db942.zip
dynamically generate cpio_list deps
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 746287f..1db17f7 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ KERNVER ?= $(lastword $(subst /,$(space),$(wildcard /lib/modules/*/)))
all: initramfs.img
-initramfs.img: gen_init_cpio load-random-seed dropbear_ed25519_host_key modules.dep
+initramfs.img: gen_init_cpio modules.dep $(shell awk '$$1 == "file" { print $$3 }' cpio_list.txt)
KERNVER=$(KERNVER) COMPRESSOR="zstd -19 -c -T0" ./make
%: %.c