VirtualBox

Changeset 11340 in vbox for trunk


Ignore:
Timestamp:
Aug 11, 2008 5:15:50 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
34482
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

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