2016-08-15 10:27:54 +00:00
|
|
|
include $(REP_DIR)/lib/mk/virtualbox5-common.inc
|
|
|
|
|
|
|
|
ifeq ($(shell which yasm),)
|
|
|
|
REQUIRES += installation_of_yasm
|
|
|
|
endif
|
|
|
|
|
2016-08-17 10:07:19 +00:00
|
|
|
SRC_O += VBoxPcBiosBinary8086.o VBoxPcBiosBinary286.o VBoxPcBiosBinary386.o
|
|
|
|
SRC_O += VBoxVgaBiosBinary8086.o VBoxVgaBiosBinary286.o VBoxVgaBiosBinary386.o
|
|
|
|
SRC_O += XVBoxBiosLogoBin.o
|
2016-08-15 10:27:54 +00:00
|
|
|
|
2016-08-17 10:07:19 +00:00
|
|
|
VBox%.o : VBox%.rom
|
2016-08-15 10:27:54 +00:00
|
|
|
$(MSG_CONVERT)$@
|
2016-08-17 10:07:19 +00:00
|
|
|
$(VERBOSE)echo ".global g_ab$*, g_cb$*;" \
|
2016-08-15 10:27:54 +00:00
|
|
|
".data;" \
|
2016-08-17 10:07:19 +00:00
|
|
|
"g_cb$*:; .long g_ab$*End - g_ab$*;" \
|
2016-08-15 10:27:54 +00:00
|
|
|
".align 4096;" \
|
2016-08-17 10:07:19 +00:00
|
|
|
"g_ab$*:; .incbin \"$<\";" \
|
|
|
|
"g_ab$*End:;" | \
|
2016-08-15 10:27:54 +00:00
|
|
|
$(AS) $(AS_OPT) -f -o $@ -
|
|
|
|
|
2016-08-17 10:07:19 +00:00
|
|
|
VBoxPcBiosBinary%.rom: Devices/PC/BIOS/VBoxBiosAlternative%.asm
|
2016-08-15 10:27:54 +00:00
|
|
|
$(MSG_ASSEM)
|
|
|
|
$(VERBOSE)yasm -f bin -o $@ $<
|
|
|
|
|
2016-08-17 10:07:19 +00:00
|
|
|
VBoxVgaBiosBinary%.rom: Devices/Graphics/BIOS/VBoxVgaBiosAlternative%.asm
|
2016-08-15 10:27:54 +00:00
|
|
|
$(MSG_ASSEM)
|
|
|
|
$(VERBOSE)yasm -f bin -o $@ $<
|
|
|
|
|
2016-08-17 10:07:19 +00:00
|
|
|
XVBoxBiosLogoBin.o: Devices/Graphics/BIOS/ose_logo.bmp
|
2016-08-15 10:27:54 +00:00
|
|
|
$(MSG_CONVERT)$@
|
|
|
|
$(VERBOSE)echo ".global g_abVgaDefBiosLogo, g_cbVgaDefBiosLogo;" \
|
|
|
|
".data;" \
|
|
|
|
"g_cbVgaDefBiosLogo:; .long g_abVgaDefBiosLogoEnd - g_abVgaDefBiosLogo;" \
|
|
|
|
".align 4096;" \
|
|
|
|
"g_abVgaDefBiosLogo:; .incbin \"$<\";" \
|
|
|
|
"g_abVgaDefBiosLogoEnd:;" | \
|
|
|
|
$(AS) $(AS_OPT) -f -o $@ -
|
|
|
|
|
|
|
|
vpath %.bmp $(VBOX_DIR)
|