[OE-core] [PATCH 2/4] autotools.bbclass: respect CLEANBROKEN

Ross Burton ross.burton at intel.com
Thu Dec 4 14:21:08 UTC 2014


autotools.bbclass should respect CLEANBROKEN as it invokes 'make clean' on
configure.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/autotools.bbclass |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index bed8a83..ca04e79 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -110,7 +110,7 @@ autotools_preconfigure() {
 				# At least remove the .la files since automake won't automatically
 				# regenerate them even if CFLAGS/LDFLAGS are different
 				cd ${S}
-				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 ${S} -name \*.la -delete
-- 
1.7.10.4




More information about the Openembedded-core mailing list