mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-12-26 13:08:21 +01:00
46 lines
1.6 KiB
Diff
46 lines
1.6 KiB
Diff
From 5138d597275fd503573fac84018186bd18740644 Mon Sep 17 00:00:00 2001
|
|
From: pbiel <pbiel7@gmail.com>
|
|
Date: Thu, 30 Mar 2023 22:45:33 +0200
|
|
Subject: [PATCH] Fix incldue path for unisocwcn
|
|
|
|
---
|
|
drivers/net/wireless/uwe5622/Makefile | 4 +++-
|
|
drivers/net/wireless/uwe5622/unisocwcn/Makefile | 6 +++---
|
|
2 files changed, 6 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/drivers/net/wireless/uwe5622/Makefile b/drivers/net/wireless/uwe5622/Makefile
|
|
index 313ea5123..e9a398584 100644
|
|
--- a/drivers/net/wireless/uwe5622/Makefile
|
|
+++ b/drivers/net/wireless/uwe5622/Makefile
|
|
@@ -2,7 +2,9 @@ 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)
|
|
+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 f9c595747..1ad490594 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 ---------- ###
|
|
--
|
|
2.34.1
|
|
|