[openwrt/openwrt] wolfssl: use dynamic ABI_VERSION depending on the configuration and package version

LEDE Commits lede-commits at lists.infradead.org
Mon Feb 15 01:41:22 EST 2021


nbd pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f378d81da6d1976ba3d304932cda4ff0cdd5f182

commit f378d81da6d1976ba3d304932cda4ff0cdd5f182
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri Feb 12 11:36:47 2021 +0100

    wolfssl: use dynamic ABI_VERSION depending on the configuration and package version
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 package/libs/wolfssl/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/package/libs/wolfssl/Makefile b/package/libs/wolfssl/Makefile
index ff01fca663..51dc4d5a09 100644
--- a/package/libs/wolfssl/Makefile
+++ b/package/libs/wolfssl/Makefile
@@ -33,6 +33,8 @@ PKG_CONFIG_DEPENDS:=\
 	CONFIG_WOLFSSL_HAS_SESSION_TICKET CONFIG_WOLFSSL_HAS_TLSV10 \
 	CONFIG_WOLFSSL_HAS_TLSV13 CONFIG_WOLFSSL_HAS_WPAS CONFIG_WOLFSSL_HAS_CERTGEN
 
+PKG_ABI_VERSION=$(patsubst %-stable,%,$(PKG_VERSION)).$(call version_abbrev,$(call confvar,$(PKG_CONFIG_DEPENDS)))
+
 include $(INCLUDE_DIR)/package.mk
 
 define Package/libwolfssl
@@ -44,7 +46,7 @@ define Package/libwolfssl
   MENU:=1
   PROVIDES:=libcyassl
   DEPENDS:=+WOLFSSL_HAS_DEVCRYPTO:kmod-cryptodev +WOLFSSL_HAS_AFALG:kmod-crypto-user
-  ABI_VERSION:=24
+  ABI_VERSION:=$(PKG_ABI_VERSION)
 endef
 
 define Package/libwolfssl/description



More information about the lede-commits mailing list