From: Peter Kjellerstedt Date: Wed, 19 Apr 2017 16:57:09 +0000 (+0200) Subject: cmake.bbclass: Do not use bitbake variable syntax for shell variables X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~21561 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea6befae799f45cf93771442f242cb023dd809d1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git cmake.bbclass: Do not use bitbake variable syntax for shell variables Using bitbake variable syntax (i.e., ${FOO}) for shell variables is bad practice. First of all it is confusing, but more importantly it can lead to weird problems if someone actually defines a bitbake variable with the same name as the shell variable. Also use lower case for local shell variables. Signed-off-by: Peter Kjellerstedt Signed-off-by: Ross Burton --- diff --git a/meta/classes/cmake.bbclass b/meta/classes/cmake.bbclass index 3f670919a84..20d8a61069f 100644 --- a/meta/classes/cmake.bbclass +++ b/meta/classes/cmake.bbclass @@ -43,12 +43,12 @@ def map_target_arch_to_uname_arch(target_arch): cmake_do_generate_toolchain_file() { if [ "${BUILD_SYS}" = "${HOST_SYS}" ]; then - CMAKE_CROSSCOMPILING="set( CMAKE_CROSSCOMPILING FALSE )" + cmake_crosscompiling="set( CMAKE_CROSSCOMPILING FALSE )" fi cat > ${WORKDIR}/toolchain.cmake <