Generated C files in tools/env/ and tools/boot/ are currently not
cleaned on 'make clean'. The patch fixes it by establishing a dedicated
tools/generated/ directory that can be cleaned as a whole.

Steps to reproduce:
$ make CROSS_COMPILE=aarch64-linux-gnu- O=./build qemu_arm64_defconfig
$ make 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):
  Kbuild: Fix cleanup of generated sources in tools

 tools/Makefile       | 64 ++++++++++++++++++++++----------------------
 tools/env/.gitignore |  1 -
 2 files changed, 32 insertions(+), 33 deletions(-)


base-commit: 19b77d3d23966a0d6dbb3c86187765f11100fb6f
-- 
2.30.2

Reply via email to