VirtualBox

Changeset 2536 in vbox for trunk/Config.kmk


Ignore:
Timestamp:
May 8, 2007 1:43:11 PM (18 years ago)
Author:
vboxsync
Message:

Use the kBuild sed program.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r2526 r2536  
    534534        $(L4LINUX26_DIR)/include/asm-l4/i386-arch
    535535  # support splitted Linux kernels (make O=<build directory>)
    536   kernelsrc := $(shell sed -ne 's+^KERNELSRC.*= *\(.*\)+\1+p' $(L4LINUX26_DIR)/Makefile)
     536  kernelsrc := $(shell $(SED_EXT) -ne 's+^KERNELSRC.*= *\(.*\)+\1+p' $(L4LINUX26_DIR)/Makefile)
    537537  ifneq ($(kernelsrc),)
    538538   kernelpath := $(realpath $(kernelsrc))
     
    833833# The reason for this hack is that the windows kmk_ash cannot deal with $((1+1)).
    834834VBOX_GCC_VERSION = $(shell \
    835   $(1) -dumpversion | sed 's|\([0-9]\)\.\([0-9]\)\.\([0-9]\)|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, \2), \3)|' )
     835  $(1) -dumpversion | $(SED_EXT) 's|\([0-9]\)\.\([0-9]\)\.\([0-9]\)|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, \2), \3)|' )
    836836
    837837# No $(QUIET) here as it's interesting to see what goes into the file.
     
    875875ifeq ($(BUILD_TARGET),l4)
    876876        @# L4
    877         $(APPEND) "$@" "VBOX_PATH_L4_GCC3_INSTALL      ?= $(shell LANG=C $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-search-dirs|sed -ne 's+^install: \(.*[^/][^/]*\)/\?+\1+p')"
     877        $(APPEND) "$@" "VBOX_PATH_L4_GCC3_INSTALL      ?= $(shell LANG=C $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-search-dirs|$(SED_EXT) -ne 's+^install: \(.*[^/][^/]*\)/\?+\1+p')"
    878878endif
    879879
     
    10581058  export VBOX_LINUX_INCS           := $(VBOX_LINUX_SRC)/include
    10591059  # support splitted Linux kernels (make O=<build directory>)
    1060   kernelsrc := $(shell sed -ne 's+^KERNELSRC.*= *\(.*\)+\1+p' $(VBOX_LINUX_SRC)/Makefile)
     1060  kernelsrc := $(shell $(SED_EXT) -ne 's+^KERNELSRC.*= *\(.*\)+\1+p' $(VBOX_LINUX_SRC)/Makefile)
    10611061  ifneq ($(kernelsrc),)
    10621062   kernelpath := $(realpath $(VBOX_LINUX_SRC)/$(kernelsrc))
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