Ninja buildsystem produces working bootloader

This commit is contained in:
Justin C. Miller
2019-02-02 18:24:58 -08:00
parent a1fe745a53
commit acdca19f59
6 changed files with 47 additions and 9 deletions

View File

@@ -65,7 +65,7 @@ rule nasm
rule exe
description = Linking $name
command = $ld -o $out $in $libs
command = $ld $ldflags -o $out $in $libs
rule lib
description = Archiving $name
@@ -127,7 +127,7 @@ build $builddir/popcorn.fat : cp $srcroot/assets/ovmf/x64/OVMF.fd
build $builddir/fatroot/popcorn.elf : cp $builddir/host/popcorn.elf
name = kernel to FAT image
build $builddir/fatroot/efi/boot/bootx64.efi : cp $builddir/host/boot.efi
build $builddir/fatroot/efi/boot/bootx64.efi : cp $builddir/boot/boot.efi
name = bootloader to FAT image
build $builddir/fatroot/initrd.img : makerd ${srcroot}/assets/initrd.toml | $