summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@gmail.com>2018-03-21 13:20:48 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-25 09:40:42 +0100
commit4fb30daa96de18f5af857efe6c45e5804bbe8575 (patch)
tree3a8aa16497b45e3b95ca384df89b23f36be78e31
parented2dc5f03aa46013ae05a1802d42a3a5ec10845d (diff)
downloadpoky-4fb30daa96de18f5af857efe6c45e5804bbe8575.tar.gz
externalsrc: do not call make clean for recipes with CLEANBROKEN = "1" set
ERROR: distrho-ports-0.0.0+git999-r0 do_buildclean: oe_runmake failed ERROR: distrho-ports-0.0.0+git999-r0 do_buildclean: Function failed: do_buildclean ERROR: Logfile of failure stored in: <...>/temp/log.do_buildclean.17285 Log data follows: | DEBUG: Executing shell function do_buildclean | NOTE: make clean | make clean -C libs/drowaudio | make[1]: Entering directory '/home/a.mueller/data/oe-core/workspace/sources/distrho-ports/libs/drowaudio' | make clean -C build-drowaudio | make[2]: Entering directory '/home/a.mueller/data/oe-core/workspace/sources/distrho-ports/libs/drowaudio/build-drowaudio' | make[2]: *** No rule to make target 'clean'. Stop. | make[2]: Leaving directory '/home/a.mueller/data/oe-core/workspace/sources/distrho-ports/libs/drowaudio/build-drowaudio' | make[1]: *** [Makefile:7: clean] Error 2 | make[1]: Leaving directory '/home/a.mueller/data/oe-core/workspace/sources/distrho-ports/libs/drowaudio' | make: *** [Makefile:73: clean] Error 2 | ERROR: oe_runmake failed (From OE-Core rev: 21fa28d8faf33b2717e38886352238dd360ef346) Signed-off-by: Andreas Müller <schnitzeltony@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/externalsrc.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/externalsrc.bbclass b/meta/classes/externalsrc.bbclass
index ac1b904e72..3f1d39689b 100644
--- a/meta/classes/externalsrc.bbclass
+++ b/meta/classes/externalsrc.bbclass
@@ -173,7 +173,9 @@ do_buildclean[doc] = "Call 'make clean' or equivalent in ${B}"
173externalsrc_do_buildclean() { 173externalsrc_do_buildclean() {
174 if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then 174 if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then
175 rm -f ${@' '.join([x.split(':')[0] for x in (d.getVar('EXTERNALSRC_SYMLINKS') or '').split()])} 175 rm -f ${@' '.join([x.split(':')[0] for x in (d.getVar('EXTERNALSRC_SYMLINKS') or '').split()])}
176 oe_runmake clean || die "make failed" 176 if [ "${CLEANBROKEN}" != "1" ]; then
177 oe_runmake clean || die "make failed"
178 fi
177 else 179 else
178 bbnote "nothing to do - no makefile found" 180 bbnote "nothing to do - no makefile found"
179 fi 181 fi