Skip to content

Commit

Permalink
khj
Browse files Browse the repository at this point in the history
Signed-off-by: TalonFloof <[email protected]>
  • Loading branch information
TalonFloof committed Nov 20, 2024
1 parent 9322f1d commit b95a3dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ build_pc64: limine-zig
# objcopy -S kobold/zig-out/bin/kernel

iso: build_pc64
rm -r --force /tmp/limine
rm -r --force /tmp/kobold_iso
rm -r -f /tmp/limine
rm -r -f /tmp/kobold_iso
git clone --branch v8.x-binary --depth 1 https://github.com/limine-bootloader/limine /tmp/limine
mkdir -p /tmp/kobold_iso/EFI/BOOT
cp --force /tmp/limine/BOOTX64.EFI /tmp/limine/limine-uefi-cd.bin /tmp/limine/limine-bios-cd.bin /tmp/limine/limine-bios.sys boot/x86_64/* kobold/zig-out/bin/* /tmp/kobold_iso
cp -f /tmp/limine/BOOTX64.EFI /tmp/limine/limine-uefi-cd.bin /tmp/limine/limine-bios-cd.bin /tmp/limine/limine-bios.sys boot/x86_64/* kobold/zig-out/bin/* /tmp/kobold_iso
mv /tmp/kobold_iso/BOOTX64.EFI /tmp/kobold_iso/EFI/BOOT/BOOTX64.EFI
xorriso -as mkisofs -b limine-bios-cd.bin -no-emul-boot -boot-load-size 4 -boot-info-table --efi-boot limine-uefi-cd.bin -efi-boot-part --efi-boot-image --protective-msdos-label /tmp/kobold_iso -o kobold.iso
zig cc /tmp/limine/limine.c -o /tmp/limine/limine
/tmp/limine/limine bios-install kobold.iso
rm -r --force /tmp/limine
rm -r --force /tmp/kobold_iso
rm -r -f /tmp/limine
rm -r -f /tmp/kobold_iso

run_pc64: iso
qemu-system-x86_64 -enable-kvm -cpu host,migratable=off -m 8M -serial stdio -device pcie-pci-bridge -cdrom kobold.iso -smp 2 -no-hpet -no-shutdown -no-reboot
Expand Down

0 comments on commit b95a3dd

Please sign in to comment.