diff mbox series

scripts: Makefile: also clean subdir dtc

Message ID 20220125103220.11439-1-philippe.reynes@softathome.com
State Accepted
Commit 96757b7be5111c4f51763e8fd406ddf9331eba57
Delegated to: Tom Rini
Headers show
Series scripts: Makefile: also clean subdir dtc | expand

Commit Message

Philippe REYNES Jan. 25, 2022, 10:32 a.m. UTC
Since commit 93b196532254 ("Makefile: Only build dtc if needed"),
the sub directory scripts/dtc is never cleaned.
Adds the directory dtc to subdir to always clean it.

Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
---
 scripts/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Simon Glass Jan. 26, 2022, 3:24 a.m. UTC | #1
On Tue, 25 Jan 2022 at 03:32, Philippe Reynes
<philippe.reynes@softathome.com> wrote:
>
> Since commit 93b196532254 ("Makefile: Only build dtc if needed"),
> the sub directory scripts/dtc is never cleaned.
> Adds the directory dtc to subdir to always clean it.
>
> Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
> ---
>  scripts/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>

I do wish we had a test for cleaning
Tom Rini Feb. 4, 2022, 12:40 a.m. UTC | #2
On Tue, Jan 25, 2022 at 11:32:20AM +0100, Philippe Reynes wrote:

> Since commit 93b196532254 ("Makefile: Only build dtc if needed"),
> the sub directory scripts/dtc is never cleaned.
> Adds the directory dtc to subdir to always clean it.
> 
> Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

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

Patch

diff --git a/scripts/Makefile b/scripts/Makefile
index cfe9fef804..8731e6cecd 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -9,4 +9,4 @@  hostprogs-$(CONFIG_BUILD_BIN2C)		+= bin2c
 always		:= $(hostprogs-y)
 
 # Let clean descend into subdirs
-subdir-	+= basic kconfig
+subdir-	+= basic kconfig dtc