VirtualBox

Changeset 44287 in vbox


Ignore:
Timestamp:
Jan 14, 2013 3:17:39 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
83196
Message:

Config.kmk: adapt the code for split Linux kernel sources to recent Linux kernels

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r44280 r44287  
    27752775  ifeq ($(origin VBOX_LINUX_INCS),undefined)
    27762776   export VBOX_LINUX_INCS := $(VBOX_LINUX_SRC)/include
    2777    # XXX hack alert! support split Linux kernels (make O=<build directory>)
     2777   # XXX hack alert! Support split Linux kernels (make O=<build directory>). kernelpath points to
     2778   #                 the obj directory while VBOX_LINUX_SRC points to the virgin source directory.
    27782779   # XXX put this crap elsewhere
    27792780   kernelpath := $(shell $(SED_EXT) -ne 's+^KERNELSRC.*= *\(.*\)+\1+p' $(VBOX_LINUX_SRC)/Makefile)
     
    28002801                       $(kernelpath)/arch/x86/include/asm/mach-default \
    28012802                       $(kernelpath)/arch/x86/include/uapi \
    2802                        $(kernelpath)/arch/x86/include/generated \
    2803                        $(kernelpath)/arch/x86/include/generated/uapi \
     2803                       $(VBOX_LINUX_SRC)/arch/x86/include/generated \
     2804                       $(VBOX_LINUX_SRC)/arch/x86/include/generated/uapi \
    28042805                       $(kernelpath)/include/uapi \
    2805                        $(kernelpath)/include/generated/uapi \
     2806                       $(VBOX_LINUX_SRC)/include/generated/uapi \
    28062807                       $(kernelpath)/include
    28072808  endif
     
    28092810 # Since Linux 2.6.15, <linux/autoconf.h> is included like this. It cannot hurt to do the
    28102811 # same for older Linux kernels
    2811  ifneq ($(wildcard $(VBOX_LINUX_SRC)/include/linux/kconfig.h),)
     2812 ifneq ($(wildcard $(kernelpath)/include/linux/kconfig.h),)
    28122813  # Linux >= 3.1
    2813   export VBOX_LINUX_INCLUDE := -include $(VBOX_LINUX_SRC)/include/linux/kconfig.h
     2814  export VBOX_LINUX_INCLUDE := -include $(kernelpath)/include/linux/kconfig.h
    28142815 else ifneq ($(wildcard $(VBOX_LINUX_SRC)/include/generated/autoconf.h),)
    28152816  # Linux >= 2.6.33
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