Define 16bit OFFSET_x to be 32bit addresses; introduce CONFIG_BIOS_ADDR.
[seabios.git] / Makefile
index dda74cdeb8ea087e448f40d1d4270968b077ff1b..b939ed28538724d4f900625d4ff328e682e065ee 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -98,7 +98,8 @@ $(OUT)romlayout16.o: romlayout.S $(OUT)blob.16.s $(TABLEASM)
 
 $(OUT)rom16.o: $(OUT)romlayout16.o $(OUT)rombios16.lds
        @echo "  Linking $@"
-       $(Q)ld -T $(OUT)rombios16.lds $< -o $@
+       $(Q)ld -T $(OUT)rombios16.lds $< -o $@.16
+       $(Q)objcopy --change-addresses 0xf0000 $@.16 $@
 
 $(OUT)romlayout32.o: $(OUT)rom16.offset.auto.h ; $(call whole-compile, $(CFLAGS), $(addprefix src/, $(SRC32)),$@)