Changeset 42143 in vbox for trunk/src/VBox/Devices/Graphics
- Timestamp:
- Jul 13, 2012 12:46:05 PM (13 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/BIOS-new/Makefile.kmk
r42142 r42143 1 1 # $Id$ 2 2 ## @file 3 # Sub-Makefile for the New BIOS ROM.3 # Sub-Makefile for the New VGA BIOS ROM. 4 4 # 5 5 … … 23 23 24 24 # 25 # VBox Bios - Template for building the BIOS bits.25 # VBoxVgaBios - Template for building the BIOS bits. 26 26 # 27 TEMPLATE_VBox Bios = PXE ROM28 TEMPLATE_VBox Bios_TOOL = OPENWATCOM-1629 TEMPLATE_VBox Bios_LDTOOL = OPENWATCOM-WL30 TEMPLATE_VBox Bios_ASTOOL = OPENWATCOM-1631 TEMPLATE_VBox Bios_BLD_TRG = os-agnostic32 TEMPLATE_VBox Bios_BLD_TRG_ARCH = x8633 TEMPLATE_VBox Bios_BINSUFF = .rom34 TEMPLATE_VBox Bios_INCS = .35 TEMPLATE_VBox Bios_ASFLAGS = -q-wx36 TEMPLATE_VBox Bios_CFLAGS = -q -3 -wx -zl -zu -s -oas -d1+ -ms37 TEMPLATE_VBox Bios_DEFS = \38 VBOX_PC_BIOS \ 39 VBOX_LANBOOT_SEG=0xE200\40 VBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\"\41 VBOX_WITH_SCSI\42 VBOX_WITH_AHCI 43 TEMPLATE_VBox Bios_LDFLAGS = system dos \27 TEMPLATE_VBoxVgaBios = PXE ROM 28 TEMPLATE_VBoxVgaBios_TOOL = OPENWATCOM-16 29 TEMPLATE_VBoxVgaBios_LDTOOL = OPENWATCOM-WL 30 TEMPLATE_VBoxVgaBios_ASTOOL = OPENWATCOM-16 31 TEMPLATE_VBoxVgaBios_BLD_TRG = os-agnostic 32 TEMPLATE_VBoxVgaBios_BLD_TRG_ARCH = x86 33 TEMPLATE_VBoxVgaBios_BINSUFF = .rom 34 TEMPLATE_VBoxVgaBios_INCS = . 35 TEMPLATE_VBoxVgaBios_ASFLAGS = -q -0 -wx 36 TEMPLATE_VBoxVgaBios_CFLAGS = -q -3 -wx -zl -zu -s -oas -d1+ -ms 37 TEMPLATE_VBoxVgaBios_DEFS = VBE 38 # TEMPLATE_VBoxVgaBios_DEFS.debug = VGA_DEBUG - later 39 TEMPLATE_VBoxVgaBios_CDEFS = \ 40 'VBOX_VERSION_STRING="$(VBOX_VERSION_STRING)"' \ 41 'VBOX_VENDOR="$(VBOX_VENDOR)"' \ 42 'VBOX_PRODUCT="$(VBOX_PRODUCT)"' 43 TEMPLATE_VBoxVgaBios_LDFLAGS = system dos \ 44 44 debug all \ 45 45 option quiet, nofarcalls, map, verbose, statics, symfile \ 46 output raw offset=0xF0000 order \ 47 clname DATA segaddr=0xF000 segment _DATA \ 48 clname CODE \ 49 segment _TEXT segaddr=0xF000 offset=0x1600 \ 50 segment BIOS32 segaddr=0xF000 offset=0xDE00 \ 51 segment BIOSSEG segaddr=0xF000 offset=0xE000 \ 46 output raw offset=0xC0000 order \ 47 clname CODE \ 48 segment VGAROM segaddr=0xC000 \ 49 segment _TEXT segaddr=0xC000 offset=0xA00 \ 50 segment VBE32 segaddr=0xC000 offset=0x4600 \ 51 clname DATA \ 52 segment _DATA segaddr=0xC000 offset=0x4800 \ 52 53 disable 1014, 1023, 2120 53 TEMPLATE_VBoxBios_LNK_DEPS = $(VBOX_BIOSSUMS) 54 TEMPLATE_VBoxBios_POST_CMDS = \ 54 55 TEMPLATE_VBoxVgaBios_LNK_DEPS = $(VBOX_BIOSSUMS) 56 TEMPLATE_VBoxVgaBios_POST_CMDS = \ 55 57 $(QUIET)$(MV_EXT) -f $(out) $(out).tmp \ 56 58 && $(VBOX_BIOSSUMS) $(out).tmp $(out) \ … … 62 64 # 63 65 MISCBINS += VBoxPcBios 64 VBoxPcBios_TEMPLATE = VBox Bios66 VBoxPcBios_TEMPLATE = VBoxVgaBios 65 67 VBoxPcBios_SOURCES = \ 66 bios.c \ 67 print.c \ 68 ata.c \ 69 floppy.c \ 70 eltorito.c \ 71 boot.c \ 72 keyboard.c \ 73 disk.c \ 74 serial.c \ 75 system.c \ 76 timepci.c \ 77 pcibios.c \ 78 ps2mouse.c \ 79 parallel.c \ 80 logo.c \ 81 scsi.c \ 82 ahci.c \ 83 pciutil.c \ 84 vds.c \ 85 support.asm \ 86 pcibio32.asm \ 87 orgs.asm 68 vgarom.asm \ 69 vberom.asm \ 70 vgabios.c \ 71 vbe.c 88 72 89 73 # 90 74 # Updates the alternative source file. 91 75 # 92 update-bios-source | $(PATH_SUB_CURRENT)/VBox BiosAlternative.asm $(PATH_SUB_CURRENT)/VBoxBiosAlternative.md5sum: \76 update-bios-source | $(PATH_SUB_CURRENT)/VBoxVgaBiosAlternative.asm $(PATH_SUB_CURRENT)/VBoxVgaBiosAlternative.md5sum: \ 93 77 $$(VBoxPcBios_1_TARGET) \ 94 78 $$(MakeDebianBiosAssembly_1_TARGET) \ … … 99 83 --bios-map $(basename $<).map \ 100 84 --bios-sym $(basename $<).sym \ 101 --output $(VBoxPcBios_0_OUTDIR)/VBox BiosAlternative.asm102 $(QUIET)yasm -f bin -o $(VBoxPcBios_0_OUTDIR)/VBox BiosAlternative.bin $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.asm103 $(VBOX_VBOXCMP) $< $(VBoxPcBios_0_OUTDIR)/VBox BiosAlternative.bin104 $(CP) --changed -- $(VBoxPcBios_0_OUTDIR)/VBox BiosAlternative.asm $(PATH_ROOT)/src/VBox/Devices/PC/BIOS/VBoxBiosAlternative.asm85 --output $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.asm 86 $(QUIET)yasm -f bin -o $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.bin $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.asm 87 $(VBOX_VBOXCMP) $< $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.bin 88 $(CP) --changed -- $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.asm $(PATH_ROOT)/src/VBox/Devices/PC/BIOS/VBoxVgaBiosAlternative.asm 105 89 $(REDIRECT) -C $(dir $(VBoxPcBios_1_TARGET)) -- \ 106 $(MD5SUM_EXT) -bo $(VBoxPcBios_0_OUTDIR)/VBox BiosAlternative.md5sum $(notdir $(VBoxPcBios_1_TARGET))107 $(CP) --changed -- $(VBoxPcBios_0_OUTDIR)/VBox BiosAlternative.md5sum $(PATH_ROOT)/src/VBox/Devices/PC/BIOS/VBoxBiosAlternative.md5sum108 $(RM) -f -- $(VBoxPcBios_0_OUTDIR)/VBox BiosAlternative.asm $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.bin $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.md5sum90 $(MD5SUM_EXT) -bo $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.md5sum $(notdir $(VBoxPcBios_1_TARGET)) 91 $(CP) --changed -- $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.md5sum $(PATH_ROOT)/src/VBox/Devices/PC/BIOS/VBoxVgaBiosAlternative.md5sum 92 $(RM) -f -- $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.asm $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.bin $(VBoxPcBios_0_OUTDIR)/VBoxVgaBiosAlternative.md5sum 109 93 else 110 $(QUIET)$(ECHO) "Fatal error: Can only update VBox BiosAlternative.asm/md5sum with a release build."94 $(QUIET)$(ECHO) "Fatal error: Can only update VBoxVgaBiosAlternative.asm/md5sum with a release build." 111 95 $(QUIET)exit 1 112 96 endif … … 116 100 117 101 # 118 # The library containing the PCBIOS image.102 # The library containing the VGA BIOS image. 119 103 # 120 LIBRARIES += PcBiosBin121 PcBiosBin_TEMPLATE = VBOXR3122 PcBiosBin_DEFS = IN_VBOXDD2123 PcBiosBin_SOURCES = $(PcBiosBin_0_OUTDIR)/PcBiosBin.c124 PcBiosBin_CLEAN = $(PcBiosBin_0_OUTDIR)/PcBiosBin.c104 LIBRARIES += VgaBiosBin 105 VgaBiosBin_TEMPLATE = VBOXR3 106 VgaBiosBin_DEFS = IN_VBOXDD2 107 VgaBiosBin_SOURCES = $(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c 108 VgaBiosBin_CLEAN = $(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c 125 109 126 110 ifdef VBOX_WITH_OPEN_WATCOM 127 $$( PcBiosBin_0_OUTDIR)/PcBiosBin.c: $$(VBoxPcBios_1_TARGET) $(VBOX_BIN2C) | $$(dir $$@)128 $(call MSG_TOOL,bin2c, PcBiosBin,$<,$@)129 $(QUIET)$(VBOX_BIN2C) -min 64 -max 256 -mask 0xffff -ascii -export PcBiosBinary $< $@111 $$(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c: $$(VBoxPcBios_1_TARGET) $(VBOX_BIN2C) | $$(dir $$@) 112 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@) 113 $(QUIET)$(VBOX_BIN2C) -min 32 -max 36 -mask 0x0fff -ascii -export VgaBiosBinary $< $@ 130 114 else 131 PcBiosBin_CLEAN += $(PcBiosBin_0_OUTDIR)/VBoxPcBios.rom115 VgaBiosBin_CLEAN += $(VgaBiosBin_0_OUTDIR)/VBoxPcBios.rom 132 116 133 $$( PcBiosBin_0_OUTDIR)/PcBiosBin.c + $$(PcBiosBin_0_OUTDIR)/VBoxPcBios.rom: \134 $(PATH_SUB_CURRENT)/VBox BiosAlternative.asm \135 $(PATH_SUB_CURRENT)/VBox BiosAlternative.md5sum \117 $$(VgaBiosBin_0_OUTDIR)/VgaBiosBin.c + $$(VgaBiosBin_0_OUTDIR)/VBoxPcBios.rom: \ 118 $(PATH_SUB_CURRENT)/VBoxVgaBiosAlternative.asm \ 119 $(PATH_SUB_CURRENT)/VBoxVgaBiosAlternative.md5sum \ 136 120 $(VBOX_BIN2C) | $$(dir $$@) 137 $(call MSG_TOOL,bin2c, PcBiosBin,$<,$@)138 $(QUIET)yasm -f bin -o $( PcBiosBin_0_OUTDIR)/VBoxPcBios.rom $<139 $(QUIET)$(REDIRECT) -C $( PcBiosBin_0_OUTDIR) -- \121 $(call MSG_TOOL,bin2c,VgaBiosBin,$<,$@) 122 $(QUIET)yasm -f bin -o $(VgaBiosBin_0_OUTDIR)/VBoxPcBios.rom $< 123 $(QUIET)$(REDIRECT) -C $(VgaBiosBin_0_OUTDIR) -- \ 140 124 $(MD5SUM_EXT) -c $(basename $<).md5sum 141 $(QUIET)$(VBOX_BIN2C) -min 64 -max 256 -mask 0xffff -ascii -export PcBiosBinary $(PcBiosBin_0_OUTDIR)/VBoxPcBios.rom $@142 $(QUIET)$(RM) -f -- $$( PcBiosBin_0_OUTDIR)/VBoxPcBios.rom125 $(QUIET)$(VBOX_BIN2C) -min 32 -max 36 -mask 0x0fff -ascii -export VgaBiosBinary $(VgaBiosBin_0_OUTDIR)/VBoxPcBios.rom $@ 126 $(QUIET)$(RM) -f -- $$(VgaBiosBin_0_OUTDIR)/VBoxPcBios.rom 143 127 endif 144 128 … … 147 131 # MakeDebianBiosAssembly - For distros without OpenWatcom. 148 132 # 149 BLDPROGS += MakeDebianBiosAssembly150 MakeDebian BiosAssembly_TEMPLATE = VBoxAdvBldProg151 MakeDebian BiosAssembly_DEFS = IN_DIS152 MakeDebian BiosAssembly_SOURCES = MakeDebianBiosAssembly.cpp153 MakeDebian BiosAssembly_LIBS = \133 ##BLDPROGS += MakeDebianVgaBiosAssembly 134 MakeDebianVgaBiosAssembly_TEMPLATE = VBoxAdvBldProg 135 MakeDebianVgaBiosAssembly_DEFS = IN_DIS 136 MakeDebianVgaBiosAssembly_SOURCES = MakeDebianVgaBiosAssembly.cpp 137 MakeDebianVgaBiosAssembly_LIBS = \ 154 138 $(PATH_STAGE_LIB)/DisasmBldProg$(VBOX_SUFF_LIB) 155 139
Note:
See TracChangeset
for help on using the changeset viewer.