summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authordzwdz2021-09-18 09:31:52 +0200
committerdzwdz2021-09-18 09:31:52 +0200
commit7a44fc5381dabb65dfdb667dc442108d0465799a (patch)
treeb371144793911a43c0751427b99580b744d17a3a /Makefile
parent32075c0a70c262faef86220b9f42db4836962f9e (diff)
`init`: start work on the tar driver
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 $^ > $@