Patchwork [U-Boot,v7,01/29] Makefile: Move SPL files to clobber, remove from clean

mail settings
Submitter Tom Rini
Date Sept. 25, 2012, 12:30 a.m.
Message ID <>
Download mbox | patch
Permalink /patch/186641/
State Accepted
Delegated to: Tom Rini
Headers show


Tom Rini - Sept. 25, 2012, 12:30 a.m.
The 'clean' target has been removing all of spl but not u-boot itself.
For consistency and ease of testing, only remove SPL binaries / maps in
the clobber target, just like for full U-Boot

Signed-off-by: Tom Rini <>

 Makefile |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)


diff --git a/Makefile b/Makefile
index e3a27c6..5b7a850 100644
--- a/Makefile
+++ b/Makefile
@@ -786,10 +786,6 @@  clean:
 	@rm -f $(obj)lib/asm-offsets.s
 	@rm -f $(obj)include/generated/asm-offsets.h
 	@rm -f $(obj)$(CPUDIR)/$(SOC)/asm-offsets.s
-	@rm -f $(obj)nand_spl/{,,u-boot-spl,,}
-	@rm -f $(ONENAND_BIN)
-	@rm -f $(obj)spl/{u-boot-spl,u-boot-spl.bin,,}
-	@rm -f $(obj)MLO
 	@find $(OBJTREE) -type f \
 		\( -name 'core' -o -name '*.bak' -o -name '*~' -o -name '*.su' \
@@ -814,6 +810,9 @@  clobber:	tidy
 	@rm -f $(obj)u-boot.dtb
 	@rm -f $(obj)
 	@rm -f $(obj)u-boot.spr
+	@rm -f $(obj)nand_spl/{,,u-boot-spl,,}
+	@rm -f $(obj)spl/{u-boot-spl,u-boot-spl.bin,,}
+	@rm -f $(obj)MLO
 	@rm -f $(obj)tools/xway-swap-bytes
 	@rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
 	@rm -f $(obj)arch/powerpc/cpu/mpc83xx/ddr-gen?.c