summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/wpa-supplicant
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2022-04-12 14:03:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-04-19 14:14:11 +0100
commite88e746eb2547c7b9491301e17be4cb5c41f5d1a (patch)
treee9972cc6ec9e3832e3a186f5a6f88b8838b8fd6e /meta/recipes-connectivity/wpa-supplicant
parent12f63535bd24e5cc442b01ba007056fda9f62d35 (diff)
downloadpoky-e88e746eb2547c7b9491301e17be4cb5c41f5d1a.tar.gz
wpa-supplicant: Build static library if not DISABLE_STATIC
Build the static library if the configuration indicates we should. (From OE-Core rev: 28e25faf500861c25e50aeb898e5e933b5090916) Signed-off-by: Alex Kiernan <alexk@zuma.ai> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/wpa-supplicant')
-rw-r--r--meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb11
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
index f72a925ac8..43865ed960 100644
--- a/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
+++ b/meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb
@@ -55,6 +55,9 @@ do_compile () {
55 unset CFLAGS CPPFLAGS CXXFLAGS 55 unset CFLAGS CPPFLAGS CXXFLAGS
56 sed -e "s:CFLAGS\ =.*:& \$(EXTRA_CFLAGS):g" -i ${S}/src/lib.rules 56 sed -e "s:CFLAGS\ =.*:& \$(EXTRA_CFLAGS):g" -i ${S}/src/lib.rules
57 oe_runmake -C wpa_supplicant 57 oe_runmake -C wpa_supplicant
58 if [ -z "${DISABLE_STATIC}" ]; then
59 oe_runmake -C wpa_supplicant libwpa_client.a
60 fi
58} 61}
59 62
60do_install () { 63do_install () {
@@ -89,6 +92,14 @@ do_install () {
89 92
90 install -d ${D}/etc/default/volatiles 93 install -d ${D}/etc/default/volatiles
91 install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles 94 install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles
95
96 install -d ${D}${includedir}
97 install -m 0644 ${S}/src/common/wpa_ctrl.h ${D}${includedir}
98
99 if [ -z "${DISABLE_STATIC}" ]; then
100 install -d ${D}${libdir}
101 install -m 0644 wpa_supplicant/libwpa_client.a ${D}${libdir}
102 fi
92} 103}
93 104
94pkg_postinst:${PN} () { 105pkg_postinst:${PN} () {