[PATCH 1/1] test: Skip cleanup test if not built out of tree

2024-01-08 Thread Tobias Deiminger
anup tests in such scenarios to prevent false positives. Signed-off-by: Tobias Deiminger --- test/py/tests/test_cleanup_build.py | 5 + 1 file changed, 5 insertions(+) diff --git a/test/py/tests/test_cleanup_build.py b/test/py/tests/test_cleanup_build.py index 5206ff73ec..aca90cb110 100644 --- a/tes

[PATCH 0/1] Skip cleanup test if not built out of tree

2024-01-08 Thread Tobias Deiminger
/py/tests/test_cleanup_build.py:23: Leftover detection requires out of tree build. [1] https://github.com/Rahix/tbot/issues/107#issuecomment-1880192186 Tobias Deiminger (1): test: Skip cleanup test if not built out of tree test/py/tests/test_cleanup_build.py | 5 + 1 file changed, 5

[PATCH v2 6/6] test: Find leftovers after clean/mrproper

2023-06-19 Thread Tobias Deiminger
in an out-of-source build dir allows to tell generated source code from committed source code - copying is fast (compared to rebuilding each time) which allows to do a "world clean" Signed-off-by: Tobias Deiminger --- test/py/tests/test_cleanup_build.py | 105 ++

[PATCH v2 5/6] Kbuild: Fix cleanup of *.dtbo for sandbox

2023-06-19 Thread Tobias Deiminger
sandbox can generate DT overlays, but they were not cleaned. Extend the explicit clean-files list accordingly. Fixes: 95300f203f32 ("pytest: add sandbox test for "extension" command") Signed-off-by: Tobias Deiminger --- arch/sandbox/dts/Makefile | 2 +- 1 file change

[PATCH v2 4/6] Kbuild: Fix cleanup of *.dtb for some archs

2023-06-19 Thread Tobias Deiminger
'make clean' did not descend into arch/$ARCH/dts for arc, m68k, nios2, sh, xtensa. Fix it by adding the missing archs to the explicit clean-dirs list. Signed-off-by: Tobias Deiminger --- dts/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dts/Makefile b/dts

[PATCH v2 3/6] Kbuild: Fix cleanup of VPL

2023-06-19 Thread Tobias Deiminger
VPL artifacts like example vpl/u-boot-vpl are currently not removed by 'make clean'. We can clean them just as it's already done for SPL and TPL. Fixes: f86ca5ad8f78 ("Introduce Verifying Program Loader (VPL)") Signed-off-by: Tobias Deiminger --- Makefile | 4 ++-- 1 file changed, 2

[PATCH v2 2/6] Adjust gitignore for tools/generated/

2023-06-19 Thread Tobias Deiminger
Tell git that auto-generated C sources are now exclusively expected under tools/generated/. Signed-off-by: Tobias Deiminger --- tools/.gitignore | 1 + tools/env/.gitignore | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/.gitignore b/tools/.gitignore index

[PATCH v2 1/6] Kbuild: Fix cleanup of generated sources in tools

2023-06-19 Thread Tobias Deiminger
d or moved wrapper file. Fixes: 0649cd0d4908 ("Move environment files from common/ to env/") Fixes: 19a91f2464a8 ("Create a new boot/ directory") Signed-off-by: Tobias Deiminger --- tools/Makefile | 64 +- 1 file changed,

[PATCH v2 0/6] Kbuild: Fix cleanup of generated sources in tools (and more)

2023-06-19 Thread Tobias Deiminger
. Changes in v2: - add test for 'make clean' and 'make mrproper' - fix found issues until test passes - move .gitignore changes to separate commit [0] http://patchwork.ozlabs.org/project/uboot/patch/20230614113954.51812-2-tobias.deimin...@linutronix.de/ Tobias Deiminger (6): Kbuild: Fix cleanup

Re: [PATCH 1/1] Kbuild: Fix cleanup of generated sources in tools

2023-06-16 Thread Tobias Deiminger
Am Do, 15. Jun 23 10:14 schrieb Simon Glass : > If you like, it would be possible to create a test that all files are > removed, by doing a build and then looking for stray files. See for > example test_of_migrate. Good idea, thanks for the pointer. I'll add a test and include it in v2 of the

[PATCH 1/1] Kbuild: Fix cleanup of generated sources in tools

2023-06-14 Thread Tobias Deiminger
d or moved wrapper file. Fixes: 0649cd0d4908 ("Move environment files from common/ to env/") Fixes: 19a91f2464a8 ("Create a new boot/ directory") Signed-off-by: Tobias Deiminger --- tools/Makefile | 64 ++-- tools/env/.gitigno

[PATCH 0/1] Kbuild: Fix cleanup of generated sources in tools

2023-06-14 Thread Tobias Deiminger
CROSS_COMPILE=aarch64-linux-gnu- O=./build $ make CROSS_COMPILE=aarch64-linux-gnu- O=./build clean $ ls build/tools/boot/ build/tools/env/ build/tools/boot/: bootm.c fdt_region.c image.c image-cipher.c image-fit.c image-fit-sig.c image-host.c build/tools/env/: embedded.c Tobias Deiminger (1