Boot signature via include
This commit is contained in:
parent
79bedd9013
commit
0f833da221
4
Makefile
4
Makefile
@ -9,7 +9,7 @@ QEMU = qemu-system-$(QEMU_ARCH)
|
|||||||
QEMU_ARGS = $(addprefix --option-rom ,$(ROMS))
|
QEMU_ARGS = $(addprefix --option-rom ,$(ROMS))
|
||||||
|
|
||||||
NASM = nasm
|
NASM = nasm
|
||||||
NASM_ARGS = -s -Ilib -Plib/nasmcomp.asm -w-macro-params
|
NASM_ARGS = -s -I. -Ilib -w-macro-params
|
||||||
|
|
||||||
EMUL = utils/emul
|
EMUL = utils/emul
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ vga11.com: cp437.bin
|
|||||||
%.bs: %.asm
|
%.bs: %.asm
|
||||||
$(NASM) $(NASM_ARGS) -DBASE=0x7C00 -DBOOT -o $@ $<
|
$(NASM) $(NASM_ARGS) -DBASE=0x7C00 -DBOOT -o $@ $<
|
||||||
: check boot signature
|
: check boot signature
|
||||||
test "$$(echo $$(xxd -p -l 2 -s 510 pxe.bs))" == 55aa
|
test "$$(echo $$(xxd -p -l 2 -s 510 $@))" == 55aa
|
||||||
|
|
||||||
# Network bootstrap protocol as used for PXE
|
# Network bootstrap protocol as used for PXE
|
||||||
%.0: %.asm
|
%.0: %.asm
|
||||||
|
2
bootsig.inc
Normal file
2
bootsig.inc
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
times (0x1FE - ($-$$)) db 0
|
||||||
|
dw 0xAA55
|
Loading…
Reference in New Issue
Block a user