From 32075c0a70c262faef86220b9f42db4836962f9e Mon Sep 17 00:00:00 2001 From: dzwdz Date: Thu, 16 Sep 2021 06:50:15 +0000 Subject: scaffolding for the initrd: init can read files appended to it currently this is just a text file, but it will be a tar archive later on --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9a758cf..def6452 100644 --- a/Makefile +++ b/Makefile @@ -44,10 +44,14 @@ out/fs/boot/kernel.bin: src/kernel/linker.ld $(call from_sources, src/kernel/) @$(CC) $(LFLAGS) -T $^ -o $@ grub-file --is-x86-multiboot $@ -out/fs/boot/init: src/init/linker.ld $(call from_sources, src/init/) +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 + @mkdir -p $(@D) + @cat $^ > $@ + out/fs/boot/grub/grub.cfg: grub.cfg @mkdir -p $(@D) @cp $< $@ -- cgit v1.2.3