diff options
author | Antonin Godard <antoningodard@pm.me> | 2023-02-15 10:55:41 +0000 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2023-02-20 05:51:44 -1000 |
commit | a3f31997c633e8476bad68c81fac0dcd0750c7d4 (patch) | |
tree | ef2d95450812e099d44c61bbca545fbf6858f933 | |
parent | 7ef76eaf5b68d52afdc4292bbe20309e29bb464a (diff) | |
download | openembedded-core-contrib-a3f31997c633e8476bad68c81fac0dcd0750c7d4.tar.gz |
busybox: rm temporary files if do_compile was interrupted
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>
-rw-r--r-- | meta/recipes-core/busybox/busybox.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/recipes-core/busybox/busybox.inc b/meta/recipes-core/busybox/busybox.inc index 616a23258a..f0c5666f47 100644 --- a/meta/recipes-core/busybox/busybox.inc +++ b/meta/recipes-core/busybox/busybox.inc @@ -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 |