From 0cd6283a4174453ac8d927d917268ba0c3161a02 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 --- 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 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"