[oe] [meta-clang][PATCH] clang: update for cmake changes in oe-core

Ross Burton ross.burton at intel.com
Tue May 2 21:23:15 UTC 2017


cmake.bbclass in oe-core master (soon to be Pyro) doesn't set
CMAKE_CROSSCOMPILING unconditionally, but only when it's actually
cross-compiling.

This means the clang-native build doesn't think it's cross-compiling, so the
recipe can be simplified.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 recipes-devtools/clang/clang_git.bb | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb
index 4f712e1..839fa15 100644
--- a/recipes-devtools/clang/clang_git.bb
+++ b/recipes-devtools/clang/clang_git.bb
@@ -112,13 +112,8 @@ DEPENDS_append_class-target = " clang-cross-${TARGET_ARCH} ${@bb.utils.contains(
 
 RRECOMMENDS_${PN} = "binutils"
 
-do_compile_prepend_class-native () {
-	oe_runmake LLVM-tablegen-host
-	oe_runmake CLANG-tablegen-host
-}
-
 do_install_append_class-native () {
-	install -Dm 0755 ${B}/NATIVE/bin/clang-tblgen ${D}${bindir}/clang-tblgen
+	install -Dm 0755 ${B}/bin/clang-tblgen ${D}${bindir}/clang-tblgen
 	for f in `find ${D}${bindir} -executable -type f -not -type l`; do
 		test -n "`file $f|grep -i ELF`" && ${STRIP} $f
 		echo "stripped $f"
-- 
2.8.1




More information about the Openembedded-devel mailing list