From fd29867987066fc047482b90796bbcd5fdf1a481 Mon Sep 17 00:00:00 2001 From: Jef Driesen Date: Wed, 20 Aug 2025 14:34:27 +0200 Subject: [PATCH] lcov: Add missing RDEPENDS for nativesdk 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 Signed-off-by: Gyorgy Sarvari (cherry picked from commit 0cd6283a4174453ac8d927d917268ba0c3161a02) Signed-off-by: Anuj Mittal --- meta-oe/recipes-support/lcov/lcov_1.16.bb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/meta-oe/recipes-support/lcov/lcov_1.16.bb b/meta-oe/recipes-support/lcov/lcov_1.16.bb index 81b80790fe..6b8c105d3e 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[md5sum] = "bfee0cef50d7b7bd1df03bfadf68dcef" SRC_URI[sha256sum] = "987031ad5528c8a746d4b52b380bc1bffe412de1f2b9c2ba5224995668e3240b"