Makefile revision b27311e1cace4e296ace786c886d22f7a8ec78d6
11da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 21da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# This file is subject to the terms and conditions of the GNU General Public 31da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# License. See the file "COPYING" in the main directory of this archive 41da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# for more details. 51da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 61da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle 71da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# DECStation modifications by Paul M. Antoine, 1996 81da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Copyright (C) 2002, 2003, 2004 Maciej W. Rozycki 91da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# This file is included by the global makefile so that you can add your own 111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# architecture-specific flags and dependencies. Remember to do have actions 121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# for "archclean" cleaning up for this architecture. 131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 15de0c16985dbc04c11bf3c44df30030df5d060963Adrian BunkKBUILD_DEFCONFIG := ip22_defconfig 16de0c16985dbc04c11bf3c44df30030df5d060963Adrian Bunk 17372a775f50347f5c1dd87752b16e5c05ea965790Ralf Baechlecflags-y := -ffunction-sections 181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Select the object file format to substitute into the linker script. 211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsifdef CONFIG_CPU_LITTLE_ENDIAN 2317f690be454de447d8ddc586fa418ebfdb200966Ralf Baechle32bit-tool-archpref = mipsel 2417f690be454de447d8ddc586fa418ebfdb200966Ralf Baechle64bit-tool-archpref = mips64el 251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds32bit-bfd = elf32-tradlittlemips 261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds64bit-bfd = elf64-tradlittlemips 271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds32bit-emul = elf32ltsmip 281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds64bit-emul = elf64ltsmip 291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldselse 3017f690be454de447d8ddc586fa418ebfdb200966Ralf Baechle32bit-tool-archpref = mips 3117f690be454de447d8ddc586fa418ebfdb200966Ralf Baechle64bit-tool-archpref = mips64 321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds32bit-bfd = elf32-tradbigmips 331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds64bit-bfd = elf64-tradbigmips 341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds32bit-emul = elf32btsmip 351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds64bit-emul = elf64btsmip 361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 38875d43e72b5bf22161a81de7554f88eccf8a51aeRalf Baechleifdef CONFIG_32BIT 3917f690be454de447d8ddc586fa418ebfdb200966Ralf Baechletool-archpref = $(32bit-tool-archpref) 401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsUTS_MACHINE := mips 411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 42875d43e72b5bf22161a81de7554f88eccf8a51aeRalf Baechleifdef CONFIG_64BIT 4317f690be454de447d8ddc586fa418ebfdb200966Ralf Baechletool-archpref = $(64bit-tool-archpref) 441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsUTS_MACHINE := mips64 451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 4717f690be454de447d8ddc586fa418ebfdb200966Ralf Baechleifneq ($(SUBARCH),$(ARCH)) 4817f690be454de447d8ddc586fa418ebfdb200966Ralf Baechle ifeq ($(CROSS_COMPILE),) 493247989ee864db2cc5dccb14460573fee82b6832Maciej W. Rozycki CROSS_COMPILE := $(call cc-cross-prefix, $(tool-archpref)-linux- $(tool-archpref)-linux-gnu- $(tool-archpref)-unknown-linux-gnu-) 5017f690be454de447d8ddc586fa418ebfdb200966Ralf Baechle endif 511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 538145095cd8fd466980ea6401f26a52e462275222Ralf Baechleifdef CONFIG_32BIT 541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsld-emul = $(32bit-emul) 551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvmlinux-32 = vmlinux 561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvmlinux-64 = vmlinux.64 5759b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechle 5859b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-y += -mabi=32 598145095cd8fd466980ea6401f26a52e462275222Ralf Baechleendif 601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 618145095cd8fd466980ea6401f26a52e462275222Ralf Baechleifdef CONFIG_64BIT 628145095cd8fd466980ea6401f26a52e462275222Ralf Baechleld-emul = $(64bit-emul) 638145095cd8fd466980ea6401f26a52e462275222Ralf Baechlevmlinux-32 = vmlinux.32 648145095cd8fd466980ea6401f26a52e462275222Ralf Baechlevmlinux-64 = vmlinux 658145095cd8fd466980ea6401f26a52e462275222Ralf Baechle 6659b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-y += -mabi=64 671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 698496b401b03393bf9f03bc913a420cbe7de691d3Ralf Baechleall-$(CONFIG_BOOT_ELF32) := $(vmlinux-32) 708496b401b03393bf9f03bc913a420cbe7de691d3Ralf Baechleall-$(CONFIG_BOOT_ELF64) := $(vmlinux-64) 7159b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechle 721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# GCC uses -G 0 -mabicalls -fpic as default. We don't want PIC in the kernel 741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# code since it only slows down the whole thing. At some point we might make 751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# use of global pointer optimizations but their use of $28 conflicts with 761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# the current pointer optimization. 771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# The DECStation requires an ECOFF kernel for remote booting, other MIPS 791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# machines may also. Since BFD is incredibly buggy with respect to 801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# crossformat linking we rely on the elf2ecoff tool for format conversion. 811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-y += -G 0 -mno-abicalls -fno-pic -pipe 836218cf4410cfce7bc7e89834e73525b124625d4cRalf Baechlecflags-y += -msoft-float 849f83d839dfd2dbe421224c29f02cef77f5b4b875Thiemo SeuferLDFLAGS_vmlinux += -G 0 -static -n -nostdlib 851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsMODFLAGS += -mlong-calls 861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 8772fbfb260197a52c2bc2583f3e8f15d261d0f924Ralf Baechlecflags-y += -ffreestanding 8872fbfb260197a52c2bc2583f3e8f15d261d0f924Ralf Baechle 89f425a6dce50475f08547d08763f707589478b027Thiemo Seufer# 90f425a6dce50475f08547d08763f707589478b027Thiemo Seufer# We explicitly add the endianness specifier if needed, this allows 91f425a6dce50475f08547d08763f707589478b027Thiemo Seufer# to compile kernels with a toolchain for the other endianness. We 92f425a6dce50475f08547d08763f707589478b027Thiemo Seufer# carefully avoid to add it redundantly because gcc 3.3/3.4 complains 93f425a6dce50475f08547d08763f707589478b027Thiemo Seufer# when fed the toolchain default! 94f425a6dce50475f08547d08763f707589478b027Thiemo Seufer# 95f94054121efcba573f12101a75a4be93e871b309Ralf Baechle# Certain gcc versions upto gcc 4.1.1 (probably 4.2-subversion as of 9659c51591a0ac7568824f541f57de967e88adaa07Michael Opdenacker# 2006-10-10 don't properly change the predefined symbols if -EB / -EL 97f94054121efcba573f12101a75a4be93e871b309Ralf Baechle# are used, so we kludge that here. A bug has been filed at 98f94054121efcba573f12101a75a4be93e871b309Ralf Baechle# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29413. 99f94054121efcba573f12101a75a4be93e871b309Ralf Baechle# 100f94054121efcba573f12101a75a4be93e871b309Ralf Baechleundef-all += -UMIPSEB -U_MIPSEB -U__MIPSEB -U__MIPSEB__ 101f94054121efcba573f12101a75a4be93e871b309Ralf Baechleundef-all += -UMIPSEL -U_MIPSEL -U__MIPSEL -U__MIPSEL__ 102f94054121efcba573f12101a75a4be93e871b309Ralf Baechlepredef-be += -DMIPSEB -D_MIPSEB -D__MIPSEB -D__MIPSEB__ 103f94054121efcba573f12101a75a4be93e871b309Ralf Baechlepredef-le += -DMIPSEL -D_MIPSEL -D__MIPSEL -D__MIPSEL__ 104f94054121efcba573f12101a75a4be93e871b309Ralf Baechlecflags-$(CONFIG_CPU_BIG_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' && echo -EB $(undef-all) $(predef-be)) 105f94054121efcba573f12101a75a4be93e871b309Ralf Baechlecflags-$(CONFIG_CPU_LITTLE_ENDIAN) += $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' || echo -EL $(undef-all) $(predef-le)) 106f425a6dce50475f08547d08763f707589478b027Thiemo Seufer 1079693a85378b590cc7a4aa2db2174422585c7c8c4Franck Bui-Huucflags-$(CONFIG_CPU_HAS_SMARTMIPS) += $(call cc-option,-msmartmips) 1089693a85378b590cc7a4aa2db2174422585c7c8c4Franck Bui-Huu 1099007c9a2b03ea325ee593a161dbf01dbb8222d7eRalf Baechlecflags-$(CONFIG_SB1XXX_CORELIS) += $(call cc-option,-mno-sched-prolog) \ 1109007c9a2b03ea325ee593a161dbf01dbb8222d7eRalf Baechle -fno-omit-frame-pointer 1111da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# CPU-dependent compiler/assembler options for optimization. 1141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 11559b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_R3000) += -march=r3000 11659b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_TX39XX) += -march=r3900 11759b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_R6000) += -march=r6000 -Wa,--trap 11859b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap 11959b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap 12059b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap 12159b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap 1222a21c7300b53b744d16903256a172d9cbcfdd03eFuxin Zhangcflags-$(CONFIG_CPU_LOONGSON2) += -march=r4600 -Wa,--trap 1239200c0b2a07c430bd98c546fc44b94f50e67ac62Ralf Baechlecflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ 12459b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechle -Wa,-mips32 -Wa,--trap 1259200c0b2a07c430bd98c546fc44b94f50e67ac62Ralf Baechlecflags-$(CONFIG_CPU_MIPS32_R2) += $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \ 12659b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechle -Wa,-mips32r2 -Wa,--trap 1279200c0b2a07c430bd98c546fc44b94f50e67ac62Ralf Baechlecflags-$(CONFIG_CPU_MIPS64_R1) += $(call cc-option,-march=mips64,-mips64 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS64) \ 12859b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechle -Wa,-mips64 -Wa,--trap 1299200c0b2a07c430bd98c546fc44b94f50e67ac62Ralf Baechlecflags-$(CONFIG_CPU_MIPS64_R2) += $(call cc-option,-march=mips64r2,-mips64r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS64) \ 13059b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechle -Wa,-mips64r2 -Wa,--trap 13159b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_R5000) += -march=r5000 -Wa,--trap 132c9e321e095384f25f2b7ffef456794cfa876dafcRalf Baechlecflags-$(CONFIG_CPU_R5432) += $(call cc-option,-march=r5400,-march=r5000) \ 1331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds -Wa,--trap 134c9e321e095384f25f2b7ffef456794cfa876dafcRalf Baechlecflags-$(CONFIG_CPU_NEVADA) += $(call cc-option,-march=rm5200,-march=r5000) \ 1351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds -Wa,--trap 13659b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_RM7000) += $(call cc-option,-march=rm7000,-march=r5000) \ 1371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds -Wa,--trap 13859b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_RM9000) += $(call cc-option,-march=rm9000,-march=r5000) \ 1391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds -Wa,--trap 14059b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_SB1) += $(call cc-option,-march=sb1,-march=r5000) \ 1411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds -Wa,--trap 14259b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_R8000) += -march=r8000 -Wa,--trap 14359b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechlecflags-$(CONFIG_CPU_R10000) += $(call cc-option,-march=r10000,-march=r8000) \ 1441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds -Wa,--trap 1451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 14620d60d9973c3b441902b0a3f4f6f7e7ade08f77dMaciej W. Rozyckicflags-$(CONFIG_CPU_R4000_WORKAROUNDS) += $(call cc-option,-mfix-r4000,) 14720d60d9973c3b441902b0a3f4f6f7e7ade08f77dMaciej W. Rozyckicflags-$(CONFIG_CPU_R4400_WORKAROUNDS) += $(call cc-option,-mfix-r4400,) 14820d60d9973c3b441902b0a3f4f6f7e7ade08f77dMaciej W. Rozyckicflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(call cc-option,-mno-daddi,) 14920d60d9973c3b441902b0a3f4f6f7e7ade08f77dMaciej W. Rozycki 1501da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsifdef CONFIG_CPU_SB1 1511da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsifdef CONFIG_SB1_PASS_1_WORKAROUNDS 1521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsMODFLAGS += -msb1-pass1-workarounds 1531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 1541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 1551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Firmware support 1581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1592f56cfdd812a17623483d3dfa3370a2e6282b245Aurelien Jarnolibs-$(CONFIG_ARC) += arch/mips/fw/arc/ 160df78b5c8faa72b3c04f82faab126de93af178348Aurelien Jarnolibs-$(CONFIG_CFE) += arch/mips/fw/cfe/ 161231a35d37293ab88d325a9cb94e5474c156282c0Thomas Bogendoerferlibs-$(CONFIG_SNIPROM) += arch/mips/fw/sni/ 162231a35d37293ab88d325a9cb94e5474c156282c0Thomas Bogendoerferlibs-y += arch/mips/fw/lib/ 1631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_SIBYTE_CFE) += arch/mips/sibyte/cfe/ 1641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Board-dependent options and extra files 1671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Acer PICA 61, Mips Magnum 4000 and Olivetti M700. 1711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_MACH_JAZZ) += arch/mips/jazz/ 1731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MACH_JAZZ) += -Iinclude/asm-mips/mach-jazz 1741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MACH_JAZZ) += 0xffffffff80080000 1751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Common Alchemy Au1x00 stuff 1781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_SOC_AU1X00) += arch/mips/au1000/common/ 1801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_SOC_AU1X00) += -Iinclude/asm-mips/mach-au1x00 1811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Pb1000 eval board 1841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_PB1000) += arch/mips/au1000/pb1000/ 1861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_PB1000) += -Iinclude/asm-mips/mach-pb1x00 1871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_PB1000) += 0xffffffff80100000 1881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Pb1100 eval board 1911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_PB1100) += arch/mips/au1000/pb1100/ 1931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_PB1100) += -Iinclude/asm-mips/mach-pb1x00 1941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_PB1100) += 0xffffffff80100000 1951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 1961da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Pb1500 eval board 1981da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 1991da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_PB1500) += arch/mips/au1000/pb1500/ 2001da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_PB1500) += -Iinclude/asm-mips/mach-pb1x00 2011da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_PB1500) += 0xffffffff80100000 2021da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2031da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Pb1550 eval board 2051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_PB1550) += arch/mips/au1000/pb1550/ 2071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_PB1550) += -Iinclude/asm-mips/mach-pb1x00 2081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_PB1550) += 0xffffffff80100000 2091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 211e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popov# AMD Alchemy Pb1200 eval board 212e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popov# 213e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popovlibs-$(CONFIG_MIPS_PB1200) += arch/mips/au1000/pb1200/ 214e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popovcflags-$(CONFIG_MIPS_PB1200) += -Iinclude/asm-mips/mach-pb1x00 215e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popovload-$(CONFIG_MIPS_PB1200) += 0xffffffff80100000 216e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popov 217e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popov# 2181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Db1000 eval board 2191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_DB1000) += arch/mips/au1000/db1x00/ 2211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_DB1000) += -Iinclude/asm-mips/mach-db1x00 2221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_DB1000) += 0xffffffff80100000 2231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2251da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Db1100 eval board 2261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_DB1100) += arch/mips/au1000/db1x00/ 2281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_DB1100) += -Iinclude/asm-mips/mach-db1x00 2291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_DB1100) += 0xffffffff80100000 2301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Db1500 eval board 2331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_DB1500) += arch/mips/au1000/db1x00/ 2351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_DB1500) += -Iinclude/asm-mips/mach-db1x00 2361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_DB1500) += 0xffffffff80100000 2371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Db1550 eval board 2401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_DB1550) += arch/mips/au1000/db1x00/ 2421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_DB1550) += -Iinclude/asm-mips/mach-db1x00 2431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_DB1550) += 0xffffffff80100000 2441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 246e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popov# AMD Alchemy Db1200 eval board 247e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popov# 248e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popovlibs-$(CONFIG_MIPS_DB1200) += arch/mips/au1000/pb1200/ 249e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popovcflags-$(CONFIG_MIPS_DB1200) += -Iinclude/asm-mips/mach-db1x00 250e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popovload-$(CONFIG_MIPS_DB1200) += 0xffffffff80100000 251e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popov 252e3ad1c23ba72214669b364c6fa304531dc768c3ePete Popov# 2531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Bosporus eval board 2541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_BOSPORUS) += arch/mips/au1000/db1x00/ 2561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_BOSPORUS) += -Iinclude/asm-mips/mach-db1x00 2571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_BOSPORUS) += 0xffffffff80100000 2581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# AMD Alchemy Mirage eval board 2611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_MIRAGE) += arch/mips/au1000/db1x00/ 2631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MIPS_MIRAGE) += -Iinclude/asm-mips/mach-db1x00 2641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_MIRAGE) += 0xffffffff80100000 2651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4G-Systems eval board 2681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_MTX1) += arch/mips/au1000/mtx-1/ 2701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_MTX1) += 0xffffffff80100000 2711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# MyCable eval board 2741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MIPS_XXS1500) += arch/mips/au1000/xxs1500/ 2761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_XXS1500) += 0xffffffff80100000 2771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Cobalt Server 2801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_MIPS_COBALT) += arch/mips/cobalt/ 28211ed6d5bb01c5f347fd5c47e0005f06687c66f1fRalf Baechlecflags-$(CONFIG_MIPS_COBALT) += -Iinclude/asm-mips/mach-cobalt 2831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_COBALT) += 0xffffffff80080000 2841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# DECstation family 2871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 2881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_MACH_DECSTATION) += arch/mips/dec/ 2891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MACH_DECSTATION)+= -Iinclude/asm-mips/mach-dec 2901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-$(CONFIG_MACH_DECSTATION) += arch/mips/dec/prom/ 2911da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MACH_DECSTATION) += 0xffffffff80040000 2921da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 2931da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 294a240a469649eaab03f0c4c7fbb21ea5041bf5572Mark.Zhan# Wind River PPMC Board (4KC + GT64120) 295a240a469649eaab03f0c4c7fbb21ea5041bf5572Mark.Zhan# 296a240a469649eaab03f0c4c7fbb21ea5041bf5572Mark.Zhancore-$(CONFIG_WR_PPMC) += arch/mips/gt64120/wrppmc/ 297a240a469649eaab03f0c4c7fbb21ea5041bf5572Mark.Zhancflags-$(CONFIG_WR_PPMC) += -Iinclude/asm-mips/mach-wrppmc 298a240a469649eaab03f0c4c7fbb21ea5041bf5572Mark.Zhanload-$(CONFIG_WR_PPMC) += 0xffffffff80100000 299a240a469649eaab03f0c4c7fbb21ea5041bf5572Mark.Zhan 300a240a469649eaab03f0c4c7fbb21ea5041bf5572Mark.Zhan# 30142d226c7248a28ff8c478c06b7e9bd9ef5d73574Songmao Tian# lemote fulong mini-PC board 30242d226c7248a28ff8c478c06b7e9bd9ef5d73574Songmao Tian# 30342d226c7248a28ff8c478c06b7e9bd9ef5d73574Songmao Tiancore-$(CONFIG_LEMOTE_FULONG) +=arch/mips/lemote/lm2e/ 30442d226c7248a28ff8c478c06b7e9bd9ef5d73574Songmao Tianload-$(CONFIG_LEMOTE_FULONG) +=0xffffffff80100000 30542d226c7248a28ff8c478c06b7e9bd9ef5d73574Songmao Tiancflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote 30642d226c7248a28ff8c478c06b7e9bd9ef5d73574Songmao Tian 30742d226c7248a28ff8c478c06b7e9bd9ef5d73574Songmao Tian# 3081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# MIPS Malta board 3091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 310315806cb19f9d375dccbc2d60fa14e16afdcd5acRalf Baechlecore-$(CONFIG_MIPS_MALTA) += arch/mips/mti-malta/ 311315806cb19f9d375dccbc2d60fa14e16afdcd5acRalf Baechlecflags-$(CONFIG_MIPS_MALTA) += -Iinclude/asm-mips/mach-malta 3121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_MIPS_MALTA) += 0xffffffff80100000 313fa71c96002d1b02cd1ba1a4477d4b8ad95b587f9Ralf Baechleall-$(CONFIG_MIPS_MALTA) := vmlinux.bin 3141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 3151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 316c78cbf49c4edf2f9ca9e56d4b87a5d6ef08b7fedRalf Baechle# MIPS SIM 317c78cbf49c4edf2f9ca9e56d4b87a5d6ef08b7fedRalf Baechle# 318f6e2373ad6148476464fc7bb2610c6450c18cd2aRalf Baechlecore-$(CONFIG_MIPS_SIM) += arch/mips/mipssim/ 3199a0f3b73601a146998236237d82b55ae80337f10Yoichi Yuasacflags-$(CONFIG_MIPS_SIM) += -Iinclude/asm-mips/mach-mipssim 320c78cbf49c4edf2f9ca9e56d4b87a5d6ef08b7fedRalf Baechleload-$(CONFIG_MIPS_SIM) += 0x80100000 321c78cbf49c4edf2f9ca9e56d4b87a5d6ef08b7fedRalf Baechle 322c78cbf49c4edf2f9ca9e56d4b87a5d6ef08b7fedRalf Baechle# 3239267a30d1dc7dcd7cadb5eb6a5bbfed703feeefaMarc St-Jean# PMC-Sierra MSP SOCs 3249267a30d1dc7dcd7cadb5eb6a5bbfed703feeefaMarc St-Jean# 3259267a30d1dc7dcd7cadb5eb6a5bbfed703feeefaMarc St-Jeancore-$(CONFIG_PMC_MSP) += arch/mips/pmc-sierra/msp71xx/ 3269267a30d1dc7dcd7cadb5eb6a5bbfed703feeefaMarc St-Jeancflags-$(CONFIG_PMC_MSP) += -Iinclude/asm-mips/pmc-sierra/msp71xx \ 3279267a30d1dc7dcd7cadb5eb6a5bbfed703feeefaMarc St-Jean -mno-branch-likely 3289267a30d1dc7dcd7cadb5eb6a5bbfed703feeefaMarc St-Jeanload-$(CONFIG_PMC_MSP) += 0xffffffff80100000 3299267a30d1dc7dcd7cadb5eb6a5bbfed703feeefaMarc St-Jean 3309267a30d1dc7dcd7cadb5eb6a5bbfed703feeefaMarc St-Jean# 3311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# PMC-Sierra Yosemite 3321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_PMC_YOSEMITE) += arch/mips/pmc-sierra/yosemite/ 3341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_PMC_YOSEMITE) += -Iinclude/asm-mips/mach-yosemite 3351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_PMC_YOSEMITE) += 0xffffffff80100000 3361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 33714cd8015015199d6e8dea8aa4948b559137df7b7Ralf Baechle# 33835189fad3cb5f6e3ab66c8321928a851de0cd2b1Ralf Baechle# Basler eXcite 33935189fad3cb5f6e3ab66c8321928a851de0cd2b1Ralf Baechle# 34035189fad3cb5f6e3ab66c8321928a851de0cd2b1Ralf Baechlecore-$(CONFIG_BASLER_EXCITE) += arch/mips/basler/excite/ 34135189fad3cb5f6e3ab66c8321928a851de0cd2b1Ralf Baechlecflags-$(CONFIG_BASLER_EXCITE) += -Iinclude/asm-mips/mach-excite 34235189fad3cb5f6e3ab66c8321928a851de0cd2b1Ralf Baechleload-$(CONFIG_BASLER_EXCITE) += 0x80100000 34335189fad3cb5f6e3ab66c8321928a851de0cd2b1Ralf Baechle 34435189fad3cb5f6e3ab66c8321928a851de0cd2b1Ralf Baechle# 3451f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphy# LASAT platforms 3461f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphy# 3471f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphycore-$(CONFIG_LASAT) += arch/mips/lasat/ 3481f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphycflags-$(CONFIG_LASAT) += -Iinclude/asm-mips/mach-lasat 3491f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphyload-$(CONFIG_LASAT) += 0xffffffff80000000 3501f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphy 3511f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphy# 3521da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Common VR41xx 3531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_MACH_VR41XX) += arch/mips/vr41xx/common/ 3551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_MACH_VR41XX) += -Iinclude/asm-mips/mach-vr41xx 3561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 3571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# ZAO Networks Capcella (VR4131) 3591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_ZAO_CAPCELLA) += 0xffffffff80000000 3611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 3621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Victor MP-C303/304 (VR4122) 3641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_VICTOR_MPC30X) += 0xffffffff80001000 3661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 3671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# IBM WorkPad z50 (VR4121) 3691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_IBM_WORKPAD) += arch/mips/vr41xx/ibm-workpad/ 3711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_IBM_WORKPAD) += 0xffffffff80004000 3721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 3731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# CASIO CASSIPEIA E-55/65 (VR4111) 3751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 3761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_CASIO_E55) += arch/mips/vr41xx/casio-e55/ 3771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_CASIO_E55) += 0xffffffff80004000 3781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 3791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 38063b799f9ded82444212afdcf61379a247d544909Yoichi Yuasa# TANBAC VR4131 multichip module(TB0225) and TANBAC VR4131DIMM(TB0229) (VR4131) 3811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 38263b799f9ded82444212afdcf61379a247d544909Yoichi Yuasaload-$(CONFIG_TANBAC_TB022X) += 0xffffffff80000000 3831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 3841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 385a92b05880d261e9017ef8e7d5b6b01e0e5aa991dDaniel Laird# Common NXP PNX8550 386bdf21b18b4abf983db38f04ef7fec88f47389867Pete Popov# 387a92b05880d261e9017ef8e7d5b6b01e0e5aa991dDaniel Lairdcore-$(CONFIG_SOC_PNX8550) += arch/mips/nxp/pnx8550/common/ 388bdf21b18b4abf983db38f04ef7fec88f47389867Pete Popovcflags-$(CONFIG_SOC_PNX8550) += -Iinclude/asm-mips/mach-pnx8550 389bdf21b18b4abf983db38f04ef7fec88f47389867Pete Popov 390bdf21b18b4abf983db38f04ef7fec88f47389867Pete Popov# 391a92b05880d261e9017ef8e7d5b6b01e0e5aa991dDaniel Laird# NXP PNX8550 JBS board 392bdf21b18b4abf983db38f04ef7fec88f47389867Pete Popov# 393a92b05880d261e9017ef8e7d5b6b01e0e5aa991dDaniel Lairdlibs-$(CONFIG_PNX8550_JBS) += arch/mips/nxp/pnx8550/jbs/ 394bdf21b18b4abf983db38f04ef7fec88f47389867Pete Popov#cflags-$(CONFIG_PNX8550_JBS) += -Iinclude/asm-mips/mach-pnx8550 395bdf21b18b4abf983db38f04ef7fec88f47389867Pete Popovload-$(CONFIG_PNX8550_JBS) += 0xffffffff80060000 396bdf21b18b4abf983db38f04ef7fec88f47389867Pete Popov 397a92b05880d261e9017ef8e7d5b6b01e0e5aa991dDaniel Laird# NXP PNX8550 STB810 board 398f0647a52974daccbe20990fb6341f07792445fe0Vitaly Wool# 399a92b05880d261e9017ef8e7d5b6b01e0e5aa991dDaniel Lairdlibs-$(CONFIG_PNX8550_STB810) += arch/mips/nxp/pnx8550/stb810/ 400f0647a52974daccbe20990fb6341f07792445fe0Vitaly Woolload-$(CONFIG_PNX8550_STB810) += 0xffffffff80060000 401f0647a52974daccbe20990fb6341f07792445fe0Vitaly Wool 402355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68dmitry pervushin# NEC EMMA2RH boards 403355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68dmitry pervushin# 404355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68dmitry pervushincore-$(CONFIG_EMMA2RH) += arch/mips/emma2rh/common/ 405355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68dmitry pervushincflags-$(CONFIG_EMMA2RH) += -Iinclude/asm-mips/mach-emma2rh 406355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68dmitry pervushin 407355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68dmitry pervushin# NEC EMMA2RH Mark-eins 408355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68dmitry pervushincore-$(CONFIG_MARKEINS) += arch/mips/emma2rh/markeins/ 409355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68dmitry pervushinload-$(CONFIG_MARKEINS) += 0xffffffff88100000 410355c471f2ff324c21f8a1fb8e2e242a0f2a4aa68dmitry pervushin 411bdf21b18b4abf983db38f04ef7fec88f47389867Pete Popov# 4121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# SGI IP22 (Indy/Indigo2) 4131da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Set the load address to >= 0xffffffff88069000 if you want to leave space for 4151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# symmon, 0xffffffff80002000 for production kernels. Note that the value must 4161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# be aligned to a multiple of the kernel stack size or the handling of the 4171da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# current variable will break so for 64-bit kernels we have to raise the start 4181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# address by 8kb. 4191da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_SGI_IP22) += arch/mips/sgi-ip22/ 4211da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_SGI_IP22) += -Iinclude/asm-mips/mach-ip22 422875d43e72b5bf22161a81de7554f88eccf8a51aeRalf Baechleifdef CONFIG_32BIT 4231da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SGI_IP22) += 0xffffffff88002000 4241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 425875d43e72b5bf22161a81de7554f88eccf8a51aeRalf Baechleifdef CONFIG_64BIT 4261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SGI_IP22) += 0xffffffff88004000 4271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 4281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 4291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# SGI-IP27 (Origin200/2000) 4311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Set the load address to >= 0xc000000000300000 if you want to leave space for 4331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# symmon, 0xc00000000001c000 for production kernels. Note that the value must 4341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# be 16kb aligned or the handling of the current variable will break. 4351da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsifdef CONFIG_SGI_IP27 4371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_SGI_IP27) += arch/mips/sgi-ip27/ 4381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_SGI_IP27) += -Iinclude/asm-mips/mach-ip27 4391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsifdef CONFIG_MAPPED_KERNEL 4401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SGI_IP27) += 0xc00000004001c000 4411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsOBJCOPYFLAGS := --change-addresses=0x3fffffff80000000 4421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsdataoffset-$(CONFIG_SGI_IP27) += 0x01000000 4431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldselse 4441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SGI_IP27) += 0xa80000000001c000 4451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsOBJCOPYFLAGS := --change-addresses=0x57ffffff80000000 4461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 4471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 4481da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 4491da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 450e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfer# SGI IP28 (Indigo2 R10k) 451e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfer# 452e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfer# Set the load address to >= 0xa800000020080000 if you want to leave space for 453e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfer# symmon, 0xa800000020004000 for production kernels ? Note that the value must 454e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfer# be 16kb aligned or the handling of the current variable will break. 455e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfer# Simplified: what IP22 does at 128MB+ in ksegN, IP28 does at 512MB+ in xkphys 456e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfer# 45782933342c3b157c93f4b09199bcde8f2e961dff6Thomas Bogendoerferifdef CONFIG_SGI_IP28 45882933342c3b157c93f4b09199bcde8f2e961dff6Thomas Bogendoerfer ifeq ($(call cc-option-yn,-mr10k-cache-barrier=1), n) 45982933342c3b157c93f4b09199bcde8f2e961dff6Thomas Bogendoerfer $(error gcc doesn't support needed option -mr10k-cache-barrier=1) 46082933342c3b157c93f4b09199bcde8f2e961dff6Thomas Bogendoerfer endif 46182933342c3b157c93f4b09199bcde8f2e961dff6Thomas Bogendoerferendif 462e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfercore-$(CONFIG_SGI_IP28) += arch/mips/sgi-ip22/ 463e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfercflags-$(CONFIG_SGI_IP28) += -mr10k-cache-barrier=1 -Iinclude/asm-mips/mach-ip28 464e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerferload-$(CONFIG_SGI_IP28) += 0xa800000020004000 465e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfer 466e2defae5a9b4f8d1acb058be212ef89c8763dc5bThomas Bogendoerfer# 4671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# SGI-IP32 (O2) 4681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Set the load address to >= 80069000 if you want to leave space for symmon, 4701da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 0xffffffff80004000 for production kernels. Note that the value must be aligned to 4711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# a multiple of the kernel stack size or the handling of the current variable 4721da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# will break. 4731da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4741da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_SGI_IP32) += arch/mips/sgi-ip32/ 4751da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-$(CONFIG_SGI_IP32) += -Iinclude/asm-mips/mach-ip32 4761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SGI_IP32) += 0xffffffff80004000 4771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 4781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 479d619f38fdacb5cec0c841798bbadeaf903868852Mark Mason# Sibyte SB1250/BCM1480 SOC 4801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# This is a LIB so that it links at the end, and initcalls are later 4821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# the sequence; but it is built as an object so that modules don't get 4831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# removed (as happens, even if they have __initcall/module_init) 4841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 4851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_SIBYTE_BCM112X) += arch/mips/sibyte/sb1250/ 486d619f38fdacb5cec0c841798bbadeaf903868852Mark Masoncore-$(CONFIG_SIBYTE_BCM112X) += arch/mips/sibyte/common/ 487f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacsoncflags-$(CONFIG_SIBYTE_BCM112X) += -Iinclude/asm-mips/mach-sibyte \ 488f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacson -DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1250_112x_ALL 4891da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 4901da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-$(CONFIG_SIBYTE_SB1250) += arch/mips/sibyte/sb1250/ 491d619f38fdacb5cec0c841798bbadeaf903868852Mark Masoncore-$(CONFIG_SIBYTE_SB1250) += arch/mips/sibyte/common/ 492f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacsoncflags-$(CONFIG_SIBYTE_SB1250) += -Iinclude/asm-mips/mach-sibyte \ 493f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacson -DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1250_112x_ALL 494f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacson 495f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacsoncore-$(CONFIG_SIBYTE_BCM1x55) += arch/mips/sibyte/bcm1480/ 496d619f38fdacb5cec0c841798bbadeaf903868852Mark Masoncore-$(CONFIG_SIBYTE_BCM1x55) += arch/mips/sibyte/common/ 497f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacsoncflags-$(CONFIG_SIBYTE_BCM1x55) += -Iinclude/asm-mips/mach-sibyte \ 498f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacson -DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1480_ALL 499f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacson 500f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacsoncore-$(CONFIG_SIBYTE_BCM1x80) += arch/mips/sibyte/bcm1480/ 501d619f38fdacb5cec0c841798bbadeaf903868852Mark Masoncore-$(CONFIG_SIBYTE_BCM1x80) += arch/mips/sibyte/common/ 502f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacsoncflags-$(CONFIG_SIBYTE_BCM1x80) += -Iinclude/asm-mips/mach-sibyte \ 503f137e463b50aadba91bd116f99c59ccb9c15a12fAndrew Isaacson -DSIBYTE_HDR_FEATURES=SIBYTE_HDR_FMASK_1480_ALL 5041da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 5051da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 5061da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Sibyte BCM91120x (Carmel) board 5071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Sibyte BCM91120C (CRhine) board 5081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Sibyte BCM91125C (CRhone) board 5091da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Sibyte BCM91125E (Rhone) board 5101da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Sibyte SWARM board 5119a6dcea10308df50ed54d6d5a43c9f6c3e927118Andrew Isaacson# Sibyte BCM91x80 (BigSur) board 5121da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 51363a4881a7dd45038f46caa7c3c08b88b01cf9473Maciej W. Rozyckicore-$(CONFIG_SIBYTE_CARMEL) += arch/mips/sibyte/swarm/ 5141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SIBYTE_CARMEL) := 0xffffffff80100000 51563a4881a7dd45038f46caa7c3c08b88b01cf9473Maciej W. Rozyckicore-$(CONFIG_SIBYTE_CRHINE) += arch/mips/sibyte/swarm/ 5161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SIBYTE_CRHINE) := 0xffffffff80100000 51763a4881a7dd45038f46caa7c3c08b88b01cf9473Maciej W. Rozyckicore-$(CONFIG_SIBYTE_CRHONE) += arch/mips/sibyte/swarm/ 5181da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SIBYTE_CRHONE) := 0xffffffff80100000 51963a4881a7dd45038f46caa7c3c08b88b01cf9473Maciej W. Rozyckicore-$(CONFIG_SIBYTE_RHONE) += arch/mips/sibyte/swarm/ 5201da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SIBYTE_RHONE) := 0xffffffff80100000 52163a4881a7dd45038f46caa7c3c08b88b01cf9473Maciej W. Rozyckicore-$(CONFIG_SIBYTE_SENTOSA) += arch/mips/sibyte/swarm/ 5221da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SIBYTE_SENTOSA) := 0xffffffff80100000 52363a4881a7dd45038f46caa7c3c08b88b01cf9473Maciej W. Rozyckicore-$(CONFIG_SIBYTE_SWARM) += arch/mips/sibyte/swarm/ 5241da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsload-$(CONFIG_SIBYTE_SWARM) := 0xffffffff80100000 52563a4881a7dd45038f46caa7c3c08b88b01cf9473Maciej W. Rozyckicore-$(CONFIG_SIBYTE_BIGSUR) += arch/mips/sibyte/swarm/ 5269a6dcea10308df50ed54d6d5a43c9f6c3e927118Andrew Isaacsonload-$(CONFIG_SIBYTE_BIGSUR) := 0xffffffff80100000 5271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 5281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 5291c0c13eb935c95fd2ca0b0aca6dd4860487fb242Aurelien Jarno# Broadcom BCM47XX boards 5301c0c13eb935c95fd2ca0b0aca6dd4860487fb242Aurelien Jarno# 5311c0c13eb935c95fd2ca0b0aca6dd4860487fb242Aurelien Jarnocore-$(CONFIG_BCM47XX) += arch/mips/bcm47xx/ 5321c0c13eb935c95fd2ca0b0aca6dd4860487fb242Aurelien Jarnocflags-$(CONFIG_BCM47XX) += -Iinclude/asm-mips/mach-bcm47xx 5331c0c13eb935c95fd2ca0b0aca6dd4860487fb242Aurelien Jarnoload-$(CONFIG_BCM47XX) := 0xffffffff80001000 5341c0c13eb935c95fd2ca0b0aca6dd4860487fb242Aurelien Jarno 5351c0c13eb935c95fd2ca0b0aca6dd4860487fb242Aurelien Jarno# 53614b36af46a1d3652aff6734ea24816995dff8123Thomas Bogendoerfer# SNI RM 5371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 53814b36af46a1d3652aff6734ea24816995dff8123Thomas Bogendoerfercore-$(CONFIG_SNI_RM) += arch/mips/sni/ 53914b36af46a1d3652aff6734ea24816995dff8123Thomas Bogendoerfercflags-$(CONFIG_SNI_RM) += -Iinclude/asm-mips/mach-rm 5400e27d7931157fa89cc9afb7735095a0d81ce8fecThomas Bogendoerferifdef CONFIG_CPU_LITTLE_ENDIAN 54114b36af46a1d3652aff6734ea24816995dff8123Thomas Bogendoerferload-$(CONFIG_SNI_RM) += 0xffffffff80600000 5420e27d7931157fa89cc9afb7735095a0d81ce8fecThomas Bogendoerferelse 5430e27d7931157fa89cc9afb7735095a0d81ce8fecThomas Bogendoerferload-$(CONFIG_SNI_RM) += 0xffffffff80030000 5440e27d7931157fa89cc9afb7735095a0d81ce8fecThomas Bogendoerferendif 5458496b401b03393bf9f03bc913a420cbe7de691d3Ralf Baechleall-$(CONFIG_SNI_RM) := vmlinux.ecoff 5461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 5471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 548edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemoto# Common TXx9 549edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemoto# 550edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemotocore-$(CONFIG_MACH_TX39XX) += arch/mips/txx9/generic/ 5514c642f3f5e9f3f1a2fcce2c3fa1a94bf80142202Atsushi Nemotocflags-$(CONFIG_MACH_TX39XX) += -Iinclude/asm-mips/mach-tx39xx 552edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemotoload-$(CONFIG_MACH_TX39XX) += 0xffffffff80050000 553edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemotocore-$(CONFIG_MACH_TX49XX) += arch/mips/txx9/generic/ 554edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemotocflags-$(CONFIG_MACH_TX49XX) += -Iinclude/asm-mips/mach-tx49xx 555edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemotoload-$(CONFIG_MACH_TX49XX) += 0xffffffff80100000 556edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemoto 557edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemoto# 5581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Toshiba JMR-TX3927 board 5591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 560edcaf1a6a77315562e9781245cc8e028c9a921dcAtsushi Nemotocore-$(CONFIG_TOSHIBA_JMR3927) += arch/mips/txx9/jmr3927/ 5611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 5621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 56373b4390fb23456964201abda79f1210fe337d01aRalf Baechle# Routerboard 532 board 56473b4390fb23456964201abda79f1210fe337d01aRalf Baechle# 56573b4390fb23456964201abda79f1210fe337d01aRalf Baechlecore-$(CONFIG_MIKROTIK_RB532) += arch/mips/rb532/ 56673b4390fb23456964201abda79f1210fe337d01aRalf Baechlecflags-$(CONFIG_MIKROTIK_RB532) += -Iinclude/asm-mips/mach-rc32434 56773b4390fb23456964201abda79f1210fe337d01aRalf Baechleload-$(CONFIG_MIKROTIK_RB532) += 0xffffffff80101000 56873b4390fb23456964201abda79f1210fe337d01aRalf Baechle 56973b4390fb23456964201abda79f1210fe337d01aRalf Baechle# 570b27311e1cace4e296ace786c886d22f7a8ec78d6Atsushi Nemoto# Toshiba RBTX49XX boards 5711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 57222b1d707ffc99faebd86257ad19d5bb9fc624734Atsushi Nemotocore-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/txx9/rbtx4927/ 57322b1d707ffc99faebd86257ad19d5bb9fc624734Atsushi Nemotocore-$(CONFIG_TOSHIBA_RBTX4938) += arch/mips/txx9/rbtx4938/ 574b27311e1cace4e296ace786c886d22f7a8ec78d6Atsushi Nemotocore-$(CONFIG_TOSHIBA_RBTX4939) += arch/mips/txx9/rbtx4939/ 57523fbee9dd5d2a41d36af49ff8e1669fb0c29fda8Ralf Baechle 5761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscflags-y += -Iinclude/asm-mips/mach-generic 5771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsdrivers-$(CONFIG_PCI) += arch/mips/pci/ 5781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 579875d43e72b5bf22161a81de7554f88eccf8a51aeRalf Baechleifdef CONFIG_32BIT 5801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsifdef CONFIG_CPU_LITTLE_ENDIAN 5811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsJIFFIES = jiffies_64 5821da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldselse 5831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsJIFFIES = jiffies_64 + 4 5841da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 5851da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldselse 5861da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsJIFFIES = jiffies_64 5871da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsendif 5881da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 589adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu# 590adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu# Automatically detect the build format. By default we choose 591adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu# the elf format according to the load address. 592adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu# We can always force a build with a 64-bits symbol format by 593054c51b4368648406f487f54b7ed6ba75bbb3f8bFranck Bui-Huu# passing 'KBUILD_SYM32=no' option to the make's command line. 594adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu# 595adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huuifdef CONFIG_64BIT 596054c51b4368648406f487f54b7ed6ba75bbb3f8bFranck Bui-Huu ifndef KBUILD_SYM32 597adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu ifeq ($(shell expr $(load-y) \< 0xffffffff80000000), 0) 598054c51b4368648406f487f54b7ed6ba75bbb3f8bFranck Bui-Huu KBUILD_SYM32 = y 599adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu endif 600adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu endif 601adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu 60220d60d9973c3b441902b0a3f4f6f7e7ade08f77dMaciej W. Rozycki ifeq ($(KBUILD_SYM32)$(call cc-option-yn,-msym32), yy) 60320d60d9973c3b441902b0a3f4f6f7e7ade08f77dMaciej W. Rozycki cflags-y += -msym32 -DKBUILD_64BIT_SYM32 60420d60d9973c3b441902b0a3f4f6f7e7ade08f77dMaciej W. Rozycki else 60520d60d9973c3b441902b0a3f4f6f7e7ade08f77dMaciej W. Rozycki ifeq ($(CONFIG_CPU_DADDI_WORKAROUNDS), y) 60620d60d9973c3b441902b0a3f4f6f7e7ade08f77dMaciej W. Rozycki $(error CONFIG_CPU_DADDI_WORKAROUNDS unsupported without -msym32) 607e58d95abb7b3232333ab35a09f7f5b0cd6a19cdbFranck Bui-Huu endif 608adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu endif 609adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huuendif 610adff90a9333004d5459823665e8bcf6cb9214f79Franck Bui-Huu 611222d394d30e74bb7a2a65029fcea68107b0d0eb6Sam RavnborgKBUILD_AFLAGS += $(cflags-y) 612a0f97e06a43cf524e616f09e6af3398e1e9c1c5bSam RavnborgKBUILD_CFLAGS += $(cflags-y) \ 6139267a30d1dc7dcd7cadb5eb6a5bbfed703feeefaMarc St-Jean -D"VMLINUX_LOAD_ADDRESS=$(load-y)" 6141da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6151da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsLDFLAGS += -m $(ld-emul) 6161da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 61759b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechleifdef CONFIG_MIPS 618a0f97e06a43cf524e616f09e6af3398e1e9c1c5bSam RavnborgCHECKFLAGS += $(shell $(CC) $(KBUILD_CFLAGS) -dM -E -xc /dev/null | \ 61948c35b2d245fffedadce62769aafea8ecf493d19Alexey Dobriyan egrep -vw '__GNUC_(|MINOR_|PATCHLEVEL_)_' | \ 6202a2c3e451965aca35c2d0d1b2db1dbd1d839c75eAtsushi Nemoto sed -e 's/^\#define /-D/' -e "s/ /='/" -e "s/$$/'/") 6212a2c3e451965aca35c2d0d1b2db1dbd1d839c75eAtsushi Nemotoifdef CONFIG_64BIT 6222a2c3e451965aca35c2d0d1b2db1dbd1d839c75eAtsushi NemotoCHECKFLAGS += -m64 6232a2c3e451965aca35c2d0d1b2db1dbd1d839c75eAtsushi Nemotoendif 62459b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechleendif 62559b3e8e9aac69d2d02853acac7e2affdfbabca50Ralf Baechle 6261da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsOBJCOPYFLAGS += --remove-section=.reginfo 6271da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6281da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 6291da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Choosing incompatible machines durings configuration will result in 6301da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# error messages during linking. Select a default linkscript if 6311da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# none has been choosen above. 6321da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 6331da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6341da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsCPPFLAGS_vmlinux.lds := \ 635a0f97e06a43cf524e616f09e6af3398e1e9c1c5bSam Ravnborg $(KBUILD_CFLAGS) \ 6361da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds -D"LOADADDR=$(load-y)" \ 6371da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds -D"JIFFIES=$(JIFFIES)" \ 6381da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds -D"DATAOFFSET=$(if $(dataoffset-y),$(dataoffset-y),0)" 6391da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6401da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldshead-y := arch/mips/kernel/head.o arch/mips/kernel/init_task.o 6411da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6421da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldslibs-y += arch/mips/lib/ 6431da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6441da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldscore-y += arch/mips/kernel/ arch/mips/mm/ arch/mips/math-emu/ 6451da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6461da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsdrivers-$(CONFIG_OPROFILE) += arch/mips/oprofile/ 6471da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6481f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphyifdef CONFIG_LASAT 6491f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphyrom.bin rom.sw: vmlinux 6501f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphy $(Q)$(MAKE) $(build)=arch/mips/lasat/image $@ 6511f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphyendif 6521f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphy 6531da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 6541da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Some machines like the Indy need 32-bit ELF binaries for booting purposes. 6551da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# Other need ECOFF, so we build a 32-bit ELF binary for them which we then 6561da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# convert to ECOFF using elf2ecoff. 6571da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 6581da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvmlinux.32: vmlinux 6591da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds $(OBJCOPY) -O $(32bit-bfd) $(OBJCOPYFLAGS) $< $@ 6601da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6611da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 6621da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# The 64-bit ELF tools are pretty broken so at this time we generate 64-bit 6631da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# ELF files from 32-bit files by conversion. 6641da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds# 6651da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvmlinux.64: vmlinux 6661da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds $(OBJCOPY) -O $(64bit-bfd) $(OBJCOPYFLAGS) $< $@ 6671da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6681da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsmakeboot =$(Q)$(MAKE) $(build)=arch/mips/boot VMLINUX=$(vmlinux-32) $(1) 6691da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6708496b401b03393bf9f03bc913a420cbe7de691d3Ralf Baechleall: $(all-y) 6711da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 672154b500b1981a8053a15cd8e749a955a9bb60006Ralf Baechlevmlinux.bin: $(vmlinux-32) 673154b500b1981a8053a15cd8e749a955a9bb60006Ralf Baechle +@$(call makeboot,$@) 674154b500b1981a8053a15cd8e749a955a9bb60006Ralf Baechle 675b8828d3e0d0fa33ac7f6dbd7c6820d9e0f7be40dYoichi Yuasavmlinux.ecoff: $(vmlinux-32) 6761da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds +@$(call makeboot,$@) 6771da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6781da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsvmlinux.srec: $(vmlinux-32) 6791da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds +@$(call makeboot,$@) 6801da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 6811da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus TorvaldsCLEAN_FILES += vmlinux.ecoff \ 682b8828d3e0d0fa33ac7f6dbd7c6820d9e0f7be40dYoichi Yuasa vmlinux.srec 6831da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 684e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemotoarchprepare: 685e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemotoifdef CONFIG_MIPS32_N32 686e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemoto @echo ' Checking missing-syscalls for N32' 687e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemoto $(Q)$(MAKE) $(build)=. missing-syscalls EXTRA_CFLAGS="-mabi=n32" 688e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemotoendif 689e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemotoifdef CONFIG_MIPS32_O32 690e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemoto @echo ' Checking missing-syscalls for O32' 691e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemoto $(Q)$(MAKE) $(build)=. missing-syscalls EXTRA_CFLAGS="-mabi=32" 692e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemotoendif 693e48ce6b8df5b51af3f38b20bb3d008dff69ff64eAtsushi Nemoto 6941da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvaldsarchclean: 6951da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds @$(MAKE) $(clean)=arch/mips/boot 6961f21d2bde0046e959b53756f74d96dfd040a803bBrian Murphy @$(MAKE) $(clean)=arch/mips/lasat 6971da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds 698e7865765ef85473c1b97aad86d44b80dc260dbbfRalf Baechledefine archhelp 699e7865765ef85473c1b97aad86d44b80dc260dbbfRalf Baechle echo ' vmlinux.ecoff - ECOFF boot image' 700e7865765ef85473c1b97aad86d44b80dc260dbbfRalf Baechle echo ' vmlinux.bin - Raw binary boot image' 701e7865765ef85473c1b97aad86d44b80dc260dbbfRalf Baechle echo ' vmlinux.srec - SREC boot image' 702e7865765ef85473c1b97aad86d44b80dc260dbbfRalf Baechle echo 703e7865765ef85473c1b97aad86d44b80dc260dbbfRalf Baechle echo ' These will be default as apropriate for a configured platform.' 704e7865765ef85473c1b97aad86d44b80dc260dbbfRalf Baechleendef 705e7865765ef85473c1b97aad86d44b80dc260dbbfRalf Baechle 706048eb582f3f89737d4a29668de9935e6feea7c36Sam RavnborgCLEAN_FILES += vmlinux.32 \ 7071da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds vmlinux.64 \ 7081da177e4c3f41524e886b7f1b8a0c1fc7321cacLinus Torvalds vmlinux.ecoff 709