[yocto] [meta-security][PATCH 3/4] busybox: fix sig changes when layer added

Armin Kuster akuster808 at gmail.com
Sun Sep 1 15:10:20 PDT 2019


Signed-off-by: Armin Kuster <akuster808 at gmail.com>
---
 recipes-core/busybox/busybox_%.bbappend    | 4 +---
 recipes-core/busybox/busybox_libsecomp.inc | 3 +++
 2 files changed, 4 insertions(+), 3 deletions(-)
 create mode 100644 recipes-core/busybox/busybox_libsecomp.inc

diff --git a/recipes-core/busybox/busybox_%.bbappend b/recipes-core/busybox/busybox_%.bbappend
index 8bb0706..27a2482 100644
--- a/recipes-core/busybox/busybox_%.bbappend
+++ b/recipes-core/busybox/busybox_%.bbappend
@@ -1,3 +1 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-SRC_URI += "file://head.cfg"
+require ${@bb.utils.contains('DISTRO_FEATURES', 'ptest', 'busybox_libsecomp.inc', '', d)}
diff --git a/recipes-core/busybox/busybox_libsecomp.inc b/recipes-core/busybox/busybox_libsecomp.inc
new file mode 100644
index 0000000..4af22ce
--- /dev/null
+++ b/recipes-core/busybox/busybox_libsecomp.inc
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/busybox:"
+
+SRC_URI_append  = " file://head.cfg"
-- 
2.17.1



More information about the yocto mailing list