Boot signature via include

This commit is contained in:
Nero 2020-03-01 17:20:03 +00:00
parent 79bedd9013
commit 0f833da221
2 changed files with 4 additions and 2 deletions

View File

@ -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
View File

@ -0,0 +1,2 @@
times (0x1FE - ($-$$)) db 0
dw 0xAA55