]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
Use the kernel source tree for includes, not the kernel build tree
authorPavel Roskin <proski@gnu.org>
Tue, 16 Sep 2008 20:08:29 +0000 (16:08 -0400)
committerJohannes Berg <johannes@sipsolutions.net>
Tue, 16 Sep 2008 20:20:02 +0000 (22:20 +0200)
If the build is done outside the source tree, nl80211.h won't be in the
build tree.  We only need only definitions from the sources, not the
kernel configuration.

Signed-off-by: Pavel Roskin <proski@gnu.org>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Makefile
defconfig

index 5b4e6213a2924ffb8e398bc7f076cad0fa8be64c..ae013338e361c07c6891b75e09eca1a4376bb7d5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ INSTALL ?= install
 PREFIX ?= /usr
 CC ?= "gcc"
 CFLAGS += -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration
-CFLAGS += -I/lib/modules/`uname -r`/build/include
+CFLAGS += -I/lib/modules/`uname -r`/source/include
 CFLAGS += -O2 -g
 LDFLAGS += -lnl
 
index 346f699461f4e010006343dd447184fe20a5901c..00819111946db0400d9e67685dcd60cf7cb7ade5 100644 (file)
--- a/defconfig
+++ b/defconfig
@@ -11,7 +11,7 @@
 
 # Kernel location for GIT NL80211 kernel code (assumed to be running,
 # by default); only required if your installed nl80211.h is out of date.
-CONFIG_KERNEL_LOC = /lib/modules/`uname -r`/build/
+CONFIG_KERNEL_LOC = /lib/modules/`uname -r`/source/
 CFLAGS += -I$(CONFIG_KERNEL_LOC)/include
 
 # LibNL location