Changeset 5898 in vbox for trunk/src/VBox/Devices/PC
- Timestamp:
- Dec 2, 2007 6:08:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/PC/BIOS/Makefile.kmk
r4071 r5898 63 63 $(PATH_TARGET)/_rombios_.c: $(PATH_SUB_CURRENT)/rombios.c $(PATH_SUB_CURRENT)/logo.c $(PATH_SUB_CURRENT)/apmbios.S | $(call DIRDEP,$(TARGET_PATH)) 64 64 $(call MSG_TOOL,cpp,PcBiosBin,$<,$@) 65 ifdef KMK_USE_REDIRECT 66 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_TARGET) -I$(VBOX_PATH_DEVICES_SRC)/PC -I$(PATH_ROOT)/include -I$(PATH_OUT) -DBX_SMP_PROCESSORS=1 -DVBOX $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -P -o $@ $< 67 else 65 68 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_TARGET) -I$(VBOX_PATH_DEVICES_SRC)/PC -I$(PATH_ROOT)/include -I$(PATH_OUT) -DBX_SMP_PROCESSORS=1 -DVBOX $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -P $< > $@ 69 endif 66 70 67 71 # 2. compile to intermediate asm file - tempfile clashes, make sure it's built alone. … … 74 78 $(PATH_TARGET)/rombios1.s: $(PATH_TARGET)/rombios0.s 75 79 $(call MSG_TOOL,Adjusting BCC Assembly,PcBiosBin,$<,$@) 80 ifdef KMK_NEW_SED 81 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^ 82 else 76 83 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' $^ > $@ 84 endif 77 85 78 86 # 4. assemble the intermediate asm file. (also creates a listing rombios.lst) 79 87 $(PATH_TARGET)/pcbios.tmp $(PATH_TARGET)/pcbios.lst: $(PATH_TARGET)/rombios1.s 80 88 $(call MSG_COMPILE,PcBiosBin,$<,$@,AS) 81 $(QUIET)$(VBOX_AS86) -b $(PATH_TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst - < $^ 89 ifdef KMK_USE_REDIRECT 90 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst 91 else 92 $(QUIET)$(VBOX_AS86) -b $(PATH_TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst < $^ 93 endif 82 94 83 95 # 5. calculate checksums for the final BIOS image. … … 90 102 $(PATH_TARGET)/pcbios-syms.h: $(PATH_TARGET)/pcbios.lst $(MAKEFILE_CURRENT) 91 103 $(call MSG_GENERATE,PcBiosBin,$<,$@) 104 ifdef KMK_NEW_SED 105 $(QUIET)$(SED) \ 106 -e '/^[0-9][0-9][0-9][0-9][0-9] 000[0-9A-F]* [[:space:]]*[a-zA-Z0-9_]*:/!d' \ 107 -e 's/^[0-9][0-9][0-9][0-9][0-9] \(000[0-9A-F]*\) [[:space:]]*\([a-zA-Z0-9_]*\):.*$$/ DEFSYM(0x\1, "\2"),/' \ 108 --output $@ \ 109 $(PATH_TARGET)/pcbios.lst 110 else 92 111 $(QUIET)$(SED) \ 93 112 -e '/^[0-9][0-9][0-9][0-9][0-9] 000[0-9A-F]* [[:space:]]*[a-zA-Z0-9_]*:/!d' \ 94 113 -e 's/^[0-9][0-9][0-9][0-9][0-9] \(000[0-9A-F]*\) [[:space:]]*\([a-zA-Z0-9_]*\):.*$$/ DEFSYM(0x\1, "\2"),/' \ 95 114 $(PATH_TARGET)/pcbios.lst > $@ 115 endif 96 116 97 117
Note:
See TracChangeset
for help on using the changeset viewer.