]> code.ossystems Code Review - openembedded-core.git/commitdiff
externalsrc: do not call make clean for recipes with CLEANBROKEN = "1" set
authorAndreas Müller <schnitzeltony@gmail.com>
Wed, 21 Mar 2018 12:20:48 +0000 (13:20 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 25 Mar 2018 08:33:36 +0000 (09:33 +0100)
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

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/externalsrc.bbclass

index ac1b904e72ce75ef04edbe08fe8f07619e469fc2..3f1d39689b8e45ccddc0a91f7c23b9217c8d097e 100644 (file)
@@ -173,7 +173,9 @@ do_buildclean[doc] = "Call 'make clean' or equivalent in ${B}"
 externalsrc_do_buildclean() {
        if [ -e Makefile -o -e makefile -o -e GNUmakefile ]; then
                rm -f ${@' '.join([x.split(':')[0] for x in (d.getVar('EXTERNALSRC_SYMLINKS') or '').split()])}
-               oe_runmake clean || die "make failed"
+               if [ "${CLEANBROKEN}" != "1" ]; then
+                       oe_runmake clean || die "make failed"
+               fi
        else
                bbnote "nothing to do - no makefile found"
        fi