Makefile: build initramfs.cpio in proper order
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
b603eacbb7
commit
0bd9472786
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
# Makefile stuff for all the booting and bootloader related stuff
|
# Makefile stuff for all the booting and bootloader related stuff
|
||||||
#
|
#
|
||||||
|
|
||||||
$(IMG): limine/limine $(KERNEL)
|
$(IMG): limine/limine $(KERNEL) $(INITRAMFS)
|
||||||
rm -rf $(IMG)
|
rm -rf $(IMG)
|
||||||
dd if=/dev/zero bs=1M count=0 seek=1025 of=$(IMG)
|
dd if=/dev/zero bs=1M count=0 seek=1025 of=$(IMG)
|
||||||
|
|
||||||
|
|
@ -39,7 +39,7 @@ $(INITRAMFS): initramfs/
|
||||||
$(Q)cd initramfs/ && find . | cpio -oH newc > ../$(INITRAMFS)
|
$(Q)cd initramfs/ && find . | cpio -oH newc > ../$(INITRAMFS)
|
||||||
|
|
||||||
.PHONY += run
|
.PHONY += run
|
||||||
run: edk2-ovmf $(INITRAMFS) $(IMG)
|
run: edk2-ovmf $(IMG)
|
||||||
qemu-system-$(ARCH) \
|
qemu-system-$(ARCH) \
|
||||||
-no-reboot \
|
-no-reboot \
|
||||||
-M q35 \
|
-M q35 \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue