summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-12-04 14:14:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-12-05 17:43:14 +0000
commita9e95c3cd771b16bbf4c9eaa05c79d7b4ca7272a (patch)
tree1a7715b1634389d00904587f54d00868b6632357 /meta/classes/base.bbclass
parent113225b93c55d55a330fcca7d9f996ec039fb953 (diff)
downloadopenembedded-core-a9e95c3cd771b16bbf4c9eaa05c79d7b4ca7272a.tar.gz
openembedded-core-a9e95c3cd771b16bbf4c9eaa05c79d7b4ca7272a.tar.bz2
openembedded-core-a9e95c3cd771b16bbf4c9eaa05c79d7b4ca7272a.zip
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 <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index f3185b420e..de81a7d687 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