Changeset 41499 in vbox
- Timestamp:
- May 30, 2012 3:08:11 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS-new/Makefile.kmk
r41498 r41499 14 14 include $(KBUILD_PATH)/subheader.kmk 15 15 16 # 17 # VBoxBios - Template for building the BIOS bits. 18 # 19 TEMPLATE_VBoxBios = PXE ROM 20 TEMPLATE_VBoxBios_TOOL = OPENWATCOM-16 21 TEMPLATE_VBoxBios_LDTOOL = OPENWATCOM-WL 22 TEMPLATE_VBoxBios_ASTOOL = OPENWATCOM-16 23 TEMPLATE_VBoxBios_BLD_TRG = os-agnostic 24 TEMPLATE_VBoxBios_BLD_TRG_ARCH = x86 25 TEMPLATE_VBoxBios_BINSUFF = .rom 26 TEMPLATE_VBoxBios_INCS = . 27 TEMPLATE_VBoxBios_ASFLAGS = -q -0 -wx 28 TEMPLATE_VBoxBios_CFLAGS = -q -0 -wx -zu -s -oas -d1+ -ms 29 TEMPLATE_VBoxBios_DEFS = \ 30 VBOX_PC_BIOS \ 31 VBOX_LANBOOT_SEG=0xE200 \ 32 VBOX_VERSION_STRING=\"0.9\" \ 33 VBOX_WITH_SCSI \ 34 VBOX_WITH_AHCI 35 TEMPLATE_VBoxBios_LDFLAGS = system dos \ 36 debug all \ 37 option quiet, nofarcalls, map, verbose, statics, symfile \ 38 output raw offset=0xF0000 order \ 39 clname DATA segaddr=0xF000 segment _DATA \ 40 clname CODE \ 41 segment _TEXT segaddr=0xF000 offset=0x1600 \ 42 segment BIOS32 segaddr=0xF000 offset=0xDE00 \ 43 segment BIOSSEG segaddr=0xF000 offset=0xE000 \ 44 library clibs.lib \ 45 disable 1014, 1023, 2120 46 TEMPLATE_VBoxBios_LNK_DEPS = $(VBOX_BIOSSUMS) 47 TEMPLATE_VBoxBios_POST_CMDS = \ 48 $(QUIET)$(EXT_MV) -f $(out) $(out).tmp \ 49 && $(VBOX_BIOSSUMS) $(out).tmp $(out) \ 50 && $(EXT_RM) -f $(out).tmp 16 ## @todo move to Config.kmk. 17 ifndef VBOX_WITHOUT_OPEN_WATCOM 18 if1of ($(KBUILD_TARGET), os2 win linux) 19 VBOX_WITH_OPEN_WATCOM := 1 20 endif 21 endif 51 22 52 23 53 # 54 # VBoxPcBios - The PC BIOS. 55 # 56 MISCBINS += VBoxPcBios 57 VBoxPcBios_TEMPLATE = VBoxBios 58 VBoxPcBios_SOURCES = \ 59 bios.c \ 60 print.c \ 61 ata.c \ 62 floppy.c \ 63 eltorito.c \ 64 boot.c \ 65 keyboard.c \ 66 disk.c \ 67 serial.c \ 68 system.c \ 69 timepci.c \ 70 ps2mouse.c \ 71 parallel.c \ 72 logo.c \ 73 scsi.c \ 74 ahci.c \ 75 pciutil.c \ 76 vds.c \ 77 pcibio32.asm \ 78 orgs.asm 24 ifdef VBOX_WITH_OPEN_WATCOM 25 26 # 27 # VBoxBios - Template for building the BIOS bits. 28 # 29 TEMPLATE_VBoxBios = PXE ROM 30 TEMPLATE_VBoxBios_TOOL = OPENWATCOM-16 31 TEMPLATE_VBoxBios_LDTOOL = OPENWATCOM-WL 32 TEMPLATE_VBoxBios_ASTOOL = OPENWATCOM-16 33 TEMPLATE_VBoxBios_BLD_TRG = os-agnostic 34 TEMPLATE_VBoxBios_BLD_TRG_ARCH = x86 35 TEMPLATE_VBoxBios_BINSUFF = .rom 36 TEMPLATE_VBoxBios_INCS = . 37 TEMPLATE_VBoxBios_ASFLAGS = -q -0 -wx 38 TEMPLATE_VBoxBios_CFLAGS = -q -0 -wx -zu -s -oas -d1+ -ms 39 TEMPLATE_VBoxBios_DEFS = \ 40 VBOX_PC_BIOS \ 41 VBOX_LANBOOT_SEG=0xE200 \ 42 VBOX_VERSION_STRING=\"0.9\" \ 43 VBOX_WITH_SCSI \ 44 VBOX_WITH_AHCI 45 TEMPLATE_VBoxBios_LDFLAGS = system dos \ 46 debug all \ 47 option quiet, nofarcalls, map, verbose, statics, symfile \ 48 output raw offset=0xF0000 order \ 49 clname DATA segaddr=0xF000 segment _DATA \ 50 clname CODE \ 51 segment _TEXT segaddr=0xF000 offset=0x1600 \ 52 segment BIOS32 segaddr=0xF000 offset=0xDE00 \ 53 segment BIOSSEG segaddr=0xF000 offset=0xE000 \ 54 library clibs.lib \ 55 disable 1014, 1023, 2120 56 TEMPLATE_VBoxBios_LNK_DEPS = $(VBOX_BIOSSUMS) 57 TEMPLATE_VBoxBios_POST_CMDS = \ 58 $(QUIET)$(EXT_MV) -f $(out) $(out).tmp \ 59 && $(VBOX_BIOSSUMS) $(out).tmp $(out) \ 60 && $(EXT_RM) -f $(out).tmp 61 62 63 # 64 # VBoxPcBios - The PC BIOS. 65 # 66 MISCBINS += VBoxPcBios 67 VBoxPcBios_TEMPLATE = VBoxBios 68 VBoxPcBios_SOURCES = \ 69 bios.c \ 70 print.c \ 71 ata.c \ 72 floppy.c \ 73 eltorito.c \ 74 boot.c \ 75 keyboard.c \ 76 disk.c \ 77 serial.c \ 78 system.c \ 79 timepci.c \ 80 ps2mouse.c \ 81 parallel.c \ 82 logo.c \ 83 scsi.c \ 84 ahci.c \ 85 pciutil.c \ 86 vds.c \ 87 pcibio32.asm \ 88 orgs.asm 89 90 # 91 # Updates the alternative source file. 92 # 93 update-bios-source | $(PATH_SUB_CURRENT)/VBoxBiosAlternative.asm: \ 94 $$(VBoxPcBios_1_TARGET) \ 95 $$(MakeDebianBiosAssembly_1_TARGET) 96 $(MakeDebianBiosAssembly_1_TARGET) \ 97 --bios-image $< \ 98 --bios-map $(basename $<).map \ 99 --bios-sym $(basename $<).sym \ 100 --output $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.asm 101 $(QUIET)yasm -f bin -o $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.bin $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.asm 102 $(CMP) -l -- $< $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.bin 103 if $(CMP_EXT) -s -- $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.asm $(PATH_ROOT)/src/VBox/Devices/PC/BIOS-new/VBoxBiosAlternative.asm; \ 104 then \ 105 $(CP_EXT) -- $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.asm $(PATH_ROOT)/src/VBox/Devices/PC/BIOS-new/VBoxBiosAlternative.asm; \ 106 fi 107 $(RM) -f -- $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.asm $(VBoxPcBios_0_OUTDIR)/VBoxBiosAlternative.bin 108 109 endif # VBOX_WITH_OPEN_WATCOM 79 110 80 111 … … 88 119 PcBiosBin_CLEAN = $(PcBiosBin_0_OUTDIR)/PcBiosBin.c 89 120 90 $$(PcBiosBin_0_OUTDIR)/PcBiosBin.c: $$(VBoxPcBios_1_TARGET) $(VBOX_BIN2C) | $$(dir $$@) 121 ifdef VBOX_WITH_OPEN_WATCOM 122 $$(PcBiosBin_0_OUTDIR)/PcBiosBin.c: $$(VBoxPcBios_1_TARGET) $(VBOX_BIN2C) | $$(dir $$@) 91 123 $(call MSG_TOOL,bin2c,PcBiosBin,$<,$@) 92 124 $(QUIET)$(VBOX_BIN2C) -min 64 -max 256 -mask 0xffff -ascii -export PcBiosBinary $< $@ 125 else 126 $$(PcBiosBin_0_OUTDIR)/PcBiosBin.c: $(PATH_SUB_CURRENT)/VBoxBiosAlternative.asm $(VBOX_BIN2C) | $$(dir $$@) 127 $(call MSG_TOOL,bin2c,PcBiosBin,$<,$@) 128 $(QUIET)yasm -f bin -o $(PcBiosBin_0_OUTDIR)/VBoxBiosAlternative.bin $< 129 $(QUIET)$(VBOX_BIN2C) -min 64 -max 256 -mask 0xffff -ascii -export PcBiosBinary $(PcBiosBin_0_OUTDIR)/VBoxBiosAlternative.bin $@ 130 $(QUIET)$(RM) -f -- $$(PcBiosBin_0_OUTDIR)/VBoxBiosAlternative.bin 131 endif 93 132 94 133
Note:
See TracChangeset
for help on using the changeset viewer.