summaryrefslogtreecommitdiffstats
path: root/arch/mips/Kbuild
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-10-18 17:51:26 -0700
committerRalf Baechle <ralf@linux-mips.org>2010-10-19 18:32:39 +0100
commitad4b2b627c8ac479e842bf586108c7a7fd63264b (patch)
tree063c9b7e588850d003dc753a625d396516478106 /arch/mips/Kbuild
parentc6ea21e35bf3691cad59647c771e6606067f627d (diff)
downloadop-kernel-dev-ad4b2b627c8ac479e842bf586108c7a7fd63264b.zip
op-kernel-dev-ad4b2b627c8ac479e842bf586108c7a7fd63264b.tar.gz
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>
Diffstat (limited to 'arch/mips/Kbuild')
-rw-r--r--arch/mips/Kbuild4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/mips/Kbuild b/arch/mips/Kbuild
index e322d65..7dd65cf 100644
--- a/arch/mips/Kbuild
+++ b/arch/mips/Kbuild
@@ -7,6 +7,10 @@ subdir-ccflags-y := -Werror
include arch/mips/Kbuild.platforms
obj-y := $(platform-y)
+# make clean traverses $(obj-) without having included .config, so
+# everything ends up here
+obj- := $(platform-)
+
# mips object files
# The object files are linked as core-y files would be linked
OpenPOWER on IntegriCloud