summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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 $< $@