From 45b7d3add14eafc25da62bab68d4ae133f8dcb57 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 5 Nov 2014 18:46:35 +0000 Subject: 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. Signed-off-by: Richard Purdie --- meta/classes/base.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'meta/classes') 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() { } CONFIGURESTAMPFILE = "${WORKDIR}/configure.sstate" +CLEANBROKEN = "0" addtask configure after do_patch do_configure[dirs] = "${S} ${B}" @@ -225,7 +226,7 @@ base_do_configure() { if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" ]; then cd ${B} - if [ -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 -- cgit 1.2.3-korg