VirtualBox

Changeset 5898 in vbox for trunk/src/VBox/Devices/PC


Ignore:
Timestamp:
Dec 2, 2007 6:08:26 AM (17 years ago)
Author:
vboxsync
Message:

kBuild 0.1.2 preps: Avoid the shell at all costs because cygwin is messing up on smp boxes and screwing up the tinderbox.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/PC/BIOS/Makefile.kmk

    r4071 r5898  
    6363$(PATH_TARGET)/_rombios_.c: $(PATH_SUB_CURRENT)/rombios.c $(PATH_SUB_CURRENT)/logo.c $(PATH_SUB_CURRENT)/apmbios.S | $(call DIRDEP,$(TARGET_PATH))
    6464        $(call MSG_TOOL,cpp,PcBiosBin,$<,$@)
     65ifdef 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 $@ $<
     67else
    6568        $(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 $< > $@
     69endif
    6670
    6771# 2. compile to intermediate asm file - tempfile clashes, make sure it's built alone.
     
    7478$(PATH_TARGET)/rombios1.s: $(PATH_TARGET)/rombios0.s
    7579        $(call MSG_TOOL,Adjusting BCC Assembly,PcBiosBin,$<,$@)
     80ifdef KMK_NEW_SED
     81        $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^
     82else
    7683        $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' $^ > $@
     84endif
    7785
    7886# 4. assemble the intermediate asm file. (also creates a listing rombios.lst)
    7987$(PATH_TARGET)/pcbios.tmp $(PATH_TARGET)/pcbios.lst: $(PATH_TARGET)/rombios1.s
    8088        $(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 - < $^
     89ifdef 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
     91else
     92        $(QUIET)$(VBOX_AS86) -b $(PATH_TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst < $^
     93endif
    8294
    8395# 5. calculate checksums for the final BIOS image.
     
    90102$(PATH_TARGET)/pcbios-syms.h: $(PATH_TARGET)/pcbios.lst $(MAKEFILE_CURRENT)
    91103        $(call MSG_GENERATE,PcBiosBin,$<,$@)
     104ifdef 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
     110else
    92111        $(QUIET)$(SED) \
    93112                -e  '/^[0-9][0-9][0-9][0-9][0-9]                       000[0-9A-F]*            [[:space:]]*[a-zA-Z0-9_]*:/!d' \
    94113                -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"),/' \
    95114                $(PATH_TARGET)/pcbios.lst > $@
     115endif
    96116
    97117
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette