rtl8192cu: Let it support to build in the non-src folder
authorHui Wang <hui.wang@canonical.com>
Thu, 22 Aug 2019 15:32:46 +0000 (23:32 +0800)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:02 +0000 (16:33 +0100)
If we build the kernel with "-O=$non-src-folder", this driver will
introdcue a building error because of the header's location.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
drivers/net/wireless/realtek/rtl8192cu/Makefile

index c399011..ef6156c 100644 (file)
@@ -16,7 +16,7 @@ EXTRA_CFLAGS += -Wno-unused
 
 EXTRA_CFLAGS += -Wno-uninitialized
 
-EXTRA_CFLAGS += -I$(src)/include
+EXTRA_CFLAGS += -I$(srctree)/$(src)/include
 
 CONFIG_AUTOCFG_CP = n