VirtualBox

Changeset 11340

Show
Ignore:
Timestamp:
08/11/08 19:15:50 (4 months ago)
Author:
vboxsync
Message:

Hack VBOX_LINUX_SRC for Linux >= 2.6.25. Fix VBOX_GCC_VERSION for openSUSE11.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Config.kmk

    r11315 r11340  
    11681168# This is kind of bad, the returned string needs to be re-evaluated before use. 
    11691169# The reason for this hack is that the windows kmk_ash cannot deal with $((1+1)). 
     1170# Some versions of gcc (e.g. openSUSE11) return only major.minor on `gcc -dumpversion`. 
    11701171VBOX_GCC_VERSION = $(shell \ 
    11711172  $(1) -dumpversion | $(SED_EXT) 's|\([0-9]\)\.\([0-9]\)\.\([0-9]\)|$$(int-add $$(int-mul 10000, \1), $$(int-mul 100, \2), \3)|' ) 
     
    15301531   export VBOX_LINUX_INCS           := $(VBOX_LINUX_SRC)/include 
    15311532   # support splitted Linux kernels (make O=<build directory>) 
     1533   # XXX hack alert! 
    15321534   kernelsrc := $(shell $(SED_EXT) -ne 's+^KERNELSRC.*= *\(.*\)+\1+p' $(VBOX_LINUX_SRC)/Makefile) 
    15331535   ifneq ($(kernelsrc),) 
    15341536    kernelpath := $(realpath $(VBOX_LINUX_SRC)/$(kernelsrc)) 
     1537   else 
     1538    # Linux >= 2.6.25 
     1539    kernelpath := $(shell $(SED_EXT) -ne 's+^MAKEARGS *:= *-C *\(.*\)+\1+p' $(VBOX_LINUX_SRC)/Makefile) 
     1540   endif 
     1541   ifneq ($(kernelpath),) 
    15351542    VBOX_LINUX_INCS                 += $(VBOX_LINUX_SRC)/include2 $(kernelpath)/include 
    15361543   else 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy