fix: create a versioned library libwpa_client.so

BugzId: 75694
This commit is contained in:
Jürgen Henke 2021-11-11 09:26:26 +01:00
parent b178890686
commit 31c63eb5b8
2 changed files with 71 additions and 70 deletions

View File

@ -15,72 +15,73 @@ inherit pkgconfig
PACKAGECONFIG = "openssl" PACKAGECONFIG = "openssl"
SRC_URI = "git://w1.fi/hostap.git;protocol=http \ SRC_URI = "git://w1.fi/hostap.git;protocol=http \
file://wpa_supplicant-full.config \ file://wpa_supplicant-full.config \
file://hostapd-full.config \ file://hostapd-full.config \
file://src/utils/build_features.h \ file://src/utils/build_features.h \
file://0001-Add-build-artifact-build_features.h-to-gitignore.patch \ file://0001-Add-build-artifact-build_features.h-to-gitignore.patch \
file://0002-Use-environment-variable-EXTRA_CFLAGS.patch \ file://0002-Use-environment-variable-EXTRA_CFLAGS.patch \
file://001-HE-VHT-fix-frequency-setup-with-HE-enabled.patch \ file://001-HE-VHT-fix-frequency-setup-with-HE-enabled.patch \
file://002-mesh-fix-channel-init-order-disable-pri-sec-channel-.patch \ file://002-mesh-fix-channel-init-order-disable-pri-sec-channel-.patch \
file://003-wpa_supplicant-handle-HT40-and-mode-downgrade-in-AP-.patch \ file://003-wpa_supplicant-handle-HT40-and-mode-downgrade-in-AP-.patch \
file://004-wpa_supplicant-fix-frequency-config-for-non-p2p-vht-.patch \ file://004-wpa_supplicant-fix-frequency-config-for-non-p2p-vht-.patch \
file://005-wpa_supplicant-enable-vht-and-he-in-default-config-p.patch \ file://005-wpa_supplicant-enable-vht-and-he-in-default-config-p.patch \
file://006-hw_features-better-debug-messages-for-some-error-cas.patch \ file://006-hw_features-better-debug-messages-for-some-error-cas.patch \
file://007-dfs-use-helper-functions-for-vht-he-parameters.patch \ file://007-dfs-use-helper-functions-for-vht-he-parameters.patch \
file://008-mesh-use-setup-completion-callback-to-complete-mesh-.patch \ file://008-mesh-use-setup-completion-callback-to-complete-mesh-.patch \
file://009-mesh-update-ssid-frequency-as-pri-sec-channel-switch.patch \ file://009-mesh-update-ssid-frequency-as-pri-sec-channel-switch.patch \
file://010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch \ file://010-mesh-Allow-DFS-channels-to-be-selected-if-dfs-is-ena.patch \
file://011-mesh-do-not-set-offchanok-on-DFS-channels-in-non-ETS.patch \ file://011-mesh-do-not-set-offchanok-on-DFS-channels-in-non-ETS.patch \
file://012-mesh-fix-channel-switch-error-during-CAC.patch \ file://012-mesh-fix-channel-switch-error-during-CAC.patch \
file://013-mesh-inform-kernel-driver-DFS-handler-in-userspace.patch \ file://013-mesh-inform-kernel-driver-DFS-handler-in-userspace.patch \
file://014-mesh-fixes-for-mesh-init-deinit.patch \ file://014-mesh-fixes-for-mesh-init-deinit.patch \
file://015-mesh-fix-DFS-deinit-init.patch \ file://015-mesh-fix-DFS-deinit-init.patch \
file://016-tests-DFS-test-for-wpa_supplicant-mesh.patch \ file://016-tests-DFS-test-for-wpa_supplicant-mesh.patch \
file://017-mesh-fix-mesh_oom-test.patch \ file://017-mesh-fix-mesh_oom-test.patch \
file://018-mesh-move-mesh-freq-setting-to-own-function.patch \ file://018-mesh-move-mesh-freq-setting-to-own-function.patch \
file://019-mesh-use-deterministic-channel-on-channel-switch.patch \ file://019-mesh-use-deterministic-channel-on-channel-switch.patch \
file://020-ignore-4addr-mode-enabling-error.patch \ file://020-ignore-4addr-mode-enabling-error.patch \
file://050-mesh-make-forwarding-configurable.patch \ file://050-mesh-make-forwarding-configurable.patch \
file://060-P2P-Fix-a-corner-case-in-peer-addition-based-on-PD-R.patch \ file://060-P2P-Fix-a-corner-case-in-peer-addition-based-on-PD-R.patch \
file://100-daemonize_fix.patch \ file://100-daemonize_fix.patch \
file://110-notify-mgmt-frames.patch \ file://110-notify-mgmt-frames.patch \
file://110-wolfssl-compile-fix.patch \ file://110-wolfssl-compile-fix.patch \
file://120-reconfigure-wps-credentials.patch \ file://120-reconfigure-wps-credentials.patch \
file://200-multicall.patch \ file://200-multicall.patch \
file://300-noscan.patch \ file://300-noscan.patch \
file://301-mesh-noscan.patch \ file://301-mesh-noscan.patch \
file://310-rescan_immediately.patch \ file://310-rescan_immediately.patch \
file://320-optional_rfkill.patch \ file://320-optional_rfkill.patch \
file://330-nl80211_fix_set_freq.patch \ file://330-nl80211_fix_set_freq.patch \
file://340-reload_freq_change.patch \ file://340-reload_freq_change.patch \
file://341-mesh-ctrl-iface-channel-switch.patch \ file://341-mesh-ctrl-iface-channel-switch.patch \
file://350-nl80211_del_beacon_bss.patch \ file://350-nl80211_del_beacon_bss.patch \
file://360-ctrl_iface_reload.patch \ file://360-ctrl_iface_reload.patch \
file://370-ap_sta_support.patch \ file://370-ap_sta_support.patch \
file://380-disable_ctrl_iface_mib.patch \ file://380-disable_ctrl_iface_mib.patch \
file://381-hostapd_cli_UNKNOWN-COMMAND.patch \ file://381-hostapd_cli_UNKNOWN-COMMAND.patch \
file://390-wpa_ie_cap_workaround.patch \ file://390-wpa_ie_cap_workaround.patch \
file://400-wps_single_auth_enc_type.patch \ file://400-wps_single_auth_enc_type.patch \
file://410-limit_debug_messages.patch \ file://410-limit_debug_messages.patch \
file://420-indicate-features.patch \ file://420-indicate-features.patch \
file://430-hostapd_cli_ifdef.patch \ file://430-hostapd_cli_ifdef.patch \
file://431-wpa_cli_ifdef.patch \ file://431-wpa_cli_ifdef.patch \
file://432-missing-typedef.patch \ file://432-missing-typedef.patch \
file://450-scan_wait.patch \ file://450-scan_wait.patch \
file://460-wpa_supplicant-add-new-config-params-to-be-used-with.patch \ file://460-wpa_supplicant-add-new-config-params-to-be-used-with.patch \
file://461-driver_nl80211-use-new-parameters-during-ibss-join.patch \ file://461-driver_nl80211-use-new-parameters-during-ibss-join.patch \
file://463-add-mcast_rate-to-11s.patch \ file://463-add-mcast_rate-to-11s.patch \
file://464-fix-mesh-obss-check.patch \ file://464-fix-mesh-obss-check.patch \
file://470-survey_data_fallback.patch \ file://470-survey_data_fallback.patch \
file://500-lto-jobserver-support.patch \ file://500-lto-jobserver-support.patch \
file://599-wpa_supplicant-fix-warnings.patch \ file://599-wpa_supplicant-fix-warnings.patch \
file://700-wifi-reload.patch \ file://700-wifi-reload.patch \
file://800-dfs-enter-DFS-state-if-no-available-channel-is-found.patch \ file://800-dfs-enter-DFS-state-if-no-available-channel-is-found.patch \
file://801-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patch \ file://801-P2P-Fix-copying-of-secondary-device-types-for-P2P-gr.patch \
file://912-iapp-integration.patch \ file://912-iapp-integration.patch \
file://913-iapp-improvements.patch \ file://913-iapp-improvements.patch \
file://914-wlan-acs-srd-channels.patch \ file://914-wlan-acs-srd-channels.patch \
" file://0001-fix-create-a-versioned-shared-library-libwlan_client.patch \
"
SRCREV = "5a8b366233f5585e68a4ffbb604fbb4a848eb325" SRCREV = "5a8b366233f5585e68a4ffbb604fbb4a848eb325"
SRC_URI[md5sum] = "a68538fb62766f40f890125026c42c10" SRC_URI[md5sum] = "a68538fb62766f40f890125026c42c10"

View File

@ -5,9 +5,9 @@ TARGET_NAME = "wpa_supplicant"
include hostapd.inc include hostapd.inc
PACKAGES_prepend = "libwpa_client" #PACKAGES_prepend = "libwpa_client"
FILES_libwpa_client = "${libdir}/libwpa_client.so" FILES_${PN} += "${libdir}/*.so"
RPROVIDES_${PN} = "libwpa_client.so" RPROVIDES_${PN} = "libwpa_client.so"
PROVIDES = "libwpa_client.so" PROVIDES = "libwpa_client.so"
@ -16,9 +16,9 @@ do_install () {
install -d ${D}${libdir} install -d ${D}${libdir}
install -d ${D}${includedir}/wpa_client install -d ${D}${includedir}/wpa_client
install -m 755 wpa_supplicant/libwpa_client.so ${D}${libdir}/libwpa_client.so.1.0.0 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 install -m 644 src/common/wpa_ctrl.h ${D}${includedir}/wpa_client
ln -sf libwpa_client.so.1.0.0 ${D}${libdir}/libwpa_client.so ln -sf libwpa_client.so.2.10.0 ${D}${libdir}/libwpa_client.so
} }
do_compile () { do_compile () {