mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 22:26:31 +00:00
package/wpa_supplicant: add config option to build wpa_client library
Version 2.5 of wpa_supplicant introduces the config option CONFIG_BUILD_WPA_CLIENT_SO to enable building wpa_client as shared library. We need to add a patch from upstream to fix a runtime error with libwpa_client.so: Error relocating /usr/lib/libwpa_client.so: bin_clear_free: symbol not found [Thomas: renumber patch.] Cc: Martin Bark <martin@barkynet.com> Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Reviewed-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
619280aea0
commit
4e793b82a5
39
package/wpa_supplicant/0006-fix-libwpa_client.patch
Normal file
39
package/wpa_supplicant/0006-fix-libwpa_client.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
From 6f7e0354a9035ce33742a5f869f817a6b39b2f31 Mon Sep 17 00:00:00 2001
|
||||||
|
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
|
||||||
|
Date: Thu, 29 Oct 2015 11:39:03 +0100
|
||||||
|
Subject: [PATCH 1/1] wpa_supplicant/Makefile: fix libwpa_client
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
Building libwpa_client requires src/utils/common.c for bin_clear_free() else
|
||||||
|
loading the library fails with:
|
||||||
|
|
||||||
|
Error relocating /usr/lib/libwpa_client.so: bin_clear_free: symbol not found
|
||||||
|
|
||||||
|
Backported from: 736b7cb2daf877a0cb9ad42ff15a2efbbd65fa42
|
||||||
|
|
||||||
|
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
|
||||||
|
---
|
||||||
|
wpa_supplicant/Makefile | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile
|
||||||
|
index 61f8f18..0c444b0 100644
|
||||||
|
--- a/wpa_supplicant/Makefile
|
||||||
|
+++ b/wpa_supplicant/Makefile
|
||||||
|
@@ -1706,9 +1706,11 @@ wpa_cli: $(OBJS_c)
|
||||||
|
|
||||||
|
LIBCTRL += ../src/common/wpa_ctrl.o
|
||||||
|
LIBCTRL += ../src/utils/os_$(CONFIG_OS).o
|
||||||
|
+LIBCTRL += ../src/utils/common.c
|
||||||
|
LIBCTRL += ../src/utils/wpa_debug.o
|
||||||
|
LIBCTRLSO += ../src/common/wpa_ctrl.c
|
||||||
|
LIBCTRLSO += ../src/utils/os_$(CONFIG_OS).c
|
||||||
|
+LIBCTRLSO += ../src/utils/common.c
|
||||||
|
LIBCTRLSO += ../src/utils/wpa_debug.c
|
||||||
|
|
||||||
|
libwpa_client.a: $(LIBCTRL)
|
||||||
|
--
|
||||||
|
2.6.2
|
||||||
|
|
@ -63,6 +63,15 @@ config BR2_PACKAGE_WPA_SUPPLICANT_CLI
|
|||||||
help
|
help
|
||||||
Install wpa_cli command line utility
|
Install wpa_cli command line utility
|
||||||
|
|
||||||
|
config BR2_PACKAGE_WPA_SUPPLICANT_WPA_CLIENT_SO
|
||||||
|
depends on !BR2_STATIC_LIBS
|
||||||
|
bool "Install wpa_client shared library"
|
||||||
|
help
|
||||||
|
Install libwpa_client.so.
|
||||||
|
|
||||||
|
comment "wpa_client library needs a toolchain w/ dynamic library"
|
||||||
|
depends on BR2_STATIC_LIBS
|
||||||
|
|
||||||
config BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE
|
config BR2_PACKAGE_WPA_SUPPLICANT_PASSPHRASE
|
||||||
bool "Install wpa_passphrase binary"
|
bool "Install wpa_passphrase binary"
|
||||||
help
|
help
|
||||||
|
@ -15,6 +15,9 @@ WPA_SUPPLICANT_DBUS_NEW_SERVICE = fi.w1.wpa_supplicant1
|
|||||||
WPA_SUPPLICANT_CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/
|
WPA_SUPPLICANT_CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/
|
||||||
WPA_SUPPLICANT_LDFLAGS = $(TARGET_LDFLAGS)
|
WPA_SUPPLICANT_LDFLAGS = $(TARGET_LDFLAGS)
|
||||||
|
|
||||||
|
# install the wpa_client library
|
||||||
|
WPA_SUPPLICANT_INSTALL_STAGING = YES
|
||||||
|
|
||||||
WPA_SUPPLICANT_CONFIG_EDITS =
|
WPA_SUPPLICANT_CONFIG_EDITS =
|
||||||
|
|
||||||
WPA_SUPPLICANT_CONFIG_SET =
|
WPA_SUPPLICANT_CONFIG_SET =
|
||||||
@ -117,6 +120,22 @@ WPA_SUPPLICANT_DEPENDENCIES += readline
|
|||||||
WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_READLINE
|
WPA_SUPPLICANT_CONFIG_ENABLE += CONFIG_READLINE
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_WPA_SUPPLICANT_WPA_CLIENT_SO),y)
|
||||||
|
WPA_SUPPLICANT_CONFIG_SET += CONFIG_BUILD_WPA_CLIENT_SO
|
||||||
|
define WPA_SUPPLICANT_INSTALL_WPA_CLIENT_SO
|
||||||
|
$(INSTALL) -m 0644 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/libwpa_client.so \
|
||||||
|
$(TARGET_DIR)/usr/lib/libwpa_client.so
|
||||||
|
$(INSTALL) -m 0644 -D $(@D)/src/common/wpa_ctrl.h \
|
||||||
|
$(TARGET_DIR)/usr/include/wpa_ctrl.h
|
||||||
|
endef
|
||||||
|
define WPA_SUPPLICANT_INSTALL_STAGING_WPA_CLIENT_SO
|
||||||
|
$(INSTALL) -m 0644 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/libwpa_client.so \
|
||||||
|
$(STAGING_DIR)/usr/lib/libwpa_client.so
|
||||||
|
$(INSTALL) -m 0644 -D $(@D)/src/common/wpa_ctrl.h \
|
||||||
|
$(STAGING_DIR)/usr/include/wpa_ctrl.h
|
||||||
|
endef
|
||||||
|
endif
|
||||||
|
|
||||||
define WPA_SUPPLICANT_CONFIGURE_CMDS
|
define WPA_SUPPLICANT_CONFIGURE_CMDS
|
||||||
cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG)
|
cp $(@D)/wpa_supplicant/defconfig $(WPA_SUPPLICANT_CONFIG)
|
||||||
sed -i $(patsubst %,-e 's/^#\(%\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \
|
sed -i $(patsubst %,-e 's/^#\(%\)/\1/',$(WPA_SUPPLICANT_CONFIG_ENABLE)) \
|
||||||
@ -159,6 +178,10 @@ define WPA_SUPPLICANT_INSTALL_DBUS
|
|||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
define WPA_SUPPLICANT_INSTALL_STAGING_CMDS
|
||||||
|
$(WPA_SUPPLICANT_INSTALL_STAGING_WPA_CLIENT_SO)
|
||||||
|
endef
|
||||||
|
|
||||||
define WPA_SUPPLICANT_INSTALL_TARGET_CMDS
|
define WPA_SUPPLICANT_INSTALL_TARGET_CMDS
|
||||||
$(INSTALL) -m 0755 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_supplicant \
|
$(INSTALL) -m 0755 -D $(@D)/$(WPA_SUPPLICANT_SUBDIR)/wpa_supplicant \
|
||||||
$(TARGET_DIR)/usr/sbin/wpa_supplicant
|
$(TARGET_DIR)/usr/sbin/wpa_supplicant
|
||||||
@ -167,6 +190,7 @@ define WPA_SUPPLICANT_INSTALL_TARGET_CMDS
|
|||||||
$(WPA_SUPPLICANT_INSTALL_CLI)
|
$(WPA_SUPPLICANT_INSTALL_CLI)
|
||||||
$(WPA_SUPPLICANT_INSTALL_PASSPHRASE)
|
$(WPA_SUPPLICANT_INSTALL_PASSPHRASE)
|
||||||
$(WPA_SUPPLICANT_INSTALL_DBUS)
|
$(WPA_SUPPLICANT_INSTALL_DBUS)
|
||||||
|
$(WPA_SUPPLICANT_INSTALL_WPA_CLIENT_SO)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define WPA_SUPPLICANT_INSTALL_INIT_SYSTEMD
|
define WPA_SUPPLICANT_INSTALL_INIT_SYSTEMD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user