VirtualBox

Changeset 375 in vbox for trunk


Ignore:
Timestamp:
Jan 26, 2007 7:18:45 PM (18 years ago)
Author:
vboxsync
Message:

Fixed the kernel module makefiles for OpenSUSE's non-standard build system

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/Makefile.module

    r214 r375  
    4444# includes
    4545ifeq ($(KERN_INCL),)
    46 ifeq ($(shell if test -d $(KERN_DIR)/include; then echo yes; fi),yes)
    47 KERN_INCL = $(KERN_DIR)/include
    48 else
    49 KERN_INCL = /usr/src/linux/include
    50 $(warning Warning: defaulting to the includes in $(KERN_INCL). Specify KERN_INCL=<right-place> if this is not right.)
    51 endif
     46 ifeq ($(shell if test -d $(KERN_DIR)/include; then echo yes; fi),yes)
     47 KERN_INCL = $(KERN_DIR)/include
     48# Instead of sticking to the standards, OpenSUSE 10.2 only puts a few include
     49# files in /lib/modules/$(uname -r)/build/include, and puts the rest in
     50# /lib/modules/$(uname -r)/source/include, which points into the kernel sources
     51  EXTRA_INCL = -I/lib/modules/$(shell uname -r)/source/include
     52 else
     53 KERN_INCL = /usr/src/linux/include
     54 $(warning Warning: defaulting to the includes in $(KERN_INCL). Specify KERN_INCL=<right-place> if this is not right.)
     55 endif
    5256endif
    5357
     
    8488#
    8589ifndef INCL
    86  INCL    := -I$(KERN_INCL)
     90 INCL    := -I$(KERN_INCL) -I$(EXTRA_INCL)
    8791 ifndef KBUILD_EXTMOD
    8892  KBUILD_EXTMOD := $(shell pwd)
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r345 r375  
    8383ifndef $(KERN_INCL)
    8484 KERN_INCL = $(KERN_DIR)/include
     85# Instead of sticking to the standards, OpenSUSE 10.2 only puts a few include
     86# files in /lib/modules/$(uname -r)/build/include, and puts the rest in
     87# /lib/modules/$(uname -r)/source/include, which points into the kernel sources
     88 EXTRA_INCL = -I/lib/modules/$(shell uname -r)/source/include
    8589 $(info Info: using $(KERN_INCL) as the include directory of your Linux kernel. If this is not correct, specify KERN_INCL=<directory> and run Make again.)
    8690endif
     
    114118#
    115119ifndef INCL
    116  INCL    := -I$(KERN_INCL)
     120 INCL    := -I$(KERN_INCL) -I$(EXTRA_INCL)
    117121 ifndef KBUILD_EXTMOD
    118122  KBUILD_EXTMOD := $(shell pwd)
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