summaryrefslogtreecommitdiffstats
path: root/arch/arm/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-18 18:35:23 +0200
committerRussell King <rmk+kernel@armlinux.org.uk>2019-08-23 12:39:31 +0200
commit2a58e142a67411f51830028f7f07c69e619dec5e (patch)
tree2194138ada448ec732cf512bac72cf186692aa01 /arch/arm/Makefile
parentARM: 8894/1: boot: Replace open-coded nop with macro (diff)
downloadlinux-2a58e142a67411f51830028f7f07c69e619dec5e.tar.xz
linux-2a58e142a67411f51830028f7f07c69e619dec5e.zip
ARM: 8895/1: visit mach-* and plat-* directories when cleaning
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> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Diffstat (limited to 'arch/arm/Makefile')
-rw-r--r--arch/arm/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index 505167936c06..288fa2a6dbea 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -285,6 +285,10 @@ core-y += arch/arm/net/
core-y += arch/arm/crypto/
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)