Appending the local include directory to EXTRA_CFLAGS doesn't ensure
that the local headers are used. The local include directory should be
prepended to CPPFLAGS to make the build system prefer the local headers
over those from the kernel sources.
Signed-off-by: Pavel Roskin <pr...@gn...>
--- Makefile
+++ Makefile
@@ -19,7 +19,7 @@
endif
ifdef KBUILD_EXTMOD
- EXTRA_CFLAGS += -I$(KBUILD_EXTMOD)
+ CPPFLAGS := -I$(KBUILD_EXTMOD) $(CPPFLAGS)
endif
ifeq ($(IEEE80211_INC),)
--
Regards,
Pavel Roskin
|