MIPS: Only include the platform file needed
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Wed, 6 May 2020 16:24:02 +0000 (18:24 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Tue, 12 May 2020 22:17:18 +0000 (00:17 +0200)
Instead of including all Platform files, we simply include the
needed one and avoid clashes with makefile variables.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
32 files changed:
arch/mips/Kbuild.platforms
arch/mips/alchemy/Platform
arch/mips/ar7/Platform
arch/mips/ath25/Platform
arch/mips/ath79/Platform
arch/mips/bcm47xx/Platform
arch/mips/bcm63xx/Platform
arch/mips/bmips/Platform
arch/mips/cavium-octeon/Platform
arch/mips/cobalt/Platform
arch/mips/dec/Platform
arch/mips/generic/Platform
arch/mips/jazz/Platform
arch/mips/jz4740/Platform
arch/mips/lantiq/Platform
arch/mips/loongson2ef/Platform
arch/mips/loongson32/Platform
arch/mips/loongson64/Platform
arch/mips/mti-malta/Platform
arch/mips/netlogic/Platform
arch/mips/paravirt/Platform
arch/mips/pic32/Platform
arch/mips/pistachio/Platform
arch/mips/pnx833x/Platform
arch/mips/rb532/Platform
arch/mips/sgi-ip22/Platform
arch/mips/sgi-ip27/Platform
arch/mips/sgi-ip30/Platform
arch/mips/sgi-ip32/Platform
arch/mips/sibyte/Platform
arch/mips/sni/Platform
arch/mips/txx9/Platform

index 292b59afb4ba59c9040af07a1fc4e07a16d71e55..5e3f6ed96292525d9bcec1298e2f742f14f4ebee 100644 (file)
@@ -1,39 +1,44 @@
 # SPDX-License-Identifier: GPL-2.0
 # All platforms listed in alphabetic order
 
-platforms += alchemy
-platforms += ar7
-platforms += ath25
-platforms += ath79
-platforms += bcm47xx
-platforms += bcm63xx
-platforms += bmips
-platforms += cavium-octeon
-platforms += cobalt
-platforms += dec
-platforms += generic
-platforms += jazz
-platforms += jz4740
-platforms += lantiq
-platforms += loongson2ef
-platforms += loongson32
-platforms += loongson64
-platforms += mti-malta
-platforms += netlogic
-platforms += paravirt
-platforms += pic32
-platforms += pistachio
-platforms += pnx833x
-platforms += ralink
-platforms += rb532
-platforms += sgi-ip22
-platforms += sgi-ip27
-platforms += sgi-ip30
-platforms += sgi-ip32
-platforms += sibyte
-platforms += sni
-platforms += txx9
-platforms += vr41xx
+platform-$(CONFIG_MIPS_ALCHEMY)                += alchemy/
+platform-$(CONFIG_AR7)                 += ar7/
+platform-$(CONFIG_ATH25)               += ath25/
+platform-$(CONFIG_ATH79)               += ath79/
+platform-$(CONFIG_BCM47XX)             += bcm47xx/
+platform-$(CONFIG_BCM63XX)             += bcm63xx/
+platform-$(CONFIG_BMIPS_GENERIC)       += bmips/
+platform-$(CONFIG_CAVIUM_OCTEON_SOC)   += cavium-octeon/
+platform-$(CONFIG_MIPS_COBALT)         += cobalt/
+platform-$(CONFIG_MACH_DECSTATION)     += dec/
+platform-$(CONFIG_MIPS_GENERIC)                += generic/
+platform-$(CONFIG_MACH_JAZZ)           += jazz/
+platform-$(CONFIG_MACH_INGENIC)                += jz4740/
+platform-$(CONFIG_LANTIQ)              += lantiq/
+platform-$(CONFIG_MACH_LOONGSON2EF)    += loongson2ef/
+platform-$(CONFIG_MACH_LOONGSON32)     += loongson32/
+platform-$(CONFIG_MACH_LOONGSON64)     += loongson64/
+platform-$(CONFIG_MIPS_MALTA)          += mti-malta/
+platform-$(CONFIG_NLM_COMMON)          += netlogic/
+platform-$(CONFIG_MIPS_PARAVIRT)       += paravirt/
+platform-$(CONFIG_PIC32MZDA)           += pic32/
+platform-$(CONFIG_MACH_PISTACHIO)      += pistachio/
+platform-$(CONFIG_SOC_PNX833X)         += pnx833x/
+platform-$(CONFIG_RALINK)              += ralink/
+platform-$(CONFIG_MIKROTIK_RB532)      += rb532/
+platform-$(CONFIG_SGI_IP22)            += sgi-ip22/
+platform-$(CONFIG_SGI_IP27)            += sgi-ip27/
+platform-$(CONFIG_SGI_IP28)            += sgi-ip22/
+platform-$(CONFIG_SGI_IP30)            += sgi-ip30/
+platform-$(CONFIG_SGI_IP32)            += sgi-ip32/
+platform-$(CONFIG_SIBYTE_BCM112X)      += sibyte/
+platform-$(CONFIG_SIBYTE_SB1250)       += sibyte/
+platform-$(CONFIG_SIBYTE_BCM1x55)      += sibyte/
+platform-$(CONFIG_SIBYTE_BCM1x80)      += sibyte/
+platform-$(CONFIG_SNI_RM)              += sni/
+platform-$(CONFIG_MACH_TX39XX)         += tx99/
+platform-$(CONFIG_MACH_TX49XX)         += tx99/
+platform-$(CONFIG_MACH_VR41XX)         += vr41xx/
 
 # include the platform specific files
-include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platforms))
+include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platform-y))
index 33c9da3b077ba70d5abf3945d949835e0b9373bf..c8cff50b0eda334a26f5cf6b1a805ed25ac298c4 100644 (file)
@@ -15,19 +15,16 @@ load-$(CONFIG_MIPS_DB1XXX)  += 0xffffffff80100000
 #
 # 4G-Systems MTX-1 "MeshCube" wireless router
 #
-platform-$(CONFIG_MIPS_MTX1)   += alchemy/
 load-$(CONFIG_MIPS_MTX1)       += 0xffffffff80100000
 
 #
 # MyCable eval board
 #
-platform-$(CONFIG_MIPS_XXS1500) += alchemy/
 load-$(CONFIG_MIPS_XXS1500)    += 0xffffffff80100000
 
 #
 # Trapeze ITS GRP board
 #
-platform-$(CONFIG_MIPS_GPR)    += alchemy/
 load-$(CONFIG_MIPS_GPR)                += 0xffffffff80100000
 
 # boards can specify their own <gpio.h> in one of their include dirs.
index 21f9102d533cab05bf81616aee575a6fb217f3fb..a9257cc01c3cbb5e6fb2f3f368ff8d67e81e996e 100644 (file)
@@ -1,6 +1,5 @@
 #
 # Texas Instruments AR7
 #
-platform-$(CONFIG_AR7)         += ar7/
 cflags-$(CONFIG_AR7)           += -I$(srctree)/arch/mips/include/asm/mach-ar7
 load-$(CONFIG_AR7)             += 0xffffffff94100000
index ef3f81fa080b31e6b5980b0b495c0c0aa0fc629e..aef098b6f405e4aa923f0373054e69fe137c598e 100644 (file)
@@ -1,6 +1,5 @@
 #
 # Atheros AR531X/AR231X WiSoC
 #
-platform-$(CONFIG_ATH25)       += ath25/
 cflags-$(CONFIG_ATH25)         += -I$(srctree)/arch/mips/include/asm/mach-ath25
 load-$(CONFIG_ATH25)           += 0xffffffff80041000
index 2bd663647d272e017cefcd06b300eb6e1478730c..57744472ed2eeb14de271848401e178e041a31ba 100644 (file)
@@ -2,6 +2,5 @@
 # Atheros AR71xx/AR724x/AR913x
 #
 
-platform-$(CONFIG_ATH79)       += ath79/
 cflags-$(CONFIG_ATH79)         += -I$(srctree)/arch/mips/include/asm/mach-ath79
 load-$(CONFIG_ATH79)           = 0xffffffff80060000
index 70783b75fd9df8553fe1d97e648ccd0cd566fd4f..833b204fe5dace78b7f7b5ff882ffcd2b32b5dc3 100644 (file)
@@ -1,7 +1,6 @@
 #
 # Broadcom BCM47XX boards
 #
-platform-$(CONFIG_BCM47XX)     += bcm47xx/
 cflags-$(CONFIG_BCM47XX)       +=                                      \
                -I$(srctree)/arch/mips/include/asm/mach-bcm47xx
 load-$(CONFIG_BCM47XX)         := 0xffffffff80001000
index 5f86b2fff6def6e046cd20728477d60dced4bc1b..882dc40f49a2459c22d8debacc903956b7c72480 100644 (file)
@@ -1,7 +1,6 @@
 #
 # Broadcom BCM63XX boards
 #
-platform-$(CONFIG_BCM63XX)     += bcm63xx/
 cflags-$(CONFIG_BCM63XX)       +=                                      \
                -I$(srctree)/arch/mips/include/asm/mach-bcm63xx/
 load-$(CONFIG_BCM63XX)         := 0xffffffff80010000
index 5f127fd7f4b55127a0fba9d16a783c32c4112aed..1434ea31ce85de2afbd986dea122548075cf0f0f 100644 (file)
@@ -1,7 +1,6 @@
 #
 # Broadcom Generic BMIPS kernel
 #
-platform-$(CONFIG_BMIPS_GENERIC)       += bmips/
 cflags-$(CONFIG_BMIPS_GENERIC)         +=                              \
                -I$(srctree)/arch/mips/include/asm/mach-bmips/
 load-$(CONFIG_BMIPS_GENERIC)           := 0xffffffff80010000
index 45be853700e6a8b1e929ed523dbd54c5610d7360..4adef38dea9dfc450430c071333492ed7ee9db02 100644 (file)
@@ -1,7 +1,6 @@
 #
 # Cavium Octeon
 #
-platform-$(CONFIG_CAVIUM_OCTEON_SOC)   += cavium-octeon/
 cflags-$(CONFIG_CAVIUM_OCTEON_SOC)     +=                              \
                -I$(srctree)/arch/mips/include/asm/mach-cavium-octeon
 load-$(CONFIG_CAVIUM_OCTEON_SOC)       += 0xffffffff81100000
index 34123efd6dfeb6bd6af588632228d0fbb88b3840..4254895ad6f482df403040c1d9810b41427364cd 100644 (file)
@@ -1,6 +1,5 @@
 #
 # Cobalt Server
 #
-platform-$(CONFIG_MIPS_COBALT) += cobalt/
 cflags-$(CONFIG_MIPS_COBALT)   += -I$(srctree)/arch/mips/include/asm/mach-cobalt
 load-$(CONFIG_MIPS_COBALT)     += 0xffffffff80080000
index cf55a6f4e720c4e831733ceab40d820fa136a2c8..c82391e832f9375151315e63b9ce21c3fab4d9bd 100644 (file)
@@ -1,7 +1,6 @@
 #
 # DECstation family
 #
-platform-$(CONFIG_MACH_DECSTATION)     += dec/
 cflags-$(CONFIG_MACH_DECSTATION)       += \
                        -I$(srctree)/arch/mips/include/asm/mach-dec
 libs-$(CONFIG_MACH_DECSTATION)         += arch/mips/dec/prom/
index eaa19d1893243c52539b03bc2486ecc13331c482..53c33cb72974760110fc959b04c85d63b170c481 100644 (file)
@@ -8,7 +8,6 @@
 # option) any later version.
 #
 
-platform-$(CONFIG_MIPS_GENERIC)        += generic/
 cflags-$(CONFIG_MIPS_GENERIC)  += -I$(srctree)/arch/mips/include/asm/mach-generic
 load-$(CONFIG_MIPS_GENERIC)    += 0xffffffff80100000
 all-$(CONFIG_MIPS_GENERIC)     := vmlinux.gz.itb
index 3373788acca12e0b7af34a5f04ce5ed7024a3f94..eb0490ae8b09fd9175a7a24cf336b6d7b954861e 100644 (file)
@@ -1,6 +1,5 @@
 #
 # Acer PICA 61, Mips Magnum 4000 and Olivetti M700.
 #
-platform-$(CONFIG_MACH_JAZZ)   += jazz/
 cflags-$(CONFIG_MACH_JAZZ)     += -I$(srctree)/arch/mips/include/asm/mach-jazz
 load-$(CONFIG_MACH_JAZZ)       += 0xffffffff80080000
index a2a5a85ea1f9360d3ff90e7e0419c423b6a0fbdf..bd35d0621b13d0b5cc429cc29026f050259da6d0 100644 (file)
@@ -1,4 +1,3 @@
-platform-$(CONFIG_MACH_INGENIC)        += jz4740/
 cflags-$(CONFIG_MACH_INGENIC)  += -I$(srctree)/arch/mips/include/asm/mach-jz4740
 load-$(CONFIG_MACH_INGENIC)    += 0xffffffff80010000
 zload-$(CONFIG_MACH_INGENIC)   += 0xffffffff81000000
index b3ec49838fd7526f716c393cff823217b41fe099..0bc9c0fbd43166e8e023a67e927cca412347bf5c 100644 (file)
@@ -2,7 +2,6 @@
 # Lantiq
 #
 
-platform-$(CONFIG_LANTIQ)      += lantiq/
 cflags-$(CONFIG_LANTIQ)                += -I$(srctree)/arch/mips/include/asm/mach-lantiq
 load-$(CONFIG_LANTIQ)          = 0xffffffff80002000
 cflags-$(CONFIG_SOC_TYPE_XWAY) += -I$(srctree)/arch/mips/include/asm/mach-lantiq/xway
index 3aca42963f351f6a3acbd7ef55a556a54f287f72..cdad3c1a9a18fea3875868d36890898520a9eaa6 100644 (file)
@@ -26,7 +26,6 @@ endif
 # Loongson Machines' Support
 #
 
-platform-$(CONFIG_MACH_LOONGSON2EF) += loongson2ef/
 cflags-$(CONFIG_MACH_LOONGSON2EF) += -I$(srctree)/arch/mips/include/asm/mach-loongson2ef -mno-branch-likely
 load-$(CONFIG_LEMOTE_FULOONG2E) += 0xffffffff80100000
 load-$(CONFIG_LEMOTE_MACH2F) += 0xffffffff80200000
index 7f8e342f1ef5a6bceaee30030beff188775d26b9..3b9673e7a2fa41001e4307fed9676d462b998a11 100644 (file)
@@ -1,4 +1,3 @@
 cflags-$(CONFIG_CPU_LOONGSON32)                += -march=mips32r2 -Wa,--trap
-platform-$(CONFIG_MACH_LOONGSON32)     += loongson32/
 cflags-$(CONFIG_MACH_LOONGSON32)       += -I$(srctree)/arch/mips/include/asm/mach-loongson32
 load-$(CONFIG_CPU_LOONGSON32)          += 0xffffffff80200000
index d5eb94c9edb44e148d25248fd440bb3a31cb845e..ec42c5085905c208c148df2a171f31b672b59427 100644 (file)
@@ -55,6 +55,5 @@ cflags-y += $(call cc-option,-mno-loongson-mmi)
 # Loongson Machines' Support
 #
 
-platform-$(CONFIG_MACH_LOONGSON64) += loongson64/
 cflags-$(CONFIG_MACH_LOONGSON64) += -I$(srctree)/arch/mips/include/asm/mach-loongson64 -mno-branch-likely
 load-$(CONFIG_CPU_LOONGSON64) += 0xffffffff80200000
index 2cc72c9b38e3ba508a1d9b6596da4403f67e6539..41e0d2a2d325254608f31a4714cffbf86193e4d2 100644 (file)
@@ -1,7 +1,6 @@
 #
 # MIPS Malta board
 #
-platform-$(CONFIG_MIPS_MALTA)  += mti-malta/
 cflags-$(CONFIG_MIPS_MALTA)    += -I$(srctree)/arch/mips/include/asm/mach-malta
 ifdef CONFIG_KVM_GUEST
     load-$(CONFIG_MIPS_MALTA)  += 0x0000000040100000
index fb8eb4c0c6ec869110bf1375b5ccbc461e3bed67..4195a097f5f27d010893ade58830f8162a2b764c 100644 (file)
@@ -13,5 +13,4 @@ cflags-$(CONFIG_CPU_XLP)      += $(call cc-option,-march=xlp,-march=mips64r2)
 #
 # NETLOGIC processor support
 #
-platform-$(CONFIG_NLM_COMMON)  += netlogic/
 load-$(CONFIG_NLM_COMMON)      += 0xffffffff80100000
index 7e76ef25ea17bcb15ebdb4a6c962e67087fd46da..0b857580dfdda9fe551abd270fc92c4794120700 100644 (file)
@@ -1,7 +1,6 @@
 #
 # Generic para-virtualized guest.
 #
-platform-$(CONFIG_MIPS_PARAVIRT)       += paravirt/
 cflags-$(CONFIG_MIPS_PARAVIRT)         +=                              \
                -I$(srctree)/arch/mips/include/asm/mach-paravirt
 
index cd2084f4450744ed9d4b406dba94bfd060615ab9..1e92e52a137bd114f5b3cbcf3a08eab1389a7a7c 100644 (file)
@@ -1,7 +1,6 @@
 #
 # PIC32MZDA
 #
-platform-$(CONFIG_PIC32MZDA)   += pic32/
 cflags-$(CONFIG_PIC32MZDA)     += -I$(srctree)/arch/mips/include/asm/mach-pic32
 load-$(CONFIG_PIC32MZDA)       += 0xffffffff88000000
 all-$(CONFIG_PIC32MZDA)                := $(COMPRESSION_FNAME).bin
index c3592b374ad23592d318851d32f64222b8561de4..f73a1a929965c3127dfd7ac77f9e3d13a05d2cf8 100644 (file)
@@ -1,7 +1,6 @@
 #
 # IMG Pistachio SoC
 #
-platform-$(CONFIG_MACH_PISTACHIO)      += pistachio/
 cflags-$(CONFIG_MACH_PISTACHIO)                +=                              \
                -I$(srctree)/arch/mips/include/asm/mach-pistachio
 load-$(CONFIG_MACH_PISTACHIO)          += 0xffffffff80400000
index 2872606695512b03507b4fde25e2b4c15a02a9c6..e5286a49fc3e802779e7d21183b7e85d4d63d3e6 100644 (file)
@@ -1,5 +1,4 @@
 # NXP STB225
-platform-$(CONFIG_SOC_PNX833X) += pnx833x/
 cflags-$(CONFIG_SOC_PNX833X)   += -I$(srctree)/arch/mips/include/asm/mach-pnx833x
 load-$(CONFIG_NXP_STB220)      += 0xffffffff80001000
 load-$(CONFIG_NXP_STB225)      += 0xffffffff80001000
index aeec45a7cbb3546a55d8f93fa2d36e0bb8dc4032..12eaa8790b3ebcc2a0cf1271de25dad913f0a234 100644 (file)
@@ -1,7 +1,6 @@
 #
 # Routerboard 532
 #
-platform-$(CONFIG_MIKROTIK_RB532)      += rb532/
 cflags-$(CONFIG_MIKROTIK_RB532)                +=                              \
                -I$(srctree)/arch/mips/include/asm/mach-rc32434
 load-$(CONFIG_MIKROTIK_RB532)          += 0xffffffff80101000
index e8f6b3a42a4833a9c2c5cd1cb0c9c462cba37ed2..62fa30bb959e49a01c618341bcdabbd98705f4a7 100644 (file)
@@ -7,7 +7,6 @@
 # current variable will break so for 64-bit kernels we have to raise the start
 # address by 8kb.
 #
-platform-$(CONFIG_SGI_IP22)            += sgi-ip22/
 cflags-$(CONFIG_SGI_IP22)      += -I$(srctree)/arch/mips/include/asm/mach-ip22
 ifdef CONFIG_32BIT
 load-$(CONFIG_SGI_IP22)                += 0xffffffff88002000
@@ -29,6 +28,5 @@ ifdef CONFIG_SGI_IP28
       $(error gcc doesn't support needed option -mr10k-cache-barrier=store)
   endif
 endif
-platform-$(CONFIG_SGI_IP28)            += sgi-ip22/
 cflags-$(CONFIG_SGI_IP28)      += -mr10k-cache-barrier=store -I$(srctree)/arch/mips/include/asm/mach-ip28
 load-$(CONFIG_SGI_IP28)                += 0xa800000020004000
index 1fb9c2ea7c8fe6c805ca7b0a2d582834fb5d6f14..e734ee6abd44b37ab037fbaacf718fa1c11f3892 100644 (file)
@@ -5,8 +5,6 @@
 # symmon, 0xc00000000001c000 for production kernels.  Note that the value must
 # be 16kb aligned or the handling of the current variable will break.
 #
-ifdef CONFIG_SGI_IP27
-platform-$(CONFIG_SGI_IP27)    += sgi-ip27/
 cflags-$(CONFIG_SGI_IP27)      += -I$(srctree)/arch/mips/include/asm/mach-ip27
 ifdef CONFIG_MAPPED_KERNEL
 load-$(CONFIG_SGI_IP27)                += 0xc00000004001c000
@@ -16,4 +14,3 @@ else
 load-$(CONFIG_SGI_IP27)                += 0xa80000000001c000
 OBJCOPYFLAGS                   := --change-addresses=0x57ffffff80000000
 endif
-endif
index 2b5695c2049ab729bd5537091ec40a43f72d219c..f6f11517e091297437a9217f47cf9b6edc1d3a32 100644 (file)
@@ -1,8 +1,5 @@
 #
 # SGI-IP30 (Octane/Octane2)
 #
-ifdef CONFIG_SGI_IP30
-platform-$(CONFIG_SGI_IP30)            += sgi-ip30/
 cflags-$(CONFIG_SGI_IP30)              += -I$(srctree)/arch/mips/include/asm/mach-ip30
 load-$(CONFIG_SGI_IP30)                        += 0xa800000020004000
-endif
index 0fea556f3641c64fb7e6b5b6f0bfdce25e87725c..f58a7a02b4caacaf320979d0e80ed7eaf821fac8 100644 (file)
@@ -6,6 +6,5 @@
 # a multiple of the kernel stack size or the handling of the current variable
 # will break.
 #
-platform-$(CONFIG_SGI_IP32)    += sgi-ip32/
 cflags-$(CONFIG_SGI_IP32)      += -I$(srctree)/arch/mips/include/asm/mach-ip32
 load-$(CONFIG_SGI_IP32)                += 0xffffffff80004000
index af117330ce1423084fa179af6f1343f95b33a0e4..65b2225b76b28a6dd6e4c44812e3758198ed6c64 100644 (file)
@@ -1,10 +1,6 @@
 #
 # These are all rather similar so we consider them a single platform
 #
-platform-$(CONFIG_SIBYTE_BCM112X)      += sibyte/
-platform-$(CONFIG_SIBYTE_SB1250)       += sibyte/
-platform-$(CONFIG_SIBYTE_BCM1x55)      += sibyte/
-platform-$(CONFIG_SIBYTE_BCM1x80)      += sibyte/
 
 #
 # Sibyte SB1250 / BCM1480 family of SOCs
index 2644a9d63c0f4a4027d4b71abaad5ee63c1a0f27..b0b3dde0bef85278c7403d48baf058fc0a6a7e76 100644 (file)
@@ -1,7 +1,6 @@
 #
 # SNI RM
 #
-platform-$(CONFIG_SNI_RM)              += sni/
 cflags-$(CONFIG_SNI_RM)                += -I$(srctree)/arch/mips/include/asm/mach-rm
 ifdef CONFIG_CPU_LITTLE_ENDIAN
 load-$(CONFIG_SNI_RM)          += 0xffffffff80600000
index a176d1fd579917dae91f030c4bad87871b57929e..7f4429ba22eb15f5d8e4a6c36ac5fc214b77428b 100644 (file)
@@ -1,6 +1,3 @@
-platform-$(CONFIG_MACH_TX39XX) += txx9/
-platform-$(CONFIG_MACH_TX49XX) += txx9/
-
 cflags-$(CONFIG_MACH_TX39XX)   +=                                      \
                -I$(srctree)/arch/mips/include/asm/mach-tx39xx
 cflags-$(CONFIG_MACH_TX49XX)   +=                                      \