[oe] [meta-oe][PATCH 2/3] safec: Put perl requiring tools into separate package

Khem Raj raj.khem at gmail.com
Fri Mar 20 14:45:52 UTC 2020


There is one script - a check tool that needs perl on
target, which perhaps is only needed during development and testing
therefore move that to a separate package. Rest of safec is then
independent of perl runtime requirement.

Signed-off-by: Khem Raj <raj.khem at gmail.com>
---
 meta-oe/recipes-core/safec/safec_3.5.bb | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/meta-oe/recipes-core/safec/safec_3.5.bb b/meta-oe/recipes-core/safec/safec_3.5.bb
index c9ace3b0b8..66b1f6a1aa 100644
--- a/meta-oe/recipes-core/safec/safec_3.5.bb
+++ b/meta-oe/recipes-core/safec/safec_3.5.bb
@@ -16,4 +16,8 @@ CPPFLAGS_append_libc-musl = " -D_GNU_SOURCE"
 
 COMPATIBLE_HOST = '(x86_64|i.86|powerpc|powerpc64|arm).*-linux'
 
-RDEPENDS_${PN} = "perl"
+PACKAGES =+ "${PN}-check"
+
+FILES_${PN}-check += "${bindir}/check_for_unsafe_apis"
+
+RDEPENDS_${PN}-check += "perl"
-- 
2.25.2



More information about the Openembedded-devel mailing list