vbox的更動 57032 路徑 trunk/Config.kmk
- 時間撮記:
- 2015-7-21 上午02:37:32 (9 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/Config.kmk
r56979 r57032 2405 2405 $(VBOX_GCC_PATH_CXX) \ 2406 2406 $(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,) 2408 2410 $(call MSG_GENERATE,,$@,) 2409 2411 $(QUIET)$(RM) -f '$@' … … 2529 2531 $(QUIET)$(APPEND) '$@' 'VBOX_HAVE_BISON ?= $(if $(which bison),1,)' 2530 2532 $(QUIET)$(APPEND) '$@' 'VBOX_HAVE_XMLLINT ?= $(which xmllint)' 2533 if "$(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)))))' 2543 endif 2544 2531 2545 $(QUIET)$(ECHO) '========= START OF $@ =========' 2532 2546 $(QUIET)$(CAT) $@ … … 3301 3315 # 3302 3316 ifeq ($(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)) 3306 3318 ifeq ($(VBOX_SOLARIS_VERSION),510) 3307 3319 DEFS.solaris += RT_OS_SOLARIS_10 … … 3312 3324 VBOX_WITH_ADDITIONS = 3313 3325 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 endif3323 3324 3326 # OSS audio support for Solaris 3325 3327 VBOX_WITH_SOLARIS_OSS := $(if-expr $(VBOX_SOLARIS_11_VERSION) >= 115,1,)
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器