VirtualBox

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

File:
1 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)
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