Patchwork [1/1] wpa-supplicant: Enable EXTRA_CFLAGS

login
register
mail settings
Submitter rongqing.li@windriver.com
Date June 8, 2013, 6:40 a.m.
Message ID <f348bf04a5089012ba68e9734d07d86e2a4c8231.1370673504.git.rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/51385/
State Accepted
Commit 35447ea72a1a2141a9bf88181876cb7efc84aa48
Headers show

Comments

rongqing.li@windriver.com - June 8, 2013, 6:40 a.m.
From: "Roy.Li" <rongqing.li@windriver.com>

Even if we define EXTRA_CFLAGS, but it never work, since the source codes
donot refer it, and CFLAGS is given a fixed value.

Signed-off-by: Roy.Li <rongqing.li@windriver.com>
---
 meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc
index e5f7881..8d7233a 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant-2.0.inc
@@ -40,6 +40,7 @@  export BINDIR = "${sbindir}"
 
 do_compile () {
 	unset CFLAGS CPPFLAGS CXXFLAGS
+	sed -e "s:CFLAGS\ =.*:& \$(EXTRA_CFLAGS):g" -i ${S}/src/lib.rules
 	oe_runmake -C wpa_supplicant
 }