Skip to content

Commit 26bff9e

Browse files
committed
MIPS: Only include the platform file needed
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>
1 parent 22235ef commit 26bff9e

32 files changed

Lines changed: 39 additions & 77 deletions

File tree

‎arch/mips/Kbuild.platforms‎

Lines changed: 39 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,44 @@
11
# SPDX-License-Identifier: GPL-2.0
22
# All platforms listed in alphabetic order
33

4-
platforms += alchemy
5-
platforms += ar7
6-
platforms += ath25
7-
platforms += ath79
8-
platforms += bcm47xx
9-
platforms += bcm63xx
10-
platforms += bmips
11-
platforms += cavium-octeon
12-
platforms += cobalt
13-
platforms += dec
14-
platforms += generic
15-
platforms += jazz
16-
platforms += jz4740
17-
platforms += lantiq
18-
platforms += loongson2ef
19-
platforms += loongson32
20-
platforms += loongson64
21-
platforms += mti-malta
22-
platforms += netlogic
23-
platforms += paravirt
24-
platforms += pic32
25-
platforms += pistachio
26-
platforms += pnx833x
27-
platforms += ralink
28-
platforms += rb532
29-
platforms += sgi-ip22
30-
platforms += sgi-ip27
31-
platforms += sgi-ip30
32-
platforms += sgi-ip32
33-
platforms += sibyte
34-
platforms += sni
35-
platforms += txx9
36-
platforms += vr41xx
4+
platform-$(CONFIG_MIPS_ALCHEMY) += alchemy/
5+
platform-$(CONFIG_AR7) += ar7/
6+
platform-$(CONFIG_ATH25) += ath25/
7+
platform-$(CONFIG_ATH79) += ath79/
8+
platform-$(CONFIG_BCM47XX) += bcm47xx/
9+
platform-$(CONFIG_BCM63XX) += bcm63xx/
10+
platform-$(CONFIG_BMIPS_GENERIC) += bmips/
11+
platform-$(CONFIG_CAVIUM_OCTEON_SOC) += cavium-octeon/
12+
platform-$(CONFIG_MIPS_COBALT) += cobalt/
13+
platform-$(CONFIG_MACH_DECSTATION) += dec/
14+
platform-$(CONFIG_MIPS_GENERIC) += generic/
15+
platform-$(CONFIG_MACH_JAZZ) += jazz/
16+
platform-$(CONFIG_MACH_INGENIC) += jz4740/
17+
platform-$(CONFIG_LANTIQ) += lantiq/
18+
platform-$(CONFIG_MACH_LOONGSON2EF) += loongson2ef/
19+
platform-$(CONFIG_MACH_LOONGSON32) += loongson32/
20+
platform-$(CONFIG_MACH_LOONGSON64) += loongson64/
21+
platform-$(CONFIG_MIPS_MALTA) += mti-malta/
22+
platform-$(CONFIG_NLM_COMMON) += netlogic/
23+
platform-$(CONFIG_MIPS_PARAVIRT) += paravirt/
24+
platform-$(CONFIG_PIC32MZDA) += pic32/
25+
platform-$(CONFIG_MACH_PISTACHIO) += pistachio/
26+
platform-$(CONFIG_SOC_PNX833X) += pnx833x/
27+
platform-$(CONFIG_RALINK) += ralink/
28+
platform-$(CONFIG_MIKROTIK_RB532) += rb532/
29+
platform-$(CONFIG_SGI_IP22) += sgi-ip22/
30+
platform-$(CONFIG_SGI_IP27) += sgi-ip27/
31+
platform-$(CONFIG_SGI_IP28) += sgi-ip22/
32+
platform-$(CONFIG_SGI_IP30) += sgi-ip30/
33+
platform-$(CONFIG_SGI_IP32) += sgi-ip32/
34+
platform-$(CONFIG_SIBYTE_BCM112X) += sibyte/
35+
platform-$(CONFIG_SIBYTE_SB1250) += sibyte/
36+
platform-$(CONFIG_SIBYTE_BCM1x55) += sibyte/
37+
platform-$(CONFIG_SIBYTE_BCM1x80) += sibyte/
38+
platform-$(CONFIG_SNI_RM) += sni/
39+
platform-$(CONFIG_MACH_TX39XX) += tx99/
40+
platform-$(CONFIG_MACH_TX49XX) += tx99/
41+
platform-$(CONFIG_MACH_VR41XX) += vr41xx/
3742

3843
# include the platform specific files
39-
include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platforms))
44+
include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platform-y))

‎arch/mips/alchemy/Platform‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,16 @@ load-$(CONFIG_MIPS_DB1XXX) += 0xffffffff80100000
1515
#
1616
# 4G-Systems MTX-1 "MeshCube" wireless router
1717
#
18-
platform-$(CONFIG_MIPS_MTX1) += alchemy/
1918
load-$(CONFIG_MIPS_MTX1) += 0xffffffff80100000
2019

2120
#
2221
# MyCable eval board
2322
#
24-
platform-$(CONFIG_MIPS_XXS1500) += alchemy/
2523
load-$(CONFIG_MIPS_XXS1500) += 0xffffffff80100000
2624

2725
#
2826
# Trapeze ITS GRP board
2927
#
30-
platform-$(CONFIG_MIPS_GPR) += alchemy/
3128
load-$(CONFIG_MIPS_GPR) += 0xffffffff80100000
3229

3330
# boards can specify their own <gpio.h> in one of their include dirs.

‎arch/mips/ar7/Platform‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#
22
# Texas Instruments AR7
33
#
4-
platform-$(CONFIG_AR7) += ar7/
54
cflags-$(CONFIG_AR7) += -I$(srctree)/arch/mips/include/asm/mach-ar7
65
load-$(CONFIG_AR7) += 0xffffffff94100000

‎arch/mips/ath25/Platform‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#
22
# Atheros AR531X/AR231X WiSoC
33
#
4-
platform-$(CONFIG_ATH25) += ath25/
54
cflags-$(CONFIG_ATH25) += -I$(srctree)/arch/mips/include/asm/mach-ath25
65
load-$(CONFIG_ATH25) += 0xffffffff80041000

‎arch/mips/ath79/Platform‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22
# Atheros AR71xx/AR724x/AR913x
33
#
44

5-
platform-$(CONFIG_ATH79) += ath79/
65
cflags-$(CONFIG_ATH79) += -I$(srctree)/arch/mips/include/asm/mach-ath79
76
load-$(CONFIG_ATH79) = 0xffffffff80060000

‎arch/mips/bcm47xx/Platform‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#
22
# Broadcom BCM47XX boards
33
#
4-
platform-$(CONFIG_BCM47XX) += bcm47xx/
54
cflags-$(CONFIG_BCM47XX) += \
65
-I$(srctree)/arch/mips/include/asm/mach-bcm47xx
76
load-$(CONFIG_BCM47XX) := 0xffffffff80001000

‎arch/mips/bcm63xx/Platform‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#
22
# Broadcom BCM63XX boards
33
#
4-
platform-$(CONFIG_BCM63XX) += bcm63xx/
54
cflags-$(CONFIG_BCM63XX) += \
65
-I$(srctree)/arch/mips/include/asm/mach-bcm63xx/
76
load-$(CONFIG_BCM63XX) := 0xffffffff80010000

‎arch/mips/bmips/Platform‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#
22
# Broadcom Generic BMIPS kernel
33
#
4-
platform-$(CONFIG_BMIPS_GENERIC) += bmips/
54
cflags-$(CONFIG_BMIPS_GENERIC) += \
65
-I$(srctree)/arch/mips/include/asm/mach-bmips/
76
load-$(CONFIG_BMIPS_GENERIC) := 0xffffffff80010000

‎arch/mips/cavium-octeon/Platform‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#
22
# Cavium Octeon
33
#
4-
platform-$(CONFIG_CAVIUM_OCTEON_SOC) += cavium-octeon/
54
cflags-$(CONFIG_CAVIUM_OCTEON_SOC) += \
65
-I$(srctree)/arch/mips/include/asm/mach-cavium-octeon
76
load-$(CONFIG_CAVIUM_OCTEON_SOC) += 0xffffffff81100000

‎arch/mips/cobalt/Platform‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#
22
# Cobalt Server
33
#
4-
platform-$(CONFIG_MIPS_COBALT) += cobalt/
54
cflags-$(CONFIG_MIPS_COBALT) += -I$(srctree)/arch/mips/include/asm/mach-cobalt
65
load-$(CONFIG_MIPS_COBALT) += 0xffffffff80080000

0 commit comments

Comments
 (0)