Created new recipe for libwpa-client

- libwpa-client is used to communicate with hostapd/wpa_supplicant via
  the control interface.

BugzId: 75651
BugzId: 75694
(cherry picked from commit feb31dda57)
(cherry picked from commit b178890686)
(cherry picked from commit 31c63eb5b8)
(cherry picked from commit d6b436754e)
This commit is contained in:
Jürgen Henke 2021-11-09 08:53:44 +01:00 committed by Moritz Rosenthal
parent 1452f94997
commit eee7a8982e
3 changed files with 120 additions and 66 deletions

View File

@ -0,0 +1,26 @@
From 45bf83dbe2a84f39f09a247445531d890655ea2b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=BCrgen=20Henke?= <juergen.henke@netmodule.com>
Date: Thu, 11 Nov 2021 09:05:57 +0100
Subject: [PATCH] fix: create a versioned shared library libwlan_client.so
Otherwise we will run circles around oe's "THOU SHALL NOT USED
UNVERSIONED LIBRARIES IN THY LORD'S ROOT-FS" feature.
BugzId: 75694
---
wpa_supplicant/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
index 238e31b0c..58c047543 100644
--- a/wpa_supplicant/Makefile
+++ b/wpa_supplicant/Makefile
@@ -1965,7 +1965,7 @@ libwpa_client.a: $(LIBCTRL)
libwpa_client.so: $(LIBCTRLSO)
@$(E) " CC $@ ($^)"
- $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -fPIC $^
+ $(Q)$(CC) $(LDFLAGS) -o $@ $(CFLAGS) -shared -Wl,-soname,libwpa_client.so.2.10.0 -fPIC $^
libwpa_test1: libwpa_test.o libwpa_client.a
$(Q)$(LDO) $(LDFLAGS) -o libwpa_test1 libwpa_test.o libwpa_client.a $(LIBS_c)

View File

@ -80,6 +80,7 @@ SRC_URI = "git://w1.fi/hostap.git;protocol=http \
file://912-iapp-integration.patch \
file://913-iapp-improvements.patch \
file://914-wlan-acs-srd-channels.patch \
file://0001-fix-create-a-versioned-shared-library-libwlan_client.patch \
"
SRCREV = "5a8b366233f5585e68a4ffbb604fbb4a848eb325"

View File

@ -0,0 +1,27 @@
SUMMARY = "A library for using the hostapd/wpa_supplicant control interface"
# This is part of wpa_supplicant and defined in the wpa_supplicant Makefile
TARGET_NAME = "wpa_supplicant"
include hostapd.inc
#PACKAGES_prepend = "libwpa_client"
FILES_${PN} += "${libdir}/*.so"
RPROVIDES_${PN} = "libwpa_client.so"
PROVIDES = "libwpa_client.so"
do_install () {
install -d ${D}${libdir}
install -d ${D}${includedir}/wpa_client
install -m 755 wpa_supplicant/libwpa_client.so ${D}${libdir}/libwpa_client.so.2.10.0
install -m 644 src/common/wpa_ctrl.h ${D}${includedir}/wpa_client
ln -sf libwpa_client.so.2.10.0 ${D}${libdir}/libwpa_client.so
}
do_compile () {
unset CFLAGS CPPFLAGS CXXFLAGS
oe_runmake -C ${TARGET_NAME} libwpa_client.so
}