From: Ross Burton Date: Thu, 4 Dec 2014 14:14:57 +0000 (+0000) Subject: base.bbclass: fix CLEANBROKEN logic X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~31907 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9e95c3cd771b16bbf4c9eaa05c79d7b4ca7272a;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git base.bbclass: fix CLEANBROKEN logic The evalation order was incorrect in some situations (CLEANBROKEN=1 and GNUmakefile exists) the clean would be executed incorrectly. Add brackets to correct the logic. Signed-off-by: Ross Burton --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index f3185b420e3..de81a7d6873 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -226,7 +226,7 @@ base_do_configure() { if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" ]; then cd ${B} - if [ "${CLEANBROKEN}" != "1" -a -e Makefile -o -e makefile -o -e GNUmakefile ]; then + if [ "${CLEANBROKEN}" != "1" -a \( -e Makefile -o -e makefile -o -e GNUmakefile \) ]; then ${MAKE} clean fi find ${B} -name \*.la -delete