- Timestamp:
- Jan 26, 2007 7:18:45 PM (18 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/module/Makefile.module
r214 r375 44 44 # includes 45 45 ifeq ($(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 52 56 endif 53 57 … … 84 88 # 85 89 ifndef INCL 86 INCL := -I$(KERN_INCL) 90 INCL := -I$(KERN_INCL) -I$(EXTRA_INCL) 87 91 ifndef KBUILD_EXTMOD 88 92 KBUILD_EXTMOD := $(shell pwd) -
trunk/src/VBox/HostDrivers/Support/linux/Makefile
r345 r375 83 83 ifndef $(KERN_INCL) 84 84 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 85 89 $(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.) 86 90 endif … … 114 118 # 115 119 ifndef INCL 116 INCL := -I$(KERN_INCL) 120 INCL := -I$(KERN_INCL) -I$(EXTRA_INCL) 117 121 ifndef KBUILD_EXTMOD 118 122 KBUILD_EXTMOD := $(shell pwd)
Note:
See TracChangeset
for help on using the changeset viewer.