From 0d8f101483cbc72261514806da2df7c0bfad88f7 Mon Sep 17 00:00:00 2001 From: "Alex Xu (Hello71)" Date: Sun, 19 Jul 2020 07:39:22 -0400 Subject: add load-random-seed --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f36ca69..b82a41e 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,12 @@ +CFLAGS += -Wall -Wextra + all: initramfs.img -initramfs.img: gen_init_cpio dropbear_ed25519_host_key modules.sh +initramfs.img: gen_init_cpio load-random-seed dropbear_ed25519_host_key modules.sh ./make -gen_init_cpio: gen_init_cpio.c - $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) gen_init_cpio.c -o $@ +%: %.c + $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $< -o $@ dropbear_ed25519_host_key: dropbearkey -t ed25519 -f $@ @@ -20,7 +22,7 @@ install: initramfs.img mv /boot/initramfs.img.new /boot/initramfs.img clean: - rm -f initramfs.img initramfs.d gen_init_cpio + rm -f initramfs.img initramfs.d gen_init_cpio load-random-seed -include initramfs.d -- cgit v1.2.3-70-g09d2