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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user