[oe,meta-oe,1/2] kernel-selftest: Disable the recipe by default

Message ID 20190918225805.825469-1-raj.khem@gmail.com
State New
Headers show
Series
  • [oe,meta-oe,1/2] kernel-selftest: Disable the recipe by default
Related show

Commit Message

Khem Raj Sept. 18, 2019, 10:58 p.m.
If one has meta-clang in layers then it will get enabled automatically
or else, install clang/llvm on build host and add

HOSTTOOLS += "clang llc"

To config metadata then add COMPHOST = "(*)" in a bbappend

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

-- 
2.23.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Patch

diff --git a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
index fb4534dca8..9e30c8df51 100644
--- a/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
+++ b/meta-oe/recipes-kernel/kernel-selftest/kernel-selftest.bb
@@ -115,5 +115,10 @@  RDEPENDS_${PN} += "python3"
 INSANE_SKIP_${PN} += "ldflags"
 
 SECURITY_CFLAGS = ""
-COMPATIBLE_HOST_libc-musl = 'null'
+
+# Set COMPHOST to (*) in a bbappend if you want to use it or include meta-clang in layer-mix
+
+COMPHOST ?= "null"
+COMPHOST_libc-musl = 'null'
+COMPATIBLE_HOST = "${COMPHOST}"