Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+39 -77
+39 -34
arch/mips/Kbuild.platforms
··· 1 1 # SPDX-License-Identifier: GPL-2.0 2 2 # All platforms listed in alphabetic order 3 3 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/ 37 42 38 43 # include the platform specific files 39 - include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platforms)) 44 + include $(patsubst %, $(srctree)/arch/mips/%/Platform, $(platform-y))
-3
arch/mips/alchemy/Platform
··· 15 15 # 16 16 # 4G-Systems MTX-1 "MeshCube" wireless router 17 17 # 18 - platform-$(CONFIG_MIPS_MTX1) += alchemy/ 19 18 load-$(CONFIG_MIPS_MTX1) += 0xffffffff80100000 20 19 21 20 # 22 21 # MyCable eval board 23 22 # 24 - platform-$(CONFIG_MIPS_XXS1500) += alchemy/ 25 23 load-$(CONFIG_MIPS_XXS1500) += 0xffffffff80100000 26 24 27 25 # 28 26 # Trapeze ITS GRP board 29 27 # 30 - platform-$(CONFIG_MIPS_GPR) += alchemy/ 31 28 load-$(CONFIG_MIPS_GPR) += 0xffffffff80100000 32 29 33 30 # boards can specify their own <gpio.h> in one of their include dirs.
-1
arch/mips/ar7/Platform
··· 1 1 # 2 2 # Texas Instruments AR7 3 3 # 4 - platform-$(CONFIG_AR7) += ar7/ 5 4 cflags-$(CONFIG_AR7) += -I$(srctree)/arch/mips/include/asm/mach-ar7 6 5 load-$(CONFIG_AR7) += 0xffffffff94100000
-1
arch/mips/ath25/Platform
··· 1 1 # 2 2 # Atheros AR531X/AR231X WiSoC 3 3 # 4 - platform-$(CONFIG_ATH25) += ath25/ 5 4 cflags-$(CONFIG_ATH25) += -I$(srctree)/arch/mips/include/asm/mach-ath25 6 5 load-$(CONFIG_ATH25) += 0xffffffff80041000
-1
arch/mips/ath79/Platform
··· 2 2 # Atheros AR71xx/AR724x/AR913x 3 3 # 4 4 5 - platform-$(CONFIG_ATH79) += ath79/ 6 5 cflags-$(CONFIG_ATH79) += -I$(srctree)/arch/mips/include/asm/mach-ath79 7 6 load-$(CONFIG_ATH79) = 0xffffffff80060000
-1
arch/mips/bcm47xx/Platform
··· 1 1 # 2 2 # Broadcom BCM47XX boards 3 3 # 4 - platform-$(CONFIG_BCM47XX) += bcm47xx/ 5 4 cflags-$(CONFIG_BCM47XX) += \ 6 5 -I$(srctree)/arch/mips/include/asm/mach-bcm47xx 7 6 load-$(CONFIG_BCM47XX) := 0xffffffff80001000
-1
arch/mips/bcm63xx/Platform
··· 1 1 # 2 2 # Broadcom BCM63XX boards 3 3 # 4 - platform-$(CONFIG_BCM63XX) += bcm63xx/ 5 4 cflags-$(CONFIG_BCM63XX) += \ 6 5 -I$(srctree)/arch/mips/include/asm/mach-bcm63xx/ 7 6 load-$(CONFIG_BCM63XX) := 0xffffffff80010000
-1
arch/mips/bmips/Platform
··· 1 1 # 2 2 # Broadcom Generic BMIPS kernel 3 3 # 4 - platform-$(CONFIG_BMIPS_GENERIC) += bmips/ 5 4 cflags-$(CONFIG_BMIPS_GENERIC) += \ 6 5 -I$(srctree)/arch/mips/include/asm/mach-bmips/ 7 6 load-$(CONFIG_BMIPS_GENERIC) := 0xffffffff80010000
-1
arch/mips/cavium-octeon/Platform
··· 1 1 # 2 2 # Cavium Octeon 3 3 # 4 - platform-$(CONFIG_CAVIUM_OCTEON_SOC) += cavium-octeon/ 5 4 cflags-$(CONFIG_CAVIUM_OCTEON_SOC) += \ 6 5 -I$(srctree)/arch/mips/include/asm/mach-cavium-octeon 7 6 load-$(CONFIG_CAVIUM_OCTEON_SOC) += 0xffffffff81100000
-1
arch/mips/cobalt/Platform
··· 1 1 # 2 2 # Cobalt Server 3 3 # 4 - platform-$(CONFIG_MIPS_COBALT) += cobalt/ 5 4 cflags-$(CONFIG_MIPS_COBALT) += -I$(srctree)/arch/mips/include/asm/mach-cobalt 6 5 load-$(CONFIG_MIPS_COBALT) += 0xffffffff80080000
-1
arch/mips/dec/Platform
··· 1 1 # 2 2 # DECstation family 3 3 # 4 - platform-$(CONFIG_MACH_DECSTATION) += dec/ 5 4 cflags-$(CONFIG_MACH_DECSTATION) += \ 6 5 -I$(srctree)/arch/mips/include/asm/mach-dec 7 6 libs-$(CONFIG_MACH_DECSTATION) += arch/mips/dec/prom/
-1
arch/mips/generic/Platform
··· 8 8 # option) any later version. 9 9 # 10 10 11 - platform-$(CONFIG_MIPS_GENERIC) += generic/ 12 11 cflags-$(CONFIG_MIPS_GENERIC) += -I$(srctree)/arch/mips/include/asm/mach-generic 13 12 load-$(CONFIG_MIPS_GENERIC) += 0xffffffff80100000 14 13 all-$(CONFIG_MIPS_GENERIC) := vmlinux.gz.itb
-1
arch/mips/jazz/Platform
··· 1 1 # 2 2 # Acer PICA 61, Mips Magnum 4000 and Olivetti M700. 3 3 # 4 - platform-$(CONFIG_MACH_JAZZ) += jazz/ 5 4 cflags-$(CONFIG_MACH_JAZZ) += -I$(srctree)/arch/mips/include/asm/mach-jazz 6 5 load-$(CONFIG_MACH_JAZZ) += 0xffffffff80080000
-1
arch/mips/jz4740/Platform
··· 1 - platform-$(CONFIG_MACH_INGENIC) += jz4740/ 2 1 cflags-$(CONFIG_MACH_INGENIC) += -I$(srctree)/arch/mips/include/asm/mach-jz4740 3 2 load-$(CONFIG_MACH_INGENIC) += 0xffffffff80010000 4 3 zload-$(CONFIG_MACH_INGENIC) += 0xffffffff81000000
-1
arch/mips/lantiq/Platform
··· 2 2 # Lantiq 3 3 # 4 4 5 - platform-$(CONFIG_LANTIQ) += lantiq/ 6 5 cflags-$(CONFIG_LANTIQ) += -I$(srctree)/arch/mips/include/asm/mach-lantiq 7 6 load-$(CONFIG_LANTIQ) = 0xffffffff80002000 8 7 cflags-$(CONFIG_SOC_TYPE_XWAY) += -I$(srctree)/arch/mips/include/asm/mach-lantiq/xway
-1
arch/mips/loongson2ef/Platform
··· 26 26 # Loongson Machines' Support 27 27 # 28 28 29 - platform-$(CONFIG_MACH_LOONGSON2EF) += loongson2ef/ 30 29 cflags-$(CONFIG_MACH_LOONGSON2EF) += -I$(srctree)/arch/mips/include/asm/mach-loongson2ef -mno-branch-likely 31 30 load-$(CONFIG_LEMOTE_FULOONG2E) += 0xffffffff80100000 32 31 load-$(CONFIG_LEMOTE_MACH2F) += 0xffffffff80200000
-1
arch/mips/loongson32/Platform
··· 1 1 cflags-$(CONFIG_CPU_LOONGSON32) += -march=mips32r2 -Wa,--trap 2 - platform-$(CONFIG_MACH_LOONGSON32) += loongson32/ 3 2 cflags-$(CONFIG_MACH_LOONGSON32) += -I$(srctree)/arch/mips/include/asm/mach-loongson32 4 3 load-$(CONFIG_CPU_LOONGSON32) += 0xffffffff80200000
-1
arch/mips/loongson64/Platform
··· 55 55 # Loongson Machines' Support 56 56 # 57 57 58 - platform-$(CONFIG_MACH_LOONGSON64) += loongson64/ 59 58 cflags-$(CONFIG_MACH_LOONGSON64) += -I$(srctree)/arch/mips/include/asm/mach-loongson64 -mno-branch-likely 60 59 load-$(CONFIG_CPU_LOONGSON64) += 0xffffffff80200000
-1
arch/mips/mti-malta/Platform
··· 1 1 # 2 2 # MIPS Malta board 3 3 # 4 - platform-$(CONFIG_MIPS_MALTA) += mti-malta/ 5 4 cflags-$(CONFIG_MIPS_MALTA) += -I$(srctree)/arch/mips/include/asm/mach-malta 6 5 ifdef CONFIG_KVM_GUEST 7 6 load-$(CONFIG_MIPS_MALTA) += 0x0000000040100000
-1
arch/mips/netlogic/Platform
··· 13 13 # 14 14 # NETLOGIC processor support 15 15 # 16 - platform-$(CONFIG_NLM_COMMON) += netlogic/ 17 16 load-$(CONFIG_NLM_COMMON) += 0xffffffff80100000
-1
arch/mips/paravirt/Platform
··· 1 1 # 2 2 # Generic para-virtualized guest. 3 3 # 4 - platform-$(CONFIG_MIPS_PARAVIRT) += paravirt/ 5 4 cflags-$(CONFIG_MIPS_PARAVIRT) += \ 6 5 -I$(srctree)/arch/mips/include/asm/mach-paravirt 7 6
-1
arch/mips/pic32/Platform
··· 1 1 # 2 2 # PIC32MZDA 3 3 # 4 - platform-$(CONFIG_PIC32MZDA) += pic32/ 5 4 cflags-$(CONFIG_PIC32MZDA) += -I$(srctree)/arch/mips/include/asm/mach-pic32 6 5 load-$(CONFIG_PIC32MZDA) += 0xffffffff88000000 7 6 all-$(CONFIG_PIC32MZDA) := $(COMPRESSION_FNAME).bin
-1
arch/mips/pistachio/Platform
··· 1 1 # 2 2 # IMG Pistachio SoC 3 3 # 4 - platform-$(CONFIG_MACH_PISTACHIO) += pistachio/ 5 4 cflags-$(CONFIG_MACH_PISTACHIO) += \ 6 5 -I$(srctree)/arch/mips/include/asm/mach-pistachio 7 6 load-$(CONFIG_MACH_PISTACHIO) += 0xffffffff80400000
-1
arch/mips/pnx833x/Platform
··· 1 1 # NXP STB225 2 - platform-$(CONFIG_SOC_PNX833X) += pnx833x/ 3 2 cflags-$(CONFIG_SOC_PNX833X) += -I$(srctree)/arch/mips/include/asm/mach-pnx833x 4 3 load-$(CONFIG_NXP_STB220) += 0xffffffff80001000 5 4 load-$(CONFIG_NXP_STB225) += 0xffffffff80001000
-1
arch/mips/rb532/Platform
··· 1 1 # 2 2 # Routerboard 532 3 3 # 4 - platform-$(CONFIG_MIKROTIK_RB532) += rb532/ 5 4 cflags-$(CONFIG_MIKROTIK_RB532) += \ 6 5 -I$(srctree)/arch/mips/include/asm/mach-rc32434 7 6 load-$(CONFIG_MIKROTIK_RB532) += 0xffffffff80101000
-2
arch/mips/sgi-ip22/Platform
··· 7 7 # current variable will break so for 64-bit kernels we have to raise the start 8 8 # address by 8kb. 9 9 # 10 - platform-$(CONFIG_SGI_IP22) += sgi-ip22/ 11 10 cflags-$(CONFIG_SGI_IP22) += -I$(srctree)/arch/mips/include/asm/mach-ip22 12 11 ifdef CONFIG_32BIT 13 12 load-$(CONFIG_SGI_IP22) += 0xffffffff88002000 ··· 28 29 $(error gcc doesn't support needed option -mr10k-cache-barrier=store) 29 30 endif 30 31 endif 31 - platform-$(CONFIG_SGI_IP28) += sgi-ip22/ 32 32 cflags-$(CONFIG_SGI_IP28) += -mr10k-cache-barrier=store -I$(srctree)/arch/mips/include/asm/mach-ip28 33 33 load-$(CONFIG_SGI_IP28) += 0xa800000020004000
-3
arch/mips/sgi-ip27/Platform
··· 5 5 # symmon, 0xc00000000001c000 for production kernels. Note that the value must 6 6 # be 16kb aligned or the handling of the current variable will break. 7 7 # 8 - ifdef CONFIG_SGI_IP27 9 - platform-$(CONFIG_SGI_IP27) += sgi-ip27/ 10 8 cflags-$(CONFIG_SGI_IP27) += -I$(srctree)/arch/mips/include/asm/mach-ip27 11 9 ifdef CONFIG_MAPPED_KERNEL 12 10 load-$(CONFIG_SGI_IP27) += 0xc00000004001c000 ··· 13 15 else 14 16 load-$(CONFIG_SGI_IP27) += 0xa80000000001c000 15 17 OBJCOPYFLAGS := --change-addresses=0x57ffffff80000000 16 - endif 17 18 endif
-3
arch/mips/sgi-ip30/Platform
··· 1 1 # 2 2 # SGI-IP30 (Octane/Octane2) 3 3 # 4 - ifdef CONFIG_SGI_IP30 5 - platform-$(CONFIG_SGI_IP30) += sgi-ip30/ 6 4 cflags-$(CONFIG_SGI_IP30) += -I$(srctree)/arch/mips/include/asm/mach-ip30 7 5 load-$(CONFIG_SGI_IP30) += 0xa800000020004000 8 - endif
-1
arch/mips/sgi-ip32/Platform
··· 6 6 # a multiple of the kernel stack size or the handling of the current variable 7 7 # will break. 8 8 # 9 - platform-$(CONFIG_SGI_IP32) += sgi-ip32/ 10 9 cflags-$(CONFIG_SGI_IP32) += -I$(srctree)/arch/mips/include/asm/mach-ip32 11 10 load-$(CONFIG_SGI_IP32) += 0xffffffff80004000
-4
arch/mips/sibyte/Platform
··· 1 1 # 2 2 # These are all rather similar so we consider them a single platform 3 3 # 4 - platform-$(CONFIG_SIBYTE_BCM112X) += sibyte/ 5 - platform-$(CONFIG_SIBYTE_SB1250) += sibyte/ 6 - platform-$(CONFIG_SIBYTE_BCM1x55) += sibyte/ 7 - platform-$(CONFIG_SIBYTE_BCM1x80) += sibyte/ 8 4 9 5 # 10 6 # Sibyte SB1250 / BCM1480 family of SOCs
-1
arch/mips/sni/Platform
··· 1 1 # 2 2 # SNI RM 3 3 # 4 - platform-$(CONFIG_SNI_RM) += sni/ 5 4 cflags-$(CONFIG_SNI_RM) += -I$(srctree)/arch/mips/include/asm/mach-rm 6 5 ifdef CONFIG_CPU_LITTLE_ENDIAN 7 6 load-$(CONFIG_SNI_RM) += 0xffffffff80600000
-3
arch/mips/txx9/Platform
··· 1 - platform-$(CONFIG_MACH_TX39XX) += txx9/ 2 - platform-$(CONFIG_MACH_TX49XX) += txx9/ 3 - 4 1 cflags-$(CONFIG_MACH_TX39XX) += \ 5 2 -I$(srctree)/arch/mips/include/asm/mach-tx39xx 6 3 cflags-$(CONFIG_MACH_TX49XX) += \