Skip to content

Commit ad4b2b6

Browse files
David Daneyralfbaechle
authored andcommitted
MIPS: Repair Kbuild make clean breakage.
When running make clean, Kbuild doesn't process the .config file, so nothing generates a platform-y variable. We can get it to descend into the platform directories by setting $(obj-). The dec Platform file was unconditionally setting platform-, obliterating its previous contents and preventing some directories from being cleaned. This is change to an append operation '+=' to allow cavium-octeon to be cleaned. Signed-off-by: David Daney <ddaney@caviumnetworks.com> Cc: Sam Ravnborg <sam@ravnborg.org> Patchwork: https://patchwork.linux-mips.org/patch/1718/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
1 parent c6ea21e commit ad4b2b6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

arch/mips/Kbuild

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ subdir-ccflags-y := -Werror
77
include arch/mips/Kbuild.platforms
88
obj-y := $(platform-y)
99

10+
# make clean traverses $(obj-) without having included .config, so
11+
# everything ends up here
12+
obj- := $(platform-)
13+
1014
# mips object files
1115
# The object files are linked as core-y files would be linked
1216

arch/mips/dec/Platform

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# DECstation family
33
#
4-
platform-$(CONFIG_MACH_DECSTATION) = dec/
4+
platform-$(CONFIG_MACH_DECSTATION) += dec/
55
cflags-$(CONFIG_MACH_DECSTATION) += \
66
-I$(srctree)/arch/mips/include/asm/mach-dec
77
libs-$(CONFIG_MACH_DECSTATION) += arch/mips/dec/prom/

0 commit comments

Comments
 (0)