Skip to contentSkip to conversation

mbedtls: build with v2 version by default

PATCH New Beniamin Sandu 1 participant 1 message Jul 12, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mbedtls: build with v2 version by default

For anyone else that wants to use the newer v3, there is PREFERRED_VERSION.

---
 meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.4.0.bb +3 -0
index b8c9662de..3a355bb43 100644
@@ -31,6 +31,9 @@ SRC_URI = "git://github.com/ARMmbed/mbedtls.git;protocol=https;branch=master \
 
 inherit cmake update-alternatives ptest
 
+# Build with the v2 LTS version by default
+DEFAULT_PREFERENCE = "-1"
+
 PACKAGECONFIG ??= "shared-libs programs ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)}"
 PACKAGECONFIG[shared-libs] = "-DUSE_SHARED_MBEDTLS_LIBRARY=ON,-DUSE_SHARED_MBEDTLS_LIBRARY=OFF"
 PACKAGECONFIG[programs] = "-DENABLE_PROGRAMS=ON,-DENABLE_PROGRAMS=OFF"
Signature · 1 line
2.25.1