mbedtls: Fix warning for missing program
PATCH 1/1 mbedtls: Fix warning for missing program
From: Ricardo Simoes <[email protected]>
When PACKAGECONFIG does not contains 'programs', the hello binary will not be generated, but the ALTERNATIVE 'hello' is still set, causing the update-alternatives bbclass to generate warnings for the missing 'hello' binary.
This commit fixes that by only populating ALTERNATIVES when 'programs' is enabled.
Signed-off-by Ricardo Simoes <[email protected]>
Signed-off-by Mark Jonas <[email protected]>
--- meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.8.bb | 2 +- meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.0.bb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
meta-networking/recipes-connectivity/mbedtls/mbedtls_2.28.8.bb +1 -1
@@ -50,7 +50,7 @@ RPROVIDES:${PN} = "polarssl" PACKAGES =+ "${PN}-programs" FILES:${PN}-programs = "${bindir}/" -ALTERNATIVE:${PN}-programs = "hello" +ALTERNATIVE:${PN}-programs = "${@bb.utils.contains('PACKAGECONFIG', 'programs', 'hello', '', d)}" ALTERNATIVE_LINK_NAME[hello] = "${bindir}/hello" BBCLASSEXTEND = "native nativesdk"
meta-networking/recipes-connectivity/mbedtls/mbedtls_3.6.0.bb +1 -1
@@ -55,7 +55,7 @@ RPROVIDES:${PN} = "polarssl" PACKAGES =+ "${PN}-programs" FILES:${PN}-programs = "${bindir}/" -ALTERNATIVE:${PN}-programs = "hello" +ALTERNATIVE:${PN}-programs = "${@bb.utils.contains('PACKAGECONFIG', 'programs', 'hello', '', d)}" ALTERNATIVE_LINK_NAME[hello] = "${bindir}/hello" BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.34.1