mbedtls: build with v2 version by default

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

Signed-off-by: Beniamin Sandu <beniaminsandu@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Beniamin Sandu
2023-07-12 18:04:19 +03:00
committed by Armin Kuster
parent 8814f25902
commit b541346589
@@ -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"