linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: visit mach-* and plat-* directories when cleaning
@ 2019-04-08  7:54 Masahiro Yamada
  2019-04-08  7:54 ` [PATCH 2/3] ARM: at91: move platform-specific asm-offset.h to arch/arm/mach-at91 Masahiro Yamada
  2019-04-08  7:54 ` [PATCH 3/3] ARM: omap2: move platform-specific asm-offset.h to arch/arm/mach-omap2 Masahiro Yamada
  0 siblings, 2 replies; 14+ messages in thread
From: Masahiro Yamada @ 2019-04-08  7:54 UTC (permalink / raw)
  To: arm, Olof Johansson, Arnd Bergmann
  Cc: linux-arm-kernel, Masahiro Yamada, Russell King, linux-kernel

When you run "make clean" for arm, it never visits mach-* or plat-*
directories because machine-y and plat-y are just empty.

When cleaning, all machine, plat directories are accumulated to
machine-, plat-, respectively. So, let's pass them to core- to
clean up those directories.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 arch/arm/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 807a7d06c2a0..b6693a3ddcca 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -293,6 +293,10 @@ core-y				+= arch/arm/crypto/
 core-y				+= arch/arm/firmware/
 core-y				+= $(machdirs) $(platdirs)
 
+# For cleaning
+core-				+= $(patsubst %,arch/arm/mach-%/, $(machine-))
+core-				+= $(patsubst %,arch/arm/plat-%/, $(plat-))
+
 drivers-$(CONFIG_OPROFILE)      += arch/arm/oprofile/
 
 libs-y				:= arch/arm/lib/ $(libs-y)
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-04-23  4:40 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-08  7:54 [PATCH 1/3] ARM: visit mach-* and plat-* directories when cleaning Masahiro Yamada
2019-04-08  7:54 ` [PATCH 2/3] ARM: at91: move platform-specific asm-offset.h to arch/arm/mach-at91 Masahiro Yamada
2019-04-15 15:14   ` Alexandre Belloni
2019-04-19 11:39     ` Ludovic Desroches
2019-04-19 23:10       ` Masahiro Yamada
2019-04-23  4:29         ` Masahiro Yamada
2019-04-08  7:54 ` [PATCH 3/3] ARM: omap2: move platform-specific asm-offset.h to arch/arm/mach-omap2 Masahiro Yamada
2019-04-08 16:18   ` Tony Lindgren
2019-04-09  4:58     ` Keerthy
2019-04-09  5:07       ` Masahiro Yamada
2019-04-09  5:14         ` Keerthy
2019-04-09  7:05           ` Masahiro Yamada
2019-04-09 14:17             ` Tony Lindgren
2019-04-23  4:40               ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).