Auxillary files for building and testing via PXE

This commit is contained in:
Nero 2019-03-13 21:07:45 +00:00
parent 6270e04339
commit e76ec880bb
2 changed files with 10 additions and 0 deletions

5
Makefile Normal file
View File

@ -0,0 +1,5 @@
kernel.com: *.asm
nasm -s -o kernel.com main.asm
clean:
rm -f kernel.com

5
run.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
exec qemu-system-x86_64 -boot n \
-option-rom /usr/share/qemu/pxe-rtl8139.rom \
-device e1000,netdev=mynet0,mac=52:54:00:12:34:56 \
-netdev user,id=mynet0,net=192.168.76.0/24,dhcpstart=192.168.76.9,tftp=$PWD,bootfile=kernel.com