mirror of
https://git.yoctoproject.org/poky
synced 2026-02-28 12:29:40 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
12f63535bd
commit
e88e746eb2
@@ -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} () {
|
||||
|
||||
Reference in New Issue
Block a user