wolfssl: use dynamic ABI_VERSION depending on the configuration and package version
authorFelix Fietkau <nbd@nbd.name>
Fri, 12 Feb 2021 10:36:47 +0000 (11:36 +0100)
committerFelix Fietkau <nbd@nbd.name>
Mon, 15 Feb 2021 06:40:47 +0000 (07:40 +0100)
Signed-off-by: Felix Fietkau <nbd@nbd.name>
package/libs/wolfssl/Makefile

index ff01fca663104dbf6a75b72a1c3fd973499eb94e..51dc4d5a0933ce190658012303c07d34c3c013b9 100644 (file)
@@ -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