VirtualBox

vbox的更動 57032 路徑 trunk/Config.kmk


忽略:
時間撮記:
2015-7-21 上午02:37:32 (9 年 以前)
作者:
vboxsync
訊息:

Config.kmk/solaris: 'pkg contents -H -t set -o pkg.fmri system/kernel' is slow, so stuff it into DynamicConfig.kmk.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/Config.kmk

    r56979 r57032  
    24052405                $(VBOX_GCC_PATH_CXX) \
    24062406                $(VBOX_GCC32_PATH_CC) \
    2407                 $(VBOX_GCC32_PATH_CXX)
     2407                $(VBOX_GCC32_PATH_CXX) \
     2408                $(if-expr "$(KBUILD_HOST).$(KBUILD_HOST_ARCH)" == "solaris.amd64" && $(KBUILD_HOST_VERSION_MINOR) >= 11 \
     2409                        , /platform/i86pc/kernel/$(KBUILD_HOST_ARCH)/unix,)
    24082410        $(call MSG_GENERATE,,$@,)
    24092411        $(QUIET)$(RM) -f '$@'
     
    25292531        $(QUIET)$(APPEND) '$@' 'VBOX_HAVE_BISON   ?= $(if $(which bison),1,)'
    25302532        $(QUIET)$(APPEND) '$@' 'VBOX_HAVE_XMLLINT ?= $(which xmllint)'
     2533if "$(KBUILD_HOST)" == "solaris" && $(KBUILD_HOST_VERSION_MAJOR) == 5 && $(KBUILD_HOST_VERSION_MINOR) == 11
     2534# uname -v can report "snv_XYZ" or "11.X"
     2535        $(QUIET)$(APPEND) '$@' 'VBOX_SOLARIS_11_VERSION ?= $(shell uname -v | sed "s/snv_//" | cut -f1 -d".")'
     2536# FULLVERSION format e.g. "5.11-0.175.1.0.0.16.0", we're interested in 175 (VERSION), 1 (UPDATE), 16 (BUILD).
     2537        $(QUIET)$(APPEND) '$@' "VBOX_SOLARIS_11_FULLVERSION := $(shell pkg contents -H -t set -o pkg.fmri system/kernel | $(SED_EXT) -e '1!d' -e 's/^.*\@//;s/\:.*//;s/.*,//')"
     2538        $(QUIET)$(APPEND) '$@' 'ifeq ($$(VBOX_SOLARIS_11_VERSION),11)'
     2539        $(QUIET)$(APPEND) '$@' '   VBOX_SOLARIS_11_VERSION        := $$(word 2, $$(subst ., ,$$(word 2,$$(subst -, ,$$(VBOX_SOLARIS_11_FULLVERSION)))))'
     2540        $(QUIET)$(APPEND) '$@' 'endif'
     2541        $(QUIET)$(APPEND) '$@' 'VBOX_SOLARIS_11_UPDATE_VERSION := $$(word 3, $$(subst ., ,$$(word 2,$$(subst -, ,$$(VBOX_SOLARIS_11_FULLVERSION)))))'
     2542        $(QUIET)$(APPEND) '$@' 'VBOX_SOLARIS_11_BUILD_VERSION  := $$(word 6, $$(subst ., ,$$(word 2,$$(subst -, ,$$(VBOX_SOLARIS_11_FULLVERSION)))))'
     2543endif
     2544
    25312545        $(QUIET)$(ECHO) '========= START OF $@ ========='
    25322546        $(QUIET)$(CAT) $@
     
    33013315#
    33023316ifeq ($(KBUILD_TARGET),solaris)
    3303  ifeq ($(origin VBOX_SOLARIS_VERSION),undefined)
    3304   $(eval export VBOX_SOLARIS_VERSION := $(shell uname -r | $(SED_EXT) 's|\([0-9]*\)\.\([0-9]*\)|$$(int-add $$(int-mul 100, \1), \2)|' ))
    3305  endif
     3317 VBOX_SOLARIS_VERSION := $(expr $(KBUILD_HOST_VERSION_MAJOR) * 100 + $(KBUILD_HOST_VERSION_MINOR))
    33063318 ifeq ($(VBOX_SOLARIS_VERSION),510)
    33073319  DEFS.solaris += RT_OS_SOLARIS_10
     
    33123324  VBOX_WITH_ADDITIONS =
    33133325 else ifeq ($(VBOX_SOLARIS_VERSION),511)
    3314   # uname -v can report "snv_XYZ" or "11.X"
    3315   VBOX_SOLARIS_11_VERSION = $(shell uname -v | sed 's/snv_//' | cut -f1 -d'.')
    3316   ifeq ($(VBOX_SOLARIS_11_VERSION),11)
    3317    VBOX_SOLARIS_11_FULLVERSION = $(shell pkg contents -H -t set -o pkg.fmri system/kernel | $(SED_EXT) -e '1!d' -e 's/^.*\@//;s/\:.*//;s/.*,//')
    3318    # FULLVERSION format e.g. "5.11-0.175.1.0.0.16.0", we're interested in 175 (VERSION), 1 (UPDATE), 16 (BUILD).
    3319    VBOX_SOLARIS_11_VERSION = $(word 2, $(subst ., ,$(word 2,$(subst -, ,$(VBOX_SOLARIS_11_FULLVERSION)))))
    3320    VBOX_SOLARIS_11_UPDATE_VERSION = $(word 3, $(subst ., ,$(word 2,$(subst -, ,$(VBOX_SOLARIS_11_FULLVERSION)))))
    3321    VBOX_SOLARIS_11_BUILD_VERSION = $(word 6, $(subst ., ,$(word 2,$(subst -, ,$(VBOX_SOLARIS_11_FULLVERSION)))))
    3322   endif
    3323 
    33243326  # OSS audio support for Solaris
    33253327  VBOX_WITH_SOLARIS_OSS := $(if-expr $(VBOX_SOLARIS_11_VERSION) >= 115,1,)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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