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>
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
# 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