From 34e894f3597ec12fba4d7967e6f2cb5119048fd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 6 Aug 2017 16:26:32 +0200 Subject: [PATCH] cmake_extra_sanity.bbclass: align paths for recipe specific sysroot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We might get double warnings but that seems acceptable Signed-off-by: Andreas Müller --- classes/cmake_extra_sanity.bbclass | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/classes/cmake_extra_sanity.bbclass b/classes/cmake_extra_sanity.bbclass index c5e8467e..4a8d94ce 100644 --- a/classes/cmake_extra_sanity.bbclass +++ b/classes/cmake_extra_sanity.bbclass @@ -24,19 +24,32 @@ do_install_append() { error= # check for genarated sources for f in `find ${B} -name '*.h' -o -name '*.cpp'` ; do - if grep -q '${STAGING_DIR}' $f ; then + if grep -q '${STAGING_DIR_HOST}' $f ; then bbwarn "$f contains links to build host sysroot!" error=true fi done + for f in `find ${B} -name '*.h' -o -name '*.cpp'` ; do + if grep -q '${STAGING_DIR_NATIVE}' $f ; then + bbwarn "$f contains links to build native sysroot!" + error=true + fi + done # check installed cmake files for f in `find ${D} -name '*.cmake'` ; do - if grep -q '${STAGING_DIR}' "$f" ; then + if grep -q '${STAGING_DIR_HOST}' "$f" ; then bbwarn "$f contains links to build host sysroot!" error=true fi + done + for f in `find ${D} -name '*.cmake'` ; do + if grep -q '${STAGING_DIR_NATIVE}' "$f" ; then + bbwarn "$f contains links to build native sysroot!" + error=true + fi + done if [ x != x$error ] ; then