VirtualBox

Changeset 47045 in vbox


Ignore:
Timestamp:
Jul 8, 2013 4:30:54 PM (12 years ago)
Author:
vboxsync
Message:

Config.kmk: GCCConfig.kmk -> DynamicConfig.kmk, adding a yasm warning detection to it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r47044 r47045  
    12901290 VBOX_LDR_FMT_2_YASM_DBGINFO.macho =
    12911291 VBOX_LDR_FMT_2_YASM_DBGINFO.pe    = -g cv8
    1292  VBOX_ASFLAGS   = $(VBOX_ASFLAGS_FMT)   -D__YASM__ -Worphan-labels $(VBOX_LDR_FMT_2_YASM_DBGINFO.$(VBOX_LDR_FMT))
    1293  VBOX_ASFLAGS32 = $(VBOX_ASFLAGS_FMT32) -D__YASM__ -Worphan-labels $(VBOX_LDR_FMT_2_YASM_DBGINFO.$(VBOX_LDR_FMT32))
    1294  VBOX_ASFLAGS64 = $(VBOX_ASFLAGS_FMT64) -D__YASM__ -Worphan-labels $(VBOX_LDR_FMT_2_YASM_DBGINFO.$(VBOX_LDR_FMT64))
     1292 VBOX_ASFLAGS   = $(VBOX_ASFLAGS_FMT)   -D__YASM__ -Worphan-labels $(VBOX_YASM_Wno-segreg-in-64bit) $(VBOX_LDR_FMT_2_YASM_DBGINFO.$(VBOX_LDR_FMT))
     1293 VBOX_ASFLAGS32 = $(VBOX_ASFLAGS_FMT32) -D__YASM__ -Worphan-labels $(VBOX_YASM_Wno-segreg-in-64bit) $(VBOX_LDR_FMT_2_YASM_DBGINFO.$(VBOX_LDR_FMT32))
     1294 VBOX_ASFLAGS64 = $(VBOX_ASFLAGS_FMT64) -D__YASM__ -Worphan-labels $(VBOX_YASM_Wno-segreg-in-64bit) $(VBOX_LDR_FMT_2_YASM_DBGINFO.$(VBOX_LDR_FMT64))
    12951295else
    12961296 VBOX_ASTOOL    = NASM
     
    21782178
    21792179
    2180 ifndef VBOX_NOINC_GCC_CONFIG_KMK
    2181 #
    2182 # GCC stuff properties.
     2180ifndef VBOX_NOINC_DYNAMIC_CONFIG_KMK
     2181#
     2182# GCC and YASM dynamic properties.
    21832183# Most of this is resolved on first kmk invocation and cached in PATH_OUT.
    21842184#
     
    22322232endif
    22332233
     2234# YASM macros
     2235ifndef DONT_USE_YASM
     2236 include $(KBUILD_PATH)/tools/YASM.kmk
     2237 VBOX_YASM_CHECK = $(shell $(TOOL_YASM_AS) -e -o vbox-yasm-check.o $1 - < /dev/null 2>&1)
     2238 VBOX_YASM_CHECK = $(if-expr "$(shell $(TOOL_YASM_AS) -e -o vbox-yasm-check.o $1 - < /dev/null 2>&1)" == "",$(1),)
     2239else
     2240 VBOX_YASM_CHECK = $(error what??)
     2241endif
     2242
    22342243# No $(QUIET) here as it's interesting to see what goes into the file.
    2235 $(PATH_OUT)/GCCConfig.kmk: \
     2244$(PATH_OUT)/DynamicConfig.kmk: \
    22362245                $(PATH_ROOT)/Config.kmk \
    22372246                $(LOCALCFG) \
     
    23292338        $(QUIET)$(APPEND) '$@' 'VBOX_LD_no_compact_linkedit    ?= $(call VBOX_GCC_CHECK_LD,-no_compact_linkedit,)'
    23302339endif
     2340# YASM
     2341        $(QUIET)$(APPEND) '$@' 'VBOX_YASM_Wno-segreg-in-64bit  ?= $(call VBOX_YASM_CHECK,-Wno-segreg-in-64bit,)'
     2342
    23312343        $(QUIET)$(ECHO) '========= START OF $@ ========='
    23322344        $(QUIET)$(CAT) $@
    23332345        $(QUIET)$(ECHO) '=========== END OF $@ ========='
    23342346
    2335 include $(PATH_OUT)/GCCConfig.kmk
    2336 endif # !VBOX_NOINC_GCC_CONFIG_KMK
     2347include $(PATH_OUT)/DynamicConfig.kmk
     2348endif # !VBOX_NOINC_DYNAMIC_CONFIG_KMK
    23372349
    23382350#
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