diff mbox series

[meta-oe,walnascar] lcov: Add missing RDEPENDS for nativesdk

Message ID 20250820123427.3245441-1-jefdriesen@telenet.be
State New
Headers show
Series [meta-oe,walnascar] lcov: Add missing RDEPENDS for nativesdk | expand

Commit Message

Jef Driesen Aug. 20, 2025, 12:34 p.m. UTC
From: Jef Driesen <jefdriesen@telenet.be>

When building an SDK with lcov included, gcov isn't included in the SDK
by default. Running lcov to generate coverage fails, because it tries to
use the gcov binary from the host system instead and that cause problems
if the gcc versions do not match.

Signed-off-by: Jef Driesen <jefdriesen@telenet.be>
---
 meta-oe/recipes-support/lcov/lcov_1.16.bb | 6 ++++++
 1 file changed, 6 insertions(+)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/lcov/lcov_1.16.bb b/meta-oe/recipes-support/lcov/lcov_1.16.bb
index a889b3fa82..0d19d50077 100755
--- a/meta-oe/recipes-support/lcov/lcov_1.16.bb
+++ b/meta-oe/recipes-support/lcov/lcov_1.16.bb
@@ -50,6 +50,12 @@  RDEPENDS:${PN}:append:class-target = " \
     gcov \
     gcov-symlinks \
 "
+
+RDEPENDS:${PN}:append:class-nativesdk = " \
+    nativesdk-gcov \
+    nativesdk-gcov-symlinks \
+"
+
 SRC_URI = "https://github.com/linux-test-project/lcov/releases/download/v${PV}/lcov-${PV}.tar.gz"
 SRC_URI[sha256sum] = "987031ad5528c8a746d4b52b380bc1bffe412de1f2b9c2ba5224995668e3240b"