diff options
author | Antonin Godard <antoningodard@pm.me> | 2023-02-15 10:55:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-02-24 16:41:42 +0000 |
commit | 76180110391373ce9ff6ecb8dc8d986784f75c13 (patch) | |
tree | bf97bd24dccf462068cf978787ce6256604a54b9 | |
parent | b4802e2fdb2b583608d50c4e45ab41d621c50e84 (diff) | |
download | poky-76180110391373ce9ff6ecb8dc8d986784f75c13.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.
(From OE-Core rev: a3f31997c633e8476bad68c81fac0dcd0750c7d4)
Signed-off-by: Antonin Godard <antoningodard@pm.me>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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() { | |||
157 | cp include/autoconf.h.orig include/autoconf.h | 157 | cp include/autoconf.h.orig include/autoconf.h |
158 | 158 | ||
159 | if [ "${BUSYBOX_SPLIT_SUID}" = "1" -a x`grep "CONFIG_FEATURE_INDIVIDUAL=y" .config` = x ]; then | 159 | if [ "${BUSYBOX_SPLIT_SUID}" = "1" -a x`grep "CONFIG_FEATURE_INDIVIDUAL=y" .config` = x ]; then |
160 | # Guard againt interrupted do_compile: clean temporary files. | ||
161 | rm -f .config.app.suid .config.app.nosuid .config.disable.apps .config.nonapps | ||
162 | |||
160 | # split the .config into two parts, and make two busybox binaries | 163 | # split the .config into two parts, and make two busybox binaries |
161 | oe_runmake busybox.cfg.suid | 164 | oe_runmake busybox.cfg.suid |
162 | oe_runmake busybox.cfg.nosuid | 165 | oe_runmake busybox.cfg.nosuid |