From: Alex Kiernan Date: Tue, 12 Apr 2022 13:03:12 +0000 (+0100) Subject: wpa-supplicant: Build static library if not DISABLE_STATIC X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4406 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28e25faf500861c25e50aeb898e5e933b5090916;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wpa-supplicant: Build static library if not DISABLE_STATIC Build the static library if the configuration indicates we should. Signed-off-by: Alex Kiernan Signed-off-by: Luca Ceresoli Signed-off-by: Richard Purdie --- 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 f72a925ac88..43865ed9604 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 () { unset CFLAGS CPPFLAGS CXXFLAGS sed -e "s:CFLAGS\ =.*:& \$(EXTRA_CFLAGS):g" -i ${S}/src/lib.rules oe_runmake -C wpa_supplicant + if [ -z "${DISABLE_STATIC}" ]; then + oe_runmake -C wpa_supplicant libwpa_client.a + fi } do_install () { @@ -89,6 +92,14 @@ do_install () { install -d ${D}/etc/default/volatiles install -m 0644 ${WORKDIR}/99_wpa_supplicant ${D}/etc/default/volatiles + + install -d ${D}${includedir} + install -m 0644 ${S}/src/common/wpa_ctrl.h ${D}${includedir} + + if [ -z "${DISABLE_STATIC}" ]; then + install -d ${D}${libdir} + install -m 0644 wpa_supplicant/libwpa_client.a ${D}${libdir} + fi } pkg_postinst:${PN} () {