summaryrefslogtreecommitdiffstats
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-05 18:46:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-09 10:21:19 +0000
commite6cbda6419beb7b09a82325507f492f4f95e8776 (patch)
treef1e369b649a534f1f1a008fb6d5787f3cf235c91 /meta/classes/base.bbclass
parent2020ba7c48793c2a628d90b63fd91d5c283de5ca (diff)
downloadpoky-e6cbda6419beb7b09a82325507f492f4f95e8776.tar.gz
base: Improve makefile clean handling, introduce CLEANBROKEN variable
It turns out we have quite a number of Makefiles out there without a clean target. Rather than have all cases code an empty do_configure, add a CLEANBROKEN variable which when set to "1" will disable the attempt to "make clean". This patch also adjusts various recipes which either have this problem fixed, or have been reported to have make clean failures. (From OE-Core rev: 45b7d3add14eafc25da62bab68d4ae133f8dcb57) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index e1b25ff134..c135939709 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -217,6 +217,7 @@ python base_eventhandler() {
217} 217}
218 218
219CONFIGURESTAMPFILE = "${WORKDIR}/configure.sstate" 219CONFIGURESTAMPFILE = "${WORKDIR}/configure.sstate"
220CLEANBROKEN = "0"
220 221
221addtask configure after do_patch 222addtask configure after do_patch
222do_configure[dirs] = "${S} ${B}" 223do_configure[dirs] = "${S} ${B}"
@@ -225,7 +226,7 @@ base_do_configure() {
225 if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then 226 if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then
226 if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" ]; then 227 if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" ]; then
227 cd ${B} 228 cd ${B}
228 if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then 229 if [ "${CLEANBROKEN}" != "1" -a -e Makefile -o -e makefile -o -e GNUmakefile ]; then
229 ${MAKE} clean 230 ${MAKE} clean
230 fi 231 fi
231 find ${B} -name \*.la -delete 232 find ${B} -name \*.la -delete