From 7a44fc5381dabb65dfdb667dc442108d0465799a Mon Sep 17 00:00:00 2001 From: dzwdz Date: Sat, 18 Sep 2021 09:31:52 +0200 Subject: `init`: start work on the tar driver --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 $^ > $@ -- cgit v1.2.3