Replace OpenWrt variable by a kernel one
Using $(TOPDIR)/qca/src/ is *bad-bad-bad*, as it makes the driver
build dependent on the actual position of the NSS driver component
within the build system.
The right way to include headers files from a kernel module would
be to use $(srctree), which will always be defined, as it's a Kbuild
variable. That will work independently of the source position, and this
doesn't tie it to a particular build system layout.
Change-Id: I1c7c10a8563a52dfb293fd9f16fcdbc260bcfcbf
Signed-off-by: Mathieu Olivari <mathieu@codeaurora.org>
diff --git a/Makefile b/Makefile
index 83a9220..0b10cbb 100644
--- a/Makefile
+++ b/Makefile
@@ -74,7 +74,7 @@
ccflags-y += -DNSS_CONNMGR_DEBUG_LEVEL=0 -DNSS_CONNMGR_PPPOE_SUPPORT=0
ccflags-y += -DNSS_TUNIPIP6_DEBUG_LEVEL=0
ccflags-y += -DNSS_PM_DEBUG_LEVEL=0
-ccflags-y += -I$(TOPDIR)/qca/src/linux/net/bridge -DNSSQDISC_DEBUG_LEVEL=0
+ccflags-y += -I$(srctree)/net/bridge -DNSSQDISC_DEBUG_LEVEL=0
obj-y+= profiler/