]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
wpa-supplicant: Build static library if not DISABLE_STATIC
authorAlex Kiernan <alex.kiernan@gmail.com>
Tue, 12 Apr 2022 13:03:12 +0000 (14:03 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Apr 2022 13:14:01 +0000 (14:14 +0100)
Build the static library if the configuration indicates we should.

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>
meta/recipes-connectivity/wpa-supplicant/wpa-supplicant_2.10.bb

index f72a925ac8837eaac8db228f5b8dc0f1387222d0..43865ed960457cbe32afa6e09bd1fe5e21fd35f2 100644 (file)
@@ -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} () {