From 7388a07701b61feee2ce9653c51263a646d64f38 Mon Sep 17 00:00:00 2001 From: Filip Kokosinski Date: Wed, 19 Jul 2023 15:40:55 +0200 Subject: [PATCH] kconfig: expand the CLEANUP_INTERMEDIATE_FILES symbol description Y-selecting CLEANUP_INTERMEDIATE_FILES negatively impacts tools/commands that depend on the build artifacts being present. One such case is the `west spdx` command used for Software Bill of Material generation. If CLEANUP_INTERMEDIATE_FILES is y-selected, build files are removed from the `cfgTarget.target.artifacts` list. This in turn causes the `addBuildFile` function to nod add them to `pkg`, so `pkg.targetBuildFile` is `None` in `scripts/west_commands/zspdx/walker.py`. This commit expands the help message for the CLEANUP_INTERMEDIATE_FILES symbol to inform the user of the possible negative impact of selecting this symbol. Signed-off-by: Filip Kokosinski --- Kconfig.zephyr | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Kconfig.zephyr b/Kconfig.zephyr index 809565ee507..6243a03fe7d 100644 --- a/Kconfig.zephyr +++ b/Kconfig.zephyr @@ -537,7 +537,8 @@ config CLEANUP_INTERMEDIATE_FILES bool "Remove all intermediate files" help Delete intermediate files to save space and cleanup clutter resulting - from the build process. + from the build process. Note this breaks incremental builds, west spdx + (Software Bill of Material generation), and maybe others. config BUILD_NO_GAP_FILL bool "Don't fill gaps in generated hex/bin/s19 files."