cmake_extra_sanity.bbclass: align paths for recipe specific sysroot

We might get double warnings but that seems acceptable

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
This commit is contained in:
Andreas Müller
2017-08-06 16:26:32 +02:00
parent 451a2258bf
commit 34e894f359

View File

@@ -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