summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index def6452..208b304 100644
--- a/Makefile
+++ b/Makefile
@@ -48,7 +48,10 @@ out/raw_init: src/init/linker.ld $(call from_sources, src/init/)
@mkdir -p $(@D)
@$(CC) $(LFLAGS) -T $^ -o $@
-out/fs/boot/init: out/raw_init fake_initrd.txt
+out/initrd.tar: $(shell find initrd/)
+ tar cf $@ initrd/
+
+out/fs/boot/init: out/raw_init out/initrd.tar
@mkdir -p $(@D)
@cat $^ > $@