mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 13:00:02 +00:00
hostapd: consider sysroot when search header files
Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
@@ -0,0 +1,40 @@
|
|||||||
|
Upstream-Status: Pending
|
||||||
|
|
||||||
|
We should make sure that sysroot is used by gcc instead of assuming
|
||||||
|
hardcoded locations for include paths
|
||||||
|
|
||||||
|
Signed-off-by: Roy Li <rongqing.li@windriver.com>
|
||||||
|
---
|
||||||
|
src/drivers/drivers.mak | 2 +-
|
||||||
|
src/drivers/drivers.mk | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/drivers/drivers.mak b/src/drivers/drivers.mak
|
||||||
|
index 7e175f4..950701f 100644
|
||||||
|
--- a/src/drivers/drivers.mak
|
||||||
|
+++ b/src/drivers/drivers.mak
|
||||||
|
@@ -35,7 +35,7 @@ NEED_RFKILL=y
|
||||||
|
ifdef CONFIG_LIBNL32
|
||||||
|
DRV_LIBS += -lnl-3
|
||||||
|
DRV_LIBS += -lnl-genl-3
|
||||||
|
- DRV_CFLAGS += -DCONFIG_LIBNL20 -I/usr/include/libnl3
|
||||||
|
+ DRV_CFLAGS += -DCONFIG_LIBNL20 -I=/usr/include/libnl3
|
||||||
|
else
|
||||||
|
ifdef CONFIG_LIBNL_TINY
|
||||||
|
DRV_LIBS += -lnl-tiny
|
||||||
|
diff --git a/src/drivers/drivers.mk b/src/drivers/drivers.mk
|
||||||
|
index db8561a..c93e88d 100644
|
||||||
|
--- a/src/drivers/drivers.mk
|
||||||
|
+++ b/src/drivers/drivers.mk
|
||||||
|
@@ -30,7 +30,7 @@ NEED_RFKILL=y
|
||||||
|
ifdef CONFIG_LIBNL32
|
||||||
|
DRV_LIBS += -lnl-3
|
||||||
|
DRV_LIBS += -lnl-genl-3
|
||||||
|
- DRV_CFLAGS += -DCONFIG_LIBNL20 -I/usr/include/libnl3
|
||||||
|
+ DRV_CFLAGS += -DCONFIG_LIBNL20 -I=/usr/include/libnl3
|
||||||
|
else
|
||||||
|
ifdef CONFIG_LIBNL_TINY
|
||||||
|
DRV_LIBS += -lnl-tiny
|
||||||
|
--
|
||||||
|
2.1.2
|
||||||
|
|
||||||
@@ -18,6 +18,7 @@ SRC_URI = " \
|
|||||||
file://defconfig \
|
file://defconfig \
|
||||||
file://init \
|
file://init \
|
||||||
file://hostapd.service \
|
file://hostapd.service \
|
||||||
|
file://add-sysroot-to-gcc.patch;patchdir=.. \
|
||||||
"
|
"
|
||||||
|
|
||||||
S = "${WORKDIR}/hostapd-${PV}/hostapd"
|
S = "${WORKDIR}/hostapd-${PV}/hostapd"
|
||||||
|
|||||||
Reference in New Issue
Block a user