From 0f833da22179d9941f258299cb092e22679f5203 Mon Sep 17 00:00:00 2001 From: Nero <41307858+nero@users.noreply.github.com> Date: Sun, 1 Mar 2020 17:20:03 +0000 Subject: [PATCH] Boot signature via include --- Makefile | 4 ++-- bootsig.inc | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 bootsig.inc diff --git a/Makefile b/Makefile index ac9bf45..8f9f438 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ QEMU = qemu-system-$(QEMU_ARCH) QEMU_ARGS = $(addprefix --option-rom ,$(ROMS)) NASM = nasm -NASM_ARGS = -s -Ilib -Plib/nasmcomp.asm -w-macro-params +NASM_ARGS = -s -I. -Ilib -w-macro-params EMUL = utils/emul @@ -48,7 +48,7 @@ vga11.com: cp437.bin %.bs: %.asm $(NASM) $(NASM_ARGS) -DBASE=0x7C00 -DBOOT -o $@ $< : 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 %.0: %.asm diff --git a/bootsig.inc b/bootsig.inc new file mode 100644 index 0000000..50f4705 --- /dev/null +++ b/bootsig.inc @@ -0,0 +1,2 @@ +times (0x1FE - ($-$$)) db 0 +dw 0xAA55