Skip to contentSkip to conversation

scripts: Makefile: also clean subdir dtc

PATCH In review Philippe Reynes 3 participants 3 messages Jan 25, 2022 – Feb 4, 2022 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts: Makefile: also clean subdir dtc

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.

---
 scripts/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/Makefile +1 -1
index cfe9fef804..8731e6cecd 100644
@@ -9,4 +9,4 @@ hostprogs-$(CONFIG_BUILD_BIN2C)		+= bin2c
 always		:= $(hostprogs-y)
 
 # Let clean descend into subdirs
-subdir-	+= basic kconfig
+subdir-	+= basic kconfig dtc
Signature · 1 line
2.17.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 9 lines · Philippe Reynes

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.

---
 scripts/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I do wish we had a test for cleaning