diff mbox series

[1/1] Makefile: make clean should delete include/generated/env.in

Message ID 20220330101100.45774-1-heinrich.schuchardt@canonical.com
State Accepted
Commit 6a56fc0ab415423a0fb6f410d846d4b68806a238
Delegated to: Tom Rini
Headers show
Series [1/1] Makefile: make clean should delete include/generated/env.in | expand

Commit Message

Heinrich Schuchardt March 30, 2022, 10:11 a.m. UTC
'make sifive_unamtched_defconfig; make clean; make' fails if file
include/generated/env.in exists. 'make clean' should remove all files that
stop building.

Add file include/generated/env.in to the clean target.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Marek Behún March 30, 2022, 12:16 p.m. UTC | #1
On Wed, 30 Mar 2022 12:11:00 +0200
Heinrich Schuchardt <heinrich.schuchardt@canonical.com> wrote:

> 'make sifive_unamtched_defconfig; make clean; make' fails if file
> include/generated/env.in exists. 'make clean' should remove all files that
> stop building.
> 
> Add file include/generated/env.in to the clean target.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>

I also noticed this :)

Reviewed-by: Marek Behún <marek.behun@nic.cz>
Tom Rini March 31, 2022, 1:39 p.m. UTC | #2
On Wed, Mar 30, 2022 at 12:11:00PM +0200, Heinrich Schuchardt wrote:

> 'make sifive_unamtched_defconfig; make clean; make' fails if file
> include/generated/env.in exists. 'make clean' should remove all files that
> stop building.
> 
> Add file include/generated/env.in to the clean target.
> 
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
> Reviewed-by: Marek Behún <marek.behun@nic.cz>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 6998388884..c1d4702a4e 100644
--- a/Makefile
+++ b/Makefile
@@ -2187,8 +2187,8 @@  CLEAN_DIRS  += $(MODVERDIR) \
 			$(filter-out include, $(shell ls -1 $d 2>/dev/null))))
 
 CLEAN_FILES += include/bmp_logo.h include/bmp_logo_data.h \
-	       drivers/video/u_boot_logo.S tools/version.h \
-	       u-boot* MLO* SPL System.map fit-dtb.blob* \
+	       include/generated/env.in drivers/video/u_boot_logo.S \
+	       tools/version.h u-boot* MLO* SPL System.map fit-dtb.blob* \
 	       u-boot-ivt.img.log u-boot-dtb.imx.log SPL.log u-boot.imx.log \
 	       lpc32xx-* bl31.c bl31.elf bl31_*.bin image.map tispl.bin* \
 	       idbloader.img flash.bin flash.log defconfig keep-syms-lto.c \