]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
busybox: rm temporary files if do_compile was interrupted
authorAntonin Godard <antoningodard@pm.me>
Wed, 15 Feb 2023 10:55:41 +0000 (10:55 +0000)
committerSteve Sakoman <steve@sakoman.com>
Mon, 20 Feb 2023 15:51:44 +0000 (05:51 -1000)
To avoid working with undeterministic config files, remove all the
temporary files to start from scratch.

Signed-off-by: Antonin Godard <antoningodard@pm.me>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-core/busybox/busybox.inc

index 616a23258acdcdb14fb3b0eca701783811f707d5..f0c5666f473bf544704e7f5115ee87da65d5160a 100644 (file)
@@ -157,6 +157,9 @@ do_compile() {
        cp include/autoconf.h.orig include/autoconf.h
 
        if [ "${BUSYBOX_SPLIT_SUID}" = "1" -a x`grep "CONFIG_FEATURE_INDIVIDUAL=y" .config` = x ]; then
+               # Guard againt interrupted do_compile: clean temporary files.
+               rm -f .config.app.suid .config.app.nosuid .config.disable.apps .config.nonapps
+
                # split the .config into two parts, and make two busybox binaries
                oe_runmake busybox.cfg.suid
                oe_runmake busybox.cfg.nosuid