34 lines
1.3 KiB
Diff
34 lines
1.3 KiB
Diff
|
diff --git a/drivers/net/wireless/uwe5622/Makefile b/drivers/net/wireless/uwe5622/Makefile
|
||
|
index 313ea512340c..8a68354a186a 100644
|
||
|
--- a/drivers/net/wireless/uwe5622/Makefile
|
||
|
+++ b/drivers/net/wireless/uwe5622/Makefile
|
||
|
@@ -2,7 +2,10 @@ obj-$(CONFIG_AW_WIFI_DEVICE_UWE5622) += unisocwcn/
|
||
|
obj-$(CONFIG_WLAN_UWE5622) += unisocwifi/
|
||
|
obj-$(CONFIG_TTY_OVERY_SDIO) += tty-sdio/
|
||
|
|
||
|
-UNISOCWCN_DIR := $(shell cd $(src)/unisocwcn/ && /bin/pwd)
|
||
|
+# UNISOCWCN_DIR := $(shell cd $(src)/unisocwcn/ && /bin/pwd)
|
||
|
+mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||
|
+UNISOCWCN_DIR := $(dir $(mkfile_path))/unisocwcn/
|
||
|
+
|
||
|
UNISOC_BSP_INCLUDE := $(UNISOCWCN_DIR)/include
|
||
|
export UNISOC_BSP_INCLUDE
|
||
|
|
||
|
diff --git a/drivers/net/wireless/uwe5622/unisocwcn/Makefile b/drivers/net/wireless/uwe5622/unisocwcn/Makefile
|
||
|
index f9c595747547..1ad490594cf2 100644
|
||
|
--- a/drivers/net/wireless/uwe5622/unisocwcn/Makefile
|
||
|
+++ b/drivers/net/wireless/uwe5622/unisocwcn/Makefile
|
||
|
@@ -129,9 +129,9 @@ ccflags-y += -DCONFIG_WCN_BOOT
|
||
|
ccflags-y += -DCONFIG_WCN_UTILS
|
||
|
|
||
|
#### include path ######
|
||
|
-ccflags-y += -I$(src)/include/
|
||
|
-ccflags-y += -I$(src)/platform/
|
||
|
-ccflags-y += -I$(src)/platform/rf/
|
||
|
+ccflags-y += -I$(srctree)/$(src)/include/
|
||
|
+ccflags-y += -I$(srctree)/$(src)/platform/
|
||
|
+ccflags-y += -I$(srctree)/$(src)/platform/rf/
|
||
|
|
||
|
#### add cflag for Customer ######
|
||
|
### ---------- Hisilicon start ---------- ###
|