1 # 1 # 2 # This file is subject to the terms and condit 2 # This file is subject to the terms and conditions of the GNU General Public 3 # License. See the file "COPYING" in the main 3 # License. See the file "COPYING" in the main directory of this archive 4 # for more details. 4 # for more details. 5 # 5 # 6 # Copyright (C) 1994, 95, 96, 2003 by Ralf Bae 6 # Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle 7 # DECStation modifications by Paul M. Antoine, 7 # DECStation modifications by Paul M. Antoine, 1996 8 # Copyright (C) 2002, 2003, 2004 Maciej W. Ro !! 8 # Copyright (C) 2002 Maciej W. Rozycki 9 # 9 # 10 # This file is included by the global makefile 10 # This file is included by the global makefile so that you can add your own 11 # architecture-specific flags and dependencies !! 11 # architecture-specific flags and dependencies. Remember to do have actions >> 12 # for "archclean" cleaning up for this architecture. 12 # 13 # 13 14 14 archscripts: scripts_basic << 15 $(Q)$(MAKE) $(build)=arch/mips/tools e << 16 ifeq ($(CONFIG_CPU_LOONGSON3_WORKAROUNDS),y) << 17 $(Q)$(MAKE) $(build)=arch/mips/tools l << 18 endif << 19 $(Q)$(MAKE) $(build)=arch/mips/boot/to << 20 << 21 KBUILD_DEFCONFIG := 32r2el_defconfig << 22 KBUILD_DTBS := dtbs << 23 << 24 # 15 # 25 # Select the object file format to substitute 16 # Select the object file format to substitute into the linker script. 26 # 17 # 27 ifdef CONFIG_CPU_LITTLE_ENDIAN 18 ifdef CONFIG_CPU_LITTLE_ENDIAN 28 32bit-tool-archpref = mipsel !! 19 32bit-tool-prefix = mips64el-linux- 29 64bit-tool-archpref = mips64el !! 20 64bit-tool-prefix = mips64el-linux- 30 32bit-bfd = elf32-tradlittlemips 21 32bit-bfd = elf32-tradlittlemips 31 64bit-bfd = elf64-tradlittlemips 22 64bit-bfd = elf64-tradlittlemips 32 32bit-emul = elf32ltsmip << 33 64bit-emul = elf64ltsmip << 34 else 23 else 35 32bit-tool-archpref = mips !! 24 32bit-tool-prefix = mips64-linux- 36 64bit-tool-archpref = mips64 !! 25 64bit-tool-prefix = mips64-linux- 37 32bit-bfd = elf32-tradbigmips 26 32bit-bfd = elf32-tradbigmips 38 64bit-bfd = elf64-tradbigmips 27 64bit-bfd = elf64-tradbigmips 39 32bit-emul = elf32btsmip << 40 64bit-emul = elf64btsmip << 41 endif << 42 << 43 ifdef CONFIG_32BIT << 44 tool-archpref = $(32bit-tool-archpre << 45 UTS_MACHINE := mips << 46 endif << 47 ifdef CONFIG_64BIT << 48 tool-archpref = $(64bit-tool-archpre << 49 UTS_MACHINE := mips64 << 50 endif << 51 << 52 ifdef cross_compiling << 53 ifeq ($(CROSS_COMPILE),) << 54 CROSS_COMPILE := $(call cc-cross-prefix, $ << 55 endif << 56 endif 28 endif 57 29 58 ifdef CONFIG_FUNCTION_GRAPH_TRACER !! 30 ifdef CONFIG_MIPS32 59 ifndef KBUILD_MCOUNT_RA_ADDRESS !! 31 tool-prefix = $(32bit-tool-prefix) 60 ifeq ($(call cc-option-yn,-mmcount-ra-addr << 61 cflags-y += -mmcount-ra-address -DKBUILD << 62 endif << 63 endif << 64 endif 32 endif 65 cflags-y += $(call cc-option, -mno-check-zero- !! 33 ifdef CONFIG_MIPS64 66 !! 34 tool-prefix = $(64bit-tool-prefix) 67 ifdef CONFIG_32BIT << 68 ld-emul = $(32bit-emul) << 69 vmlinux-32 = vmlinux << 70 vmlinux-64 = vmlinux.64 << 71 << 72 cflags-y += -mabi=32 << 73 endif 35 endif 74 36 75 ifdef CONFIG_64BIT !! 37 ifdef CONFIG_CROSSCOMPILE 76 ld-emul = $(64bit-emul) !! 38 CROSS_COMPILE := $(tool-prefix) 77 vmlinux-32 = vmlinux.32 << 78 vmlinux-64 = vmlinux << 79 << 80 cflags-y += -mabi=64 << 81 endif 39 endif 82 40 83 all-$(CONFIG_BOOT_ELF32) := $(vmlinux-3 << 84 all-$(CONFIG_BOOT_ELF64) := $(vmlinux-6 << 85 all-$(CONFIG_SYS_SUPPORTS_ZBOOT)+= vmlinuz << 86 << 87 # 41 # 88 # GCC uses -G 0 -mabicalls -fpic as default. 42 # GCC uses -G 0 -mabicalls -fpic as default. We don't want PIC in the kernel 89 # code since it only slows down the whole thin 43 # code since it only slows down the whole thing. At some point we might make 90 # use of global pointer optimizations but thei 44 # use of global pointer optimizations but their use of $28 conflicts with 91 # the current pointer optimization. 45 # the current pointer optimization. 92 # 46 # 93 # The DECStation requires an ECOFF kernel for 47 # The DECStation requires an ECOFF kernel for remote booting, other MIPS 94 # machines may also. Since BFD is incredibly 48 # machines may also. Since BFD is incredibly buggy with respect to 95 # crossformat linking we rely on the elf2ecoff 49 # crossformat linking we rely on the elf2ecoff tool for format conversion. 96 # 50 # >> 51 cflags-y := -I $(TOPDIR)/include/asm/gcc 97 cflags-y += -G 0 -mno-a 52 cflags-y += -G 0 -mno-abicalls -fno-pic -pipe 98 cflags-y += -msoft-floa !! 53 cflags-$(CONFIG_MIPS32) += $(call check_gcc, -mabi=32,) 99 LDFLAGS_vmlinux += -G 0 -stati !! 54 cflags-$(CONFIG_MIPS64) += -mabi=64 100 KBUILD_AFLAGS_MODULE += -mlong-call !! 55 LDFLAGS_vmlinux += -G 0 -static # -N 101 KBUILD_CFLAGS_MODULE += -mlong-call !! 56 MODFLAGS += -mlong-calls >> 57 >> 58 cflags-$(CONFIG_KGDB) += -g >> 59 cflags-$(CONFIG_SB1XXX_CORELIS) += -mno-sched-prolog -fno-omit-frame-pointer 102 60 103 ifeq ($(CONFIG_RELOCATABLE),y) !! 61 check_warning = $(shell if $(CC) $(1) -c -o /dev/null -xc /dev/null > /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi) 104 LDFLAGS_vmlinux += --emit-relo !! 62 >> 63 # >> 64 # CPU-dependent compiler/assembler options for optimization. >> 65 # This is done in several steps: >> 66 # >> 67 # - cflags-y contains the options which select for which processor to >> 68 # optimize the code for. The options should not contain any >> 69 # options that change the ISA level but only compiler flags to >> 70 # tune performance of the generated code. >> 71 # - 32bit-isa-y contains the options which select the ISA for 32-bit kernels. >> 72 # A kernel built those options will only work on hardware which >> 73 # actually supports this ISA. >> 74 # - 64bit-isa-y contains the options which select the ISA for 64-bit kernels. >> 75 # A kernel built those options will only work on hardware which >> 76 # actually supports this ISA. >> 77 # >> 78 cflags-$(CONFIG_CPU_R3000) += -mcpu=r3000 >> 79 32bit-isa-$(CONFIG_CPU_R3000) += -mips1 >> 80 64bit-isa-$(CONFIG_CPU_R3000) += -mboom >> 81 cflags-$(CONFIG_CPU_TX39XX) += -mcpu=r3000 >> 82 32bit-isa-$(CONFIG_CPU_TX39XX) += -mips1 >> 83 64bit-isa-$(CONFIG_CPU_TX39XX) += -mboom >> 84 cflags-$(CONFIG_CPU_R6000) += -mcpu=r6000 >> 85 32bit-isa-$(CONFIG_CPU_R6000) += -mips2 -Wa,--trap >> 86 64bit-isa-$(CONFIG_CPU_R6000) += -mboom -Wa,--trap >> 87 cflags-$(CONFIG_CPU_R4300) += -mcpu=r4300 >> 88 32bit-isa-$(CONFIG_CPU_R4300) += -mips2 -Wa,--trap >> 89 64bit-isa-$(CONFIG_CPU_R4300) += -mips3 -Wa,--trap >> 90 cflags-$(CONFIG_CPU_VR41XX) += -mcpu=r4600 >> 91 32bit-isa-$(CONFIG_CPU_VR41XX) += -mips2 -Wa,--trap >> 92 64bit-isa-$(CONFIG_CPU_VR41XX) += -mips3 -Wa,--trap >> 93 cflags-$(CONFIG_CPU_R4X00) += -mcpu=r4600 >> 94 32bit-isa-$(CONFIG_CPU_R4X00) += -mips2 -Wa,--trap >> 95 64bit-isa-$(CONFIG_CPU_R4X00) += -mips3 -Wa,--trap >> 96 cflags-$(CONFIG_CPU_MIPS32) += $(call check_gcc, -mtune=mips32, -mcpu=r4600) >> 97 32bit-isa-$(CONFIG_CPU_MIPS32) += $(call check_gcc, -mips32 -mabi=32, -mips2) -Wa,--trap >> 98 64bit-isa-$(CONFIG_CPU_MIPS32) += -mboom >> 99 cflags-$(CONFIG_CPU_MIPS64) += >> 100 32bit-isa-$(CONFIG_CPU_MIPS64) += $(call check_gcc, -mips32, -mips2) -Wa,--trap >> 101 64bit-isa-$(CONFIG_CPU_MIPS64) += $(call check_gcc, -mips64, -mips4) -Wa,--trap >> 102 cflags-$(CONFIG_CPU_R5000) += -mcpu=r8000 >> 103 32bit-isa-$(CONFIG_CPU_R5000) += -mips2 -Wa,--trap >> 104 64bit-isa-$(CONFIG_CPU_R5000) += -mips4 -Wa,--trap >> 105 cflags-$(CONFIG_CPU_R5432) += -mcpu=r5000 >> 106 32bit-isa-$(CONFIG_CPU_R5432) += -mips1 -Wa,--trap >> 107 64bit-isa-$(CONFIG_CPU_R5432) += -mips3 -Wa,--trap >> 108 cflags-$(CONFIG_CPU_NEVADA) += -mcpu=r8000 -mmad >> 109 32bit-isa-$(CONFIG_CPU_NEVADA) += -mips2 -Wa,--trap >> 110 64bit-isa-$(CONFIG_CPU_NEVADA) += -mips3 -Wa,--trap >> 111 cflags-$(CONFIG_CPU_RM7000) += $(call check_gcc, -mcpu=r7000, -mcpu=r5000) >> 112 32bit-isa-$(CONFIG_CPU_RM7000) += -mips2 -Wa,--trap >> 113 64bit-isa-$(CONFIG_CPU_RM7000) += -mips4 -Wa,--trap >> 114 cflags-$(CONFIG_CPU_SB1) += $(call check_gcc, -mcpu=sb1, -mcpu=r8000) >> 115 32bit-isa-$(CONFIG_CPU_SB1) += $(call check_gcc, -mips32, -mips2) -Wa,--trap >> 116 64bit-isa-$(CONFIG_CPU_SB1) += $(call check_gcc, -mips64, -mips4) -Wa,--trap >> 117 cflags-$(CONFIG_CPU_R8000) += -mcpu=r8000 >> 118 32bit-isa-$(CONFIG_CPU_R8000) += -mips2 -Wa,--trap >> 119 64bit-isa-$(CONFIG_CPU_R8000) += -mips4 -Wa,--trap >> 120 cflags-$(CONFIG_CPU_R10000) += -mcpu=r8000 >> 121 32bit-isa-$(CONFIG_CPU_R10000) += -mips2 -Wa,--trap >> 122 64bit-isa-$(CONFIG_CPU_R10000) += -mips4 -Wa,--trap >> 123 >> 124 ifdef CONFIG_CPU_SB1 >> 125 ifdef CONFIG_SB1_PASS_1_WORKAROUNDS >> 126 MODFLAGS += -msb1-pass1-workarounds >> 127 endif >> 128 endif >> 129 >> 130 # >> 131 # ramdisk/initrd support >> 132 # You need a compressed ramdisk image, named ramdisk.gz in >> 133 # arch/mips/ramdisk >> 134 # >> 135 ifdef CONFIG_EMBEDDED_RAMDISK >> 136 CORE_FILES += arch/mips/ramdisk/ramdisk.o >> 137 SUBDIRS += arch/mips/ramdisk 105 endif 138 endif 106 139 107 cflags-y += -ffreestanding !! 140 # >> 141 # Firmware support >> 142 # >> 143 libs-$(CONFIG_ARC) += arch/mips/arc/ >> 144 libs-$(CONFIG_SIBYTE_CFE) += arch/mips/sibyte/cfe/ >> 145 >> 146 # >> 147 # Board-dependent options and extra files >> 148 # 108 149 109 cflags-$(CONFIG_CPU_BIG_ENDIAN) += -EB !! 150 # 110 cflags-$(CONFIG_CPU_LITTLE_ENDIAN) += -EL !! 151 # Acer PICA 61, Mips Magnum 4000 and Olivetti M700. >> 152 # >> 153 core-$(CONFIG_MIPS_JAZZ) += arch/mips/jazz/ >> 154 load-$(CONFIG_MIPS_JAZZ) += 0x80080000 111 155 112 cflags-$(CONFIG_SB1XXX_CORELIS) += $(call cc-o << 113 -fno-omit-f << 114 156 115 # Some distribution-specific toolchains might << 116 # option during the build, which adds a simple << 117 # of every function. This stack probe is to e << 118 # stack space, else a SEGV is generated. This << 119 # as kernel stacks are small, placed in unmapp << 120 # grow when overflowed. Especially on SGI IP2 << 121 # lead to a NULL pointer dereference in _raw_s << 122 # 157 # 123 # In disassembly, this stack probe appears at !! 158 # Au1500 (Alchemy Semi PB1500) eval board 124 # sd zero,<offset>(sp) << 125 # Where <offset> is a negative value. << 126 # 159 # 127 cflags-y += -fno-stack-check !! 160 core-$(CONFIG_MIPS_PB1500) += arch/mips/au1000/common/ >> 161 libs-$(CONFIG_MIPS_PB1500) += arch/mips/au1000/pb1500/ >> 162 load-$(CONFIG_MIPS_PB1500) += 0x80100000 128 163 129 # binutils from v2.35 when built with --enable << 130 # supports an -mfix-loongson3-llsc flag which << 131 # instruction to work around a CPU bug (see __ << 132 # for a description). << 133 # 164 # 134 # We disable this in order to prevent the asse !! 165 # Baget/MIPS 135 # instruction that labels refer to, ie. if we << 136 # 166 # 137 # 1: ll v0, 0(a0) !! 167 libs-$(CONFIG_BAGET_MIPS) += arch/mips/baget/ arch/mips/baget/prom/ >> 168 load-$(CONFIG_BAGET_MIPS) += 0x80001000 >> 169 138 # 170 # 139 # ...then with the assembler fix applied the l !! 171 # Cobalt Server 140 # instruction inserted by the assembler, and i << 141 # exception table the table would no longer co << 142 # instruction. << 143 # 172 # 144 # Avoid this by explicitly disabling that asse !! 173 core-$(CONFIG_MIPS_COBALT) += arch/mips/cobalt/ >> 174 load-$(CONFIG_MIPS_COBALT) += 0x80080000 >> 175 145 # 176 # 146 cflags-y += $(call cc-option,-Wa$(comma)-mno-f !! 177 # DECstation family >> 178 # >> 179 core-$(CONFIG_DECSTATION) += arch/mips/dec/ >> 180 libs-$(CONFIG_DECSTATION) += arch/mips/dec/prom/ >> 181 load-$(CONFIG_DECSTATION) += 0x80040000 >> 182 CLEAN_FILES += drivers/tc/lk201-map.c 147 183 148 # 184 # 149 # CPU-dependent compiler/assembler options for !! 185 # Galileo EV64120 Board 150 # 186 # 151 cflags-$(CONFIG_CPU_R3000) += $(call cc-o !! 187 core-$(CONFIG_MIPS_EV64120) += arch/mips/galileo-boards/ev64120/ 152 cflags-$(CONFIG_CPU_R4300) += $(call cc-o !! 188 load-$(CONFIG_MIPS_EV64120) += 0x80100000 153 cflags-$(CONFIG_CPU_R4X00) += $(call cc-o << 154 cflags-$(CONFIG_CPU_TX49XX) += $(call cc-o << 155 cflags-$(CONFIG_CPU_MIPS32_R1) += -march=mips << 156 cflags-$(CONFIG_CPU_MIPS32_R2) += -march=mips << 157 cflags-$(CONFIG_CPU_MIPS32_R5) += -march=mips << 158 cflags-$(CONFIG_CPU_MIPS32_R6) += -march=mips << 159 cflags-$(CONFIG_CPU_MIPS64_R1) += -march=mips << 160 cflags-$(CONFIG_CPU_MIPS64_R2) += -march=mips << 161 cflags-$(CONFIG_CPU_MIPS64_R5) += -march=mips << 162 cflags-$(CONFIG_CPU_MIPS64_R6) += -march=mips << 163 cflags-$(CONFIG_CPU_P5600) += $(call cc-o << 164 -Wa,--trap -modd-spreg << 165 cflags-$(CONFIG_CPU_R5000) += $(call cc-o << 166 -Wa,--trap << 167 cflags-$(CONFIG_CPU_R5500) += $(call cc-o << 168 -Wa,--trap << 169 cflags-$(CONFIG_CPU_NEVADA) += $(call cc-o << 170 -Wa,--trap << 171 cflags-$(CONFIG_CPU_RM7000) += $(call cc-o << 172 -Wa,--trap << 173 cflags-$(CONFIG_CPU_SB1) += $(call cc-o << 174 -Wa,--trap << 175 cflags-$(CONFIG_CPU_SB1) += $(call cc-o << 176 cflags-$(CONFIG_CPU_SB1) += $(call cc-o << 177 cflags-$(CONFIG_CPU_R10000) += $(call cc-o << 178 -Wa,--trap << 179 cflags-$(CONFIG_CPU_CAVIUM_OCTEON) += -march=o << 180 cflags-$(CONFIG_CAVIUM_CN63XXP1) += -Wa,-mfix- << 181 cflags-$(CONFIG_CPU_BMIPS) += -march=mips << 182 << 183 cflags-$(CONFIG_CPU_LOONGSON2E) += \ << 184 $(call cc-option,-marc << 185 cflags-$(CONFIG_CPU_LOONGSON2F) += \ << 186 $(call cc-option,-marc << 187 # Some -march= flags enable MMI instructions, << 188 # support being enabled alongside -msoft-float << 189 cflags-$(CONFIG_CPU_LOONGSON2EF) += $(call cc- << 190 cflags-$(CONFIG_CPU_LOONGSON64) += \ << 191 $(call cc-option,-marc << 192 cflags-$(CONFIG_CPU_LOONGSON64) += $(call cc-o << 193 << 194 cflags-$(CONFIG_CPU_R4000_WORKAROUNDS) += $(c << 195 cflags-$(CONFIG_CPU_R4400_WORKAROUNDS) += $(c << 196 cflags-$(CONFIG_CPU_DADDI_WORKAROUNDS) += $(c << 197 ifdef CONFIG_CPU_LOONGSON2F_WORKAROUNDS << 198 cflags-$(CONFIG_CPU_NOP_WORKAROUNDS) += -Wa,-m << 199 cflags-$(CONFIG_CPU_JUMP_WORKAROUNDS) += -Wa,- << 200 endif << 201 << 202 # << 203 # Some versions of binutils, not currently mai << 204 # an -mfix-loongson3-llsc flag which emits a s << 205 # to work around a CPU bug (see __SYNC_loongso << 206 # description). << 207 # << 208 # We disable this in order to prevent the asse << 209 # instruction that labels refer to, ie. if we << 210 # << 211 # 1: ll v0, 0(a0) << 212 # << 213 # ...then with the assembler fix applied the l << 214 # instruction inserted by the assembler, and i << 215 # exception table the table would no longer co << 216 # instruction. << 217 # << 218 # Avoid this by explicitly disabling that asse << 219 # binutils does not merge support for the flag << 220 # this later - for now it ensures vendor toolc << 221 # << 222 cflags-$(CONFIG_CPU_LOONGSON64) += $(call as-o << 223 << 224 # For smartmips configurations, there are hund << 225 # in assembly and header files. smartmips is o << 226 # and there is no support for 64-bit. Various << 227 # similar directives in the kernel will spam t << 228 # Warning: the `smartmips' extension requires << 229 # or << 230 # Warning: the 64-bit MIPS architecture does n << 231 # Pass -Wa,--no-warn to disable all assembler << 232 # been fixed properly. << 233 mips-cflags := $(c << 234 ifeq ($(CONFIG_CPU_HAS_SMARTMIPS),y) << 235 smartmips-ase := $(c << 236 cflags-$(smartmips-ase) += -ms << 237 endif << 238 ifeq ($(CONFIG_CPU_MICROMIPS),y) << 239 micromips-ase := $(c << 240 cflags-$(micromips-ase) += -mm << 241 endif << 242 ifeq ($(CONFIG_CPU_HAS_MSA),y) << 243 toolchain-msa := $(c << 244 cflags-$(toolchain-msa) += -DT << 245 endif << 246 toolchain-virt := $(c << 247 cflags-$(toolchain-virt) += -DT << 248 # For -mmicromips, use -Wa,-fatal-warnings to << 249 # only warns << 250 xpa-cflags-y := $(m << 251 xpa-cflags-$(micromips-ase) += -mm << 252 toolchain-xpa := $(c << 253 cflags-$(toolchain-xpa) += -DT << 254 toolchain-crc := $(c << 255 cflags-$(toolchain-crc) += -DT << 256 toolchain-dsp := $(c << 257 cflags-$(toolchain-dsp) += -DT << 258 toolchain-ginv := $(c << 259 cflags-$(toolchain-ginv) += -DT << 260 189 261 # 190 # 262 # Firmware support !! 191 # Galileo EV96100 Board 263 # 192 # 264 libs-$(CONFIG_FW_ARC) += arch/mips/f !! 193 core-$(CONFIG_MIPS_EV96100) += arch/mips/galileo-boards/generic/ \ 265 libs-$(CONFIG_FW_CFE) += arch/mips/f !! 194 arch/mips/galileo-boards/ev96100/ 266 libs-$(CONFIG_FW_SNIPROM) += arch/mips/f !! 195 load-$(CONFIG_MIPS_EV96100) += 0x80100000 267 libs-y += arch/mips/f << 268 196 269 # 197 # 270 # Kernel compression !! 198 # Globespan IVR eval board with QED 5231 CPU 271 # 199 # 272 ifdef CONFIG_SYS_SUPPORTS_ZBOOT !! 200 core-$(CONFIG_ITE_BOARD_GEN) += arch/mips/ite-boards/generic/ 273 COMPRESSION_FNAME = vmlinuz !! 201 core-$(CONFIG_MIPS_IVR) += arch/mips/ite-boards/ivr/ 274 else !! 202 load-$(CONFIG_MIPS_IVR) += 0x80100000 275 COMPRESSION_FNAME = vmlinux << 276 endif << 277 203 278 # 204 # 279 # Board-dependent options and extra files !! 205 # HP LaserJet 280 # 206 # 281 include $(srctree)/arch/mips/Kbuild.platforms !! 207 core-$(CONFIG_HP_LASERJET) += arch/mips/hp-lj/ >> 208 load-$(CONFIG_HP_LASERJET) += 0x80030000 282 209 283 ifdef CONFIG_PHYSICAL_START !! 210 # 284 load-y = $(CO !! 211 # ITE 8172 eval board with QED 5231 CPU 285 endif !! 212 # >> 213 core-$(CONFIG_MIPS_ITE8172) += arch/mips/ite-boards/qed-4n-s01b/ >> 214 load-$(CONFIG_MIPS_ITE8172) += 0x80100000 286 215 287 entry-y = $(shell $(ob !! 216 # 288 cflags-y += -I$(srctree !! 217 # MIPS Atlas board 289 drivers-$(CONFIG_PCI) += arch/mips/p !! 218 # >> 219 core-$(CONFIG_MIPS_BOARDS_GEN) += arch/mips/mips-boards/generic/ >> 220 core-$(CONFIG_MIPS_ATLAS) += arch/mips/mips-boards/atlas/ >> 221 load-$(CONFIG_MIPS_ATLAS) += 0x80100000 290 222 291 # 223 # 292 # Automatically detect the build format. By de !! 224 # MIPS Malta board 293 # the elf format according to the load address !! 225 # 294 # We can always force a build with a 64-bits s !! 226 core-$(CONFIG_MIPS_MALTA) += arch/mips/mips-boards/malta/ 295 # passing 'KBUILD_SYM32=no' option to the make !! 227 load-$(CONFIG_MIPS_MALTA) += 0x80100000 296 # !! 228 297 ifdef CONFIG_64BIT !! 229 # 298 ifndef KBUILD_SYM32 !! 230 # MIPS SEAD board 299 ifeq ($(shell expr $(load-y) \< 0xffffffff !! 231 # 300 KBUILD_SYM32 = $(call cc-option-yn, -msy !! 232 core-$(CONFIG_MIPS_SEAD) += arch/mips/mips-boards/sead/ 301 endif !! 233 load-$(CONFIG_MIPS_SEAD) += 0x80100000 302 endif !! 234 303 !! 235 # 304 ifeq ($(KBUILD_SYM32), y) !! 236 # Momentum Ocelot board 305 cflags-$(KBUILD_SYM32) += -msym32 -DKBUILD !! 237 # 306 else !! 238 # The Ocelot setup.o must be linked early - it does the ioremap() for the 307 ifeq ($(CONFIG_CPU_DADDI_WORKAROUNDS), y) !! 239 # mips_io_port_base. 308 $(error CONFIG_CPU_DADDI_WORKAROUNDS uns !! 240 # 309 endif !! 241 core-$(CONFIG_MOMENCO_OCELOT) += arch/mips/gt64120/common/ \ 310 endif !! 242 arch/mips/gt64120/momenco_ocelot/ 311 endif !! 243 load-$(CONFIG_MOMENCO_OCELOT) += 0x80100000 312 !! 244 313 # When linking a 32-bit executable the LLVM li !! 245 # 314 # 32-bit load address that has been sign-exten !! 246 # Momentum Ocelot-G board 315 # remove the upper 32 bits then, as it is safe !! 247 # 316 # linkers. !! 248 # The Ocelot-G setup.o must be linked early - it does the ioremap() for the 317 ifdef CONFIG_64BIT !! 249 # mips_io_port_base. 318 load-ld = $(load-y) !! 250 # 319 else !! 251 core-$(CONFIG_MOMENCO_OCELOT_G) += arch/mips/momentum/ocelot_g/ 320 load-ld = $(subst 0xff !! 252 load-$(CONFIG_MOMENCO_OCELOT_G) += 0x80100000 >> 253 >> 254 # >> 255 # Momentum Ocelot-C and -CS boards >> 256 # >> 257 # The Ocelot-C[S] setup.o must be linked early - it does the ioremap() for the >> 258 # mips_io_port_base. >> 259 core-$(CONFIG_MOMENCO_OCELOT_C) += arch/mips/momentum/ocelot_c/ >> 260 load-$(CONFIG_MOMENCO_OCELOT_C) += 0x80100000 >> 261 >> 262 # >> 263 # NEC DDB Vrc-5074 >> 264 # >> 265 core-$(CONFIG_DDB5XXX_COMMON) += arch/mips/ddb5xxx/common/ >> 266 core-$(CONFIG_DDB5074) += arch/mips/ddb5xxx/ddb5074/ >> 267 load-$(CONFIG_DDB5074) += 0x80080000 >> 268 >> 269 # >> 270 # NEC DDB Vrc-5476 >> 271 # >> 272 core-$(CONFIG_DDB5476) += arch/mips/ddb5xxx/ddb5476/ >> 273 load-$(CONFIG_DDB5476) += 0x80080000 >> 274 >> 275 # >> 276 # NEC DDB Vrc-5477 >> 277 # >> 278 core-$(CONFIG_DDB5477) += arch/mips/ddb5xxx/ddb5477/ >> 279 load-$(CONFIG_DDB5477) += 0x80100000 >> 280 >> 281 core-$(CONFIG_LASAT) += arch/mips/lasat/ >> 282 load-$(CONFIG_LASAT) += 0x80000000 >> 283 >> 284 # >> 285 # NEC Osprey (vr4181) board >> 286 # >> 287 core-$(CONFIG_NEC_OSPREY) += arch/mips/vr4181/common/ \ >> 288 arch/mips/vr4181/osprey/ >> 289 load-$(CONFIG_NEC_OSPREY) += 0x80002000 >> 290 >> 291 # >> 292 # NEC Eagle/Hawk (VR4122/VR4131) board >> 293 # >> 294 core-$(CONFIG_VR41XX_COMMON) += arch/mips/vr41xx/common/ >> 295 core-$(CONFIG_NEC_EAGLE) += arch/mips/vr41xx/nec-eagle/ >> 296 load-$(CONFIG_NEC_EAGLE) += 0x80000000 >> 297 >> 298 # >> 299 # ZAO Networks Capcella (VR4131) >> 300 # >> 301 core-$(CONFIG_ZAO_CAPCELLA) += arch/mips/vr41xx/zao-capcella/ >> 302 load-$(CONFIG_ZAO_CAPCELLA) += 0x80000000 >> 303 >> 304 # >> 305 # Victor MP-C303/304 (VR4122) >> 306 # >> 307 core-$(CONFIG_VICTOR_MPC30X) += arch/mips/vr41xx/victor-mpc30x/ >> 308 load-$(CONFIG_VICTOR_MPC30X) += 0x80001000 >> 309 >> 310 # >> 311 # IBM WorkPad z50 (VR4121) >> 312 # >> 313 core-$(CONFIG_IBM_WORKPAD) += arch/mips/vr41xx/ibm-workpad/ >> 314 load-$(CONFIG_IBM_WORKPAD) += 0x80004000 >> 315 >> 316 # >> 317 # CASIO CASSIPEIA E-55/65 (VR4111) >> 318 # >> 319 core-$(CONFIG_CASIO_E55) += arch/mips/vr41xx/casio-e55/ >> 320 load-$(CONFIG_CASIO_E55) += 0x80004000 >> 321 >> 322 # >> 323 # TANBAC TB0226 Mbase (VR4131) >> 324 # >> 325 core-$(CONFIG_TANBAC_TB0226) += arch/mips/vr41xx/tanbac-tb0226/ >> 326 load-$(CONFIG_TANBAC_TB0226) += 0x80000000 >> 327 >> 328 # >> 329 # TANBAC TB0229 VR4131DIMM (VR4131) >> 330 # >> 331 core-$(CONFIG_TANBAC_TB0229) += arch/mips/vr41xx/tanbac-tb0229/ >> 332 load-$(CONFIG_TANBAC_TB0229) += 0x80000000 >> 333 >> 334 # >> 335 # SGI IP22 (Indy/Indigo2) >> 336 # >> 337 # Set the load address to >= 0x88069000 if you want to leave space for symmon, >> 338 # 0x80002000 for production kernels. Note that the value must be aligned to >> 339 # a multiple of the kernel stack size or the handling of the current variable >> 340 # will break so for 64-bit kernels we have to raise the start address by 8kb. >> 341 # >> 342 core-$(CONFIG_SGI_IP22) += arch/mips/sgi-ip22/ >> 343 ifdef CONFIG_MIPS32 >> 344 load-$(CONFIG_SGI_IP22) += 0x88002000 >> 345 endif >> 346 ifdef CONFIG_MIPS64 >> 347 load-$(CONFIG_SGI_IP22) += 0x88004000 321 endif 348 endif 322 349 323 KBUILD_AFLAGS += $(cflags-y) !! 350 # 324 KBUILD_CFLAGS += $(cflags-y) !! 351 # SGI-IP27 (Origin200/2000) 325 KBUILD_CPPFLAGS += -DVMLINUX_LOAD_ADDRESS=$(lo !! 352 # 326 KBUILD_CPPFLAGS += -DDATAOFFSET=$(if $(dataoff !! 353 # Set the load address to >= 0xc000000000300000 if you want to leave space for >> 354 # symmon, 0xc00000000001c000 for production kernels. Note that the value >> 355 # must be 16kb aligned or the handling of the current variable will break. >> 356 # >> 357 ifdef CONFIG_SGI_IP27 >> 358 core-$(CONFIG_SGI_IP27) += arch/mips/sgi-ip27/ >> 359 #load-$(CONFIG_SGI_IP27) += 0xa80000000001c000 >> 360 ifdef CONFIG_MAPPED_KERNEL >> 361 load-$(CONFIG_SGI_IP27) += 0xc001c000 >> 362 else >> 363 load-$(CONFIG_SGI_IP27) += 0x8001c000 >> 364 endif >> 365 endif 327 366 328 bootvars-y = VMLINUX_LOAD_ADDRESS=$(load- !! 367 # 329 LINKER_LOAD_ADDRESS=$(load-l !! 368 # SGI-IP32 (O2) 330 VMLINUX_ENTRY_ADDRESS=$(entr !! 369 # 331 PLATFORM="$(platform-y)" \ !! 370 # Set the load address to >= 0x????????? if you want to leave space for symmon, 332 ITS_INPUTS="$(its-y)" !! 371 # 0x80002000 for production kernels. Note that the value must be aligned to 333 ifdef CONFIG_32BIT !! 372 # a multiple of the kernel stack size or the handling of the current variable 334 bootvars-y += ADDR_BITS=32 !! 373 # will break so for 64-bit kernels we have to raise the start address by 8kb. >> 374 # >> 375 core-$(CONFIG_SGI_IP32) += arch/mips/sgi-ip32/ >> 376 ifdef CONFIG_MIPS32 >> 377 load-$(CONFIG_SGI_IP32) += 0x88002000 335 endif 378 endif 336 ifdef CONFIG_64BIT !! 379 ifdef CONFIG_MIPS64 337 bootvars-y += ADDR_BITS=64 !! 380 load-$(CONFIG_SGI_IP32) += 0x88004000 338 endif 381 endif 339 382 340 # This is required to get dwarf unwinding tabl !! 383 # 341 # instead of .eh_frame so we don't discard the !! 384 # Sibyte SB1250 SOC 342 KBUILD_CFLAGS += -fno-asynchronous-unwind-tabl !! 385 # >> 386 # This is a LIB so that it links at the end, and initcalls are later >> 387 # the sequence; but it is built as an object so that modules don't get >> 388 # removed (as happens, even if they have __initcall/module_init) >> 389 # >> 390 core-$(CONFIG_SIBYTE_BCM112X) += arch/mips/sibyte/sb1250/ >> 391 core-$(CONFIG_SIBYTE_SB1250) += arch/mips/sibyte/sb1250/ 343 392 344 KBUILD_LDFLAGS += -m $(ld-emul) !! 393 # >> 394 # Sibyte BCM91120x (Carmel) board >> 395 # Sibyte BCM91120C (CRhine) board >> 396 # Sibyte BCM91125C (CRhone) board >> 397 # Sibyte BCM91125E (Rhone) board >> 398 # Sibyte SWARM board >> 399 # >> 400 libs-$(CONFIG_SIBYTE_CARMEL) += arch/mips/sibyte/swarm/ >> 401 load-$(CONFIG_SIBYTE_CARMEL) := 0x80100000 >> 402 libs-$(CONFIG_SIBYTE_CRHINE) += arch/mips/sibyte/swarm/ >> 403 load-$(CONFIG_SIBYTE_CRHINE) := 0x80100000 >> 404 libs-$(CONFIG_SIBYTE_CRHONE) += arch/mips/sibyte/swarm/ >> 405 load-$(CONFIG_SIBYTE_CRHONE) := 0x80100000 >> 406 libs-$(CONFIG_SIBYTE_RHONE) += arch/mips/sibyte/swarm/ >> 407 load-$(CONFIG_SIBYTE_RHONE) := 0x80100000 >> 408 libs-$(CONFIG_SIBYTE_SENTOSA) += arch/mips/sibyte/swarm/ >> 409 load-$(CONFIG_SIBYTE_SENTOSA) := 0x80100000 >> 410 libs-$(CONFIG_SIBYTE_SWARM) += arch/mips/sibyte/swarm/ >> 411 load-$(CONFIG_SIBYTE_SWARM) := 0x80100000 345 412 346 ifdef need-compiler !! 413 # 347 CHECKFLAGS += $(shell $(CC) $(KBUILD_CPPFLAGS) !! 414 # SNI RM200 PCI 348 grep -E -vw '__GNUC_(MINOR_|PATCHLEVEL !! 415 # 349 sed -e "s/^\#define /-D'/" -e "s/ /'=' !! 416 core-$(CONFIG_SNI_RM200_PCI) += arch/mips/sni/ 350 endif !! 417 load-$(CONFIG_SNI_RM200_PCI) += 0x80080000 351 418 352 OBJCOPYFLAGS += --remove-section=.r !! 419 # >> 420 # Toshiba JMR-TX3927 board >> 421 # >> 422 core-$(CONFIG_TOSHIBA_JMR3927) += arch/mips/jmr3927/rbhma3100/ \ >> 423 arch/mips/jmr3927/common/ >> 424 load-$(CONFIG_TOSHIBA_JMR3927) += 0x80050000 353 425 354 libs-y += arch/mips/lib/ !! 426 # 355 libs-$(CONFIG_MIPS_FP_SUPPORT) += arch/mips/ma !! 427 # Toshiba RBTX4927 board or >> 428 # Toshiba RBTX4937 board >> 429 # >> 430 core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/toshiba_rbtx4927/ >> 431 core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/common/ >> 432 load-$(CONFIG_TOSHIBA_RBTX4927) += 0x80020000 356 433 357 drivers-y += arch/mips/c !! 434 drivers-$(CONFIG_PCI) += arch/mips/pci/ 358 435 359 # suspend and hibernation support !! 436 ifdef CONFIG_MIPS32 360 drivers-$(CONFIG_PM) += arch/mips/power/ !! 437 build-bfd = $(32bit-bfd) >> 438 cflags-y += $(32bit-isa-y) >> 439 endif >> 440 ifdef CONFIG_MIPS64 >> 441 build-bfd = $(64bit-bfd) >> 442 cflags-y += $(64bit-isa-y) >> 443 endif 361 444 362 # boot image targets (arch/mips/boot/) !! 445 ifdef CONFIG_MIPS32 363 boot-y := vmlinux.bin !! 446 ifdef CONFIG_CPU_LITTLE_ENDIAN 364 boot-y += vmlinux.ecoff !! 447 JIFFIES = jiffies_64 365 boot-y += vmlinux.srec !! 448 else 366 boot-y += uImage !! 449 JIFFIES = jiffies_64 + 4 367 boot-y += uImage.bin !! 450 endif 368 boot-y += uImage.bz2 !! 451 else 369 boot-y += uImage.gz !! 452 JIFFIES = jiffies_64 370 boot-y += uImage.lzma !! 453 endif 371 boot-y += uImage.lzo << 372 boot-y += vmlinux.itb << 373 boot-y += vmlinux.gz.itb << 374 boot-y += vmlinux.bz2.itb << 375 boot-y += vmlinux.lzma.itb << 376 boot-y += vmlinux.lzo.itb << 377 << 378 # compressed boot image targets (arch/mips/boo << 379 bootz-y := vmlinuz << 380 bootz-y += vmlinuz.bin << 381 bootz-y += vmlinuz.ecoff << 382 bootz-y += vmlinuz.srec << 383 bootz-y += uzImage.bin << 384 bootz-y += vmlinuz.itb << 385 454 386 # 455 # 387 # Some machines like the Indy need 32-bit ELF 456 # Some machines like the Indy need 32-bit ELF binaries for booting purposes. 388 # Other need ECOFF, so we build a 32-bit ELF b 457 # Other need ECOFF, so we build a 32-bit ELF binary for them which we then 389 # convert to ECOFF using elf2ecoff. 458 # convert to ECOFF using elf2ecoff. 390 # 459 # 391 quiet_cmd_32 = OBJCOPY $@ << 392 cmd_32 = $(OBJCOPY) -O $(32bit-bfd) $( << 393 vmlinux.32: vmlinux << 394 $(call cmd,32) << 395 << 396 # << 397 # The 64-bit ELF tools are pretty broken so at 460 # The 64-bit ELF tools are pretty broken so at this time we generate 64-bit 398 # ELF files from 32-bit files by conversion. 461 # ELF files from 32-bit files by conversion. 399 # 462 # 400 quiet_cmd_64 = OBJCOPY $@ !! 463 #AS += -64 401 cmd_64 = $(OBJCOPY) -O $(64bit-bfd) $( !! 464 #LDFLAGS += -m elf64bmip 402 vmlinux.64: vmlinux << 403 $(call cmd,64) << 404 << 405 all: $(all-y) $(KBUILD_DTBS) << 406 << 407 # boot << 408 $(boot-y): $(vmlinux-32) FORCE << 409 $(Q)$(MAKE) $(build)=arch/mips/boot VM << 410 $(bootvars-y) arch/mips/boot/$ << 411 << 412 ifdef CONFIG_SYS_SUPPORTS_ZBOOT << 413 # boot/compressed << 414 $(bootz-y): $(vmlinux-32) FORCE << 415 $(Q)$(MAKE) $(build)=arch/mips/boot/co << 416 $(bootvars-y) 32bit-bfd=$(32bi << 417 else << 418 vmlinuz: FORCE << 419 @echo ' CONFIG_SYS_SUPPORTS_ZBOOT is << 420 /bin/false << 421 endif << 422 << 423 << 424 CLEAN_FILES += vmlinux.32 vmlinux.64 << 425 << 426 # device-trees << 427 core-y += arch/mips/boot/dts/ << 428 << 429 archprepare: << 430 ifdef CONFIG_MIPS32_N32 << 431 @$(kecho) ' Checking missing-syscalls << 432 $(Q)$(MAKE) $(build)=. missing-syscall << 433 endif << 434 ifdef CONFIG_MIPS32_O32 << 435 @$(kecho) ' Checking missing-syscalls << 436 $(Q)$(MAKE) $(build)=. missing-syscall << 437 endif << 438 << 439 install: << 440 $(Q)install -D -m 755 vmlinux $(INSTAL << 441 ifdef CONFIG_SYS_SUPPORTS_ZBOOT << 442 $(Q)install -D -m 755 vmlinuz $(INSTAL << 443 endif << 444 $(Q)install -D -m 644 .config $(INSTAL << 445 $(Q)install -D -m 644 System.map $(INS << 446 << 447 archheaders: << 448 $(Q)$(MAKE) $(build)=arch/mips/kernel/ << 449 << 450 define archhelp << 451 echo ' install - install << 452 echo ' vmlinux.ecoff - ECOFF b << 453 echo ' vmlinux.bin - Raw bin << 454 echo ' vmlinux.srec - SREC bo << 455 echo ' vmlinux.32 - 64-bit << 456 echo ' vmlinuz - Compres << 457 echo ' vmlinuz.ecoff - ECOFF z << 458 echo ' vmlinuz.bin - Raw bin << 459 echo ' vmlinuz.srec - SREC zb << 460 echo ' uImage - U-Boot << 461 echo ' uImage.bin - U-Boot << 462 echo ' uImage.bz2 - U-Boot << 463 echo ' uImage.gz - U-Boot << 464 echo ' uImage.lzma - U-Boot << 465 echo ' uImage.lzo - U-Boot << 466 echo ' uzImage.bin - U-Boot << 467 echo << 468 echo ' These will be default as appro << 469 echo << 470 echo ' If you are targeting a system << 471 echo ' configure the kernel for a giv << 472 echo << 473 echo ' {micro32,32,64}{r1,r2,r6}{el,} << 474 echo << 475 echo ' Where BOARDS is some subset of << 476 for board in $(sort $(BOARDS)); do ech << 477 echo << 478 echo ' Specifically the following gen << 479 echo ' supported:' << 480 echo << 481 $(foreach cfg,$(generic_defconfigs), << 482 printf " %-24s - Build generic kern << 483 echo << 484 echo ' The following legacy default c << 485 echo ' generic and can still be used: << 486 echo << 487 $(foreach cfg,$(sort $(legacy_defconfi << 488 printf " %-24s - Build $($(cfg)-y)\ << 489 echo << 490 echo ' Otherwise, the following defau << 491 endef << 492 << 493 generic_config_dir = $(srctree)/arch/$(ARCH)/c << 494 generic_defconfigs := << 495 465 >> 466 ifdef CONFIG_MIPS64 496 # 467 # 497 # If the user generates a generic kernel confi !! 468 # We use an unusual code model for building 64-bit kernels. 64-bit ELF, 498 # list of boards to include the config fragmen !! 469 # squeezed into 32-bit ELF files. Later version of gas throw silly warnings 499 # available board config fragments. !! 470 # which requires the use of -mgp64 which not all gas versions have ... 500 # 471 # 501 ifeq ($(BOARDS),) !! 472 GRRR=-Wa,-mgp64 502 BOARDS = $(patsubst board-%.config,%,$(notdir !! 473 cflags-$(CONFIG_BOOT_ELF32) += -Wa,-32 $(call check_warning, $(GRRR),) >> 474 cflags-$(CONFIG_BOOT_ELF64) += -Wa,-32 $(call check_warning, $(GRRR),) 503 endif 475 endif 504 476 505 # 477 # 506 # Generic kernel configurations which merge ge !! 478 # Choosing incompatible machines durings configuration will result in 507 # appropriate config fragments from arch/mips/ !! 479 # error messages during linking. Select a default linkscript if 508 # the ability to easily configure the kernel f !! 480 # none has been choosen above. 509 # endianness & set of boards without duplicati << 510 # hundreds of defconfig files. << 511 # 481 # 512 define gen_generic_defconfigs << 513 $(foreach bits,$(1),$(foreach rev,$(2),$(forea << 514 target := $(bits)$(rev)$(filter el,$(endian))_ << 515 generic_defconfigs += $$(target) << 516 $$(target): $(generic_config_dir)/$(bits)$(rev << 517 $$(target): $(generic_config_dir)/$(endian).co << 518 ))) << 519 endef << 520 482 521 $(eval $(call gen_generic_defconfigs,32 64,r1 !! 483 AFLAGS_vmlinux.lds.o := \ 522 $(eval $(call gen_generic_defconfigs,micro32,r !! 484 -D"LOADADDR=$(load-y)" \ >> 485 -D"JIFFIES=$(JIFFIES)" \ >> 486 -imacros $(srctree)/include/asm-$(ARCH)/sn/mapped_kernel.h 523 487 524 define describe_generic_defconfig !! 488 AFLAGS += $(cflags-y) 525 $(subst 32r,MIPS32 r,$(subst 64r,MIPS64 r,$(su !! 489 CFLAGS += $(cflags-y) 526 endef << 527 490 528 .PHONY: $(generic_defconfigs) !! 491 LDFLAGS += --oformat $(32bit-bfd) 529 $(generic_defconfigs): << 530 $(Q)$(CONFIG_SHELL) $(srctree)/scripts << 531 -m -O $(objtree) $(srctree)/ar << 532 grep -Ev '^#' << 533 $(Q)cp $(KCONFIG_CONFIG) $(objtree)/.c << 534 $(Q)$(MAKE) -f $(srctree)/Makefile old << 535 KCONFIG_CONFIG=$(objtree)/.con << 536 $(Q)$(CONFIG_SHELL) $(srctree)/arch/$( << 537 $(srctree) $(objtree) $(objtre << 538 "$(origin BOARDS)" $(BOARDS) << 539 $(Q)$(MAKE) -f $(srctree)/Makefile old << 540 492 541 # !! 493 head-y := arch/mips/kernel/head.o arch/mips/kernel/init_task.o 542 # Prevent generic merge_config rules attemptin !! 494 543 # !! 495 libs-y += arch/mips/lib/ 544 $(generic_config_dir)/%.config: ; !! 496 libs-$(CONFIG_MIPS32) += arch/mips/lib-32/ >> 497 libs-$(CONFIG_MIPS64) += arch/mips/lib-64/ >> 498 >> 499 core-y += arch/mips/kernel/ arch/mips/mm/ arch/mips/math-emu/ >> 500 core-$(CONFIG_MIPS32) += arch/mips/mm-32/ >> 501 core-$(CONFIG_MIPS64) += arch/mips/mm-64/ >> 502 >> 503 ifdef CONFIG_BAGET_MIPS >> 504 >> 505 BAGETBOOT = $(MAKE) -C arch/$(ARCH)/baget >> 506 >> 507 balo: vmlinux >> 508 $(BAGETBOOT) balo >> 509 >> 510 endif >> 511 >> 512 ifdef CONFIG_LASAT >> 513 rom.bin rom.sw: vmlinux >> 514 $(call descend,arch/mips/lasat/image,$@) >> 515 endif >> 516 >> 517 ifdef CONFIG_MAPPED_KERNEL >> 518 vmlinux.64: vmlinux >> 519 $(OBJCOPY) -O $(64bit-bfd) --change-addresses=0xbfffffff40000000 $< $@ >> 520 else >> 521 vmlinux.64: vmlinux >> 522 $(OBJCOPY) -O $(64bit-bfd) --change-addresses=0xa7ffffff80000000 $< $@ >> 523 endif >> 524 >> 525 makeboot =$(Q)$(MAKE) -f scripts/Makefile.build obj=arch/mips/boot $(1) 545 526 546 # 527 # 547 # Prevent direct use of generic_defconfig, whi !! 528 # SNI firmware is f*cked in interesting ways ... 548 # basis of the various ISA-specific targets ge << 549 # 529 # 550 .PHONY: generic_defconfig !! 530 ifdef CONFIG_SNI_RM200_PCI 551 generic_defconfig: !! 531 all: vmlinux.rm200 552 $(Q)echo "generic_defconfig is not int !! 532 endif 553 $(Q)echo "used via an ISA-specific tar !! 533 554 $(Q)echo !! 534 vmlinux.ecoff vmlinux.rm200: vmlinux 555 $(Q)for cfg in $(generic_defconfigs); !! 535 +@$(call makeboot,$@) 556 $(Q)echo << 557 $(Q)false << 558 536 >> 537 CLEAN_FILES += vmlinux.ecoff \ >> 538 vmlinux.rm200.tmp \ >> 539 vmlinux.rm200 >> 540 >> 541 archclean: >> 542 @$(MAKE) -f scripts/Makefile.clean obj=arch/mips/boot >> 543 @$(MAKE) -f scripts/Makefile.clean obj=arch/mips/baget >> 544 @$(MAKE) -f scripts/Makefile.clean obj=arch/mips/lasat >> 545 >> 546 # Generate <asm/offset.h 559 # 547 # 560 # Legacy defconfig compatibility - these targe !! 548 # The default rule is suffering from funny problems on MIPS so we using our 561 # now that the boards have been converted to u !! 549 # own ... 562 # wrappers around the generic rules above. << 563 # 550 # 564 legacy_defconfigs += ocelot_defc !! 551 # --------------------------------------------------------------------------- 565 ocelot_defconfig-y := 32r2el_defc << 566 552 567 legacy_defconfigs += sead3_defco !! 553 define filechk_gen-asm-offset.h 568 sead3_defconfig-y := 32r2el_defc !! 554 (set -e; \ >> 555 echo "#ifndef _ASM_OFFSET_H"; \ >> 556 echo "#define _ASM_OFFSET_H"; \ >> 557 echo "/*"; \ >> 558 echo " * DO NOT MODIFY."; \ >> 559 echo " *"; \ >> 560 echo " * This file was generated by arch/$(ARCH)/Makefile"; \ >> 561 echo " *"; \ >> 562 echo " */"; \ >> 563 echo ""; \ >> 564 sed -ne "/^@@@/s///p"; \ >> 565 echo "#endif /* _ASM_OFFSET_H */" ) >> 566 endef 569 567 570 legacy_defconfigs += sead3micro_ !! 568 define filechk_gen-asm-reg.h 571 sead3micro_defconfig-y := micro32r2el !! 569 (set -e; \ >> 570 echo "#ifndef _ASM_REG_H"; \ >> 571 echo "#define _ASM_REG_H"; \ >> 572 echo "/*"; \ >> 573 echo " * DO NOT MODIFY."; \ >> 574 echo " *"; \ >> 575 echo " * This file was generated by arch/$(ARCH)/Makefile"; \ >> 576 echo " *"; \ >> 577 echo " */"; \ >> 578 echo ""; \ >> 579 sed -ne "/^@@@/s///p"; \ >> 580 echo "#endif /* _ASM_REG_H */" ) >> 581 endef 572 582 573 legacy_defconfigs += xilfpga_def !! 583 prepare: include/asm-$(ARCH)/offset.h \ 574 xilfpga_defconfig-y := 32r2el_defc !! 584 include/asm-$(ARCH)/reg.h 575 585 576 legacy_defconfigs += pistachio_d !! 586 arch/$(ARCH)/kernel/offset.s: include/asm include/linux/version.h \ 577 pistachio_defconfig-y := 32r2el_defc !! 587 include/config/MARKER 578 588 579 .PHONY: $(legacy_defconfigs) !! 589 include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.s 580 $(legacy_defconfigs): !! 590 $(call filechk,gen-asm-offset.h) 581 $(Q)$(MAKE) -f $(srctree)/Makefile $($ !! 591 include/asm-$(ARCH)/reg.h: arch/$(ARCH)/kernel/reg.s >> 592 $(call filechk,gen-asm-reg.h) >> 593 >> 594 CLEAN_FILES += include/asm-$(ARCH)/offset.h.tmp \ >> 595 include/asm-$(ARCH)/offset.h \ >> 596 include/asm-$(ARCH)/reg.h.tmp \ >> 597 include/asm-$(ARCH)/reg.h
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.