diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2022-04-12 14:03:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-19 14:14:11 +0100 |
commit | e88e746eb2547c7b9491301e17be4cb5c41f5d1a (patch) | |
tree | e9972cc6ec9e3832e3a186f5a6f88b8838b8fd6e /meta/recipes-connectivity/wpa-supplicant | |
parent | 12f63535bd24e5cc442b01ba007056fda9f62d35 (diff) | |
download | poky-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.bb | 11 |
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 | ||
60 | do_install () { | 63 | do_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 | ||
94 | pkg_postinst:${PN} () { | 105 | pkg_postinst:${PN} () { |