~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/powerpc/Makefile

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/powerpc/Makefile (Version linux-6.12-rc7) and /arch/mips/Makefile (Version linux-2.6.0)


  1 # This file is included by the global makefile << 
  2 # architecture-specific flags and dependencies << 
  3 #                                                   1 #
  4 # This file is subject to the terms and condit      2 # This file is subject to the terms and conditions of the GNU General Public
  5 # License.  See the file "COPYING" in the main      3 # License.  See the file "COPYING" in the main directory of this archive
  6 # for more details.                                 4 # for more details.
  7 #                                                   5 #
  8 # Copyright (C) 1994 by Linus Torvalds         !!   6 # Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle
  9 # Changes for PPC by Gary Thomas               !!   7 # DECStation modifications by Paul M. Antoine, 1996
 10 # Rewritten by Cort Dougan and Paul Mackerras  !!   8 # Copyright (C) 2002  Maciej W. Rozycki
                                                   >>   9 #
                                                   >>  10 # This file is included by the global makefile so that you can add your own
                                                   >>  11 # architecture-specific flags and dependencies. Remember to do have actions
                                                   >>  12 # for "archclean" cleaning up for this architecture.
 11 #                                                  13 #
 12                                                    14 
 13 ifdef cross_compiling                          !!  15 #
 14   ifeq ($(CROSS_COMPILE),)                     !!  16 # Select the object file format to substitute into the linker script.
 15     # Auto detect cross compiler prefix.       !!  17 #
 16     # Look for: (powerpc(64(le)?)?)(-unknown)? !!  18 ifdef CONFIG_CPU_LITTLE_ENDIAN
 17     CC_ARCHES := powerpc powerpc64 powerpc64le !!  19 32bit-tool-prefix       = mips64el-linux-
 18     CC_SUFFIXES := linux linux-gnu unknown-lin !!  20 64bit-tool-prefix       = mips64el-linux-
 19     CROSS_COMPILE := $(call cc-cross-prefix, $ !!  21 32bit-bfd               = elf32-tradlittlemips
 20                        $(foreach s,$(CC_SUFFIX !!  22 64bit-bfd               = elf64-tradlittlemips
 21   endif                                        !!  23 else
                                                   >>  24 32bit-tool-prefix       = mips64-linux-
                                                   >>  25 64bit-tool-prefix       = mips64-linux-
                                                   >>  26 32bit-bfd               = elf32-tradbigmips
                                                   >>  27 64bit-bfd               = elf64-tradbigmips
 22 endif                                              28 endif
 23                                                    29 
 24 HAS_BIARCH      := $(call cc-option-yn, -m32)  !!  30 ifdef CONFIG_MIPS32
                                                   >>  31 tool-prefix             = $(32bit-tool-prefix)
                                                   >>  32 endif
                                                   >>  33 ifdef CONFIG_MIPS64
                                                   >>  34 tool-prefix             = $(64bit-tool-prefix)
                                                   >>  35 endif
 25                                                    36 
 26 # Set default 32 bits cross compilers for vdso !!  37 ifdef CONFIG_CROSSCOMPILE
 27 CROSS32_COMPILE ?=                             !!  38 CROSS_COMPILE           := $(tool-prefix)
                                                   >>  39 endif
 28                                                    40 
 29 # If we're on a ppc/ppc64/ppc64le machine use  !!  41 #
 30 # ppc64le_defconfig because we have nothing be !!  42 # GCC uses -G 0 -mabicalls -fpic as default.  We don't want PIC in the kernel
 31 uname := $(shell uname -m)                     !!  43 # code since it only slows down the whole thing.  At some point we might make
 32 KBUILD_DEFCONFIG := $(if $(filter ppc%,$(uname !!  44 # use of global pointer optimizations but their use of $28 conflicts with
                                                   >>  45 # the current pointer optimization.
                                                   >>  46 #
                                                   >>  47 # The DECStation requires an ECOFF kernel for remote booting, other MIPS
                                                   >>  48 # machines may also.  Since BFD is incredibly buggy with respect to
                                                   >>  49 # crossformat linking we rely on the elf2ecoff tool for format conversion.
                                                   >>  50 #
                                                   >>  51 cflags-y                        := -I $(TOPDIR)/include/asm/gcc
                                                   >>  52 cflags-y                        += -G 0 -mno-abicalls -fno-pic -pipe
                                                   >>  53 cflags-$(CONFIG_MIPS32)         += $(call check_gcc, -mabi=32,)
                                                   >>  54 cflags-$(CONFIG_MIPS64)         += -mabi=64
                                                   >>  55 LDFLAGS_vmlinux                 += -G 0 -static # -N
                                                   >>  56 MODFLAGS                        += -mlong-calls
 33                                                    57 
 34 new_nm := $(shell if $(NM) --help 2>&1 | grep  !!  58 cflags-$(CONFIG_KGDB)           += -g
                                                   >>  59 cflags-$(CONFIG_SB1XXX_CORELIS) += -mno-sched-prolog -fno-omit-frame-pointer
 35                                                    60 
 36 ifeq ($(new_nm),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)
 37 NM              := $(NM) --synthetic           << 
 38 endif                                          << 
 39                                                    62 
 40 # BITS is used as extension for files which ar !!  63 #
 41 # and a 64 bit version to simplify shared Make !!  64 # CPU-dependent compiler/assembler options for optimization.
 42 # e.g.: obj-y += foo_$(BITS).o                 !!  65 # This is done in several steps:
 43 export BITS                                    !!  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
 44                                                   129 
 45 ifdef CONFIG_PPC64                             !! 130 #
 46         BITS := 64                             !! 131 # ramdisk/initrd support
 47 else                                           !! 132 # You need a compressed ramdisk image, named ramdisk.gz in
 48         BITS := 32                             !! 133 # arch/mips/ramdisk
                                                   >> 134 #
                                                   >> 135 ifdef CONFIG_EMBEDDED_RAMDISK
                                                   >> 136 CORE_FILES      += arch/mips/ramdisk/ramdisk.o
                                                   >> 137 SUBDIRS         += arch/mips/ramdisk
 49 endif                                             138 endif
 50                                                   139 
 51 machine-y = ppc                                !! 140 #
 52 machine-$(CONFIG_PPC64) += 64                  !! 141 # Firmware support
 53 machine-$(CONFIG_CPU_LITTLE_ENDIAN) += le      !! 142 #
 54 UTS_MACHINE := $(subst $(space),,$(machine-y)) !! 143 libs-$(CONFIG_ARC)              += arch/mips/arc/
 55                                                !! 144 libs-$(CONFIG_SIBYTE_CFE)       += arch/mips/sibyte/cfe/
 56 ifeq ($(CONFIG_PPC64)$(CONFIG_LD_IS_BFD),yy)   !! 145 
 57 # Have the linker provide sfpr if possible.    !! 146 #
 58 # There is a corresponding test in arch/powerp !! 147 # Board-dependent options and extra files
 59 KBUILD_LDFLAGS_MODULE += --save-restore-funcs  !! 148 #
 60 else                                           !! 149 
 61 KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crts !! 150 #
                                                   >> 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
                                                   >> 155 
                                                   >> 156 
                                                   >> 157 #
                                                   >> 158 # Au1500 (Alchemy Semi PB1500) eval board
                                                   >> 159 #
                                                   >> 160 core-$(CONFIG_MIPS_PB1500)      += arch/mips/au1000/common/
                                                   >> 161 libs-$(CONFIG_MIPS_PB1500)      += arch/mips/au1000/pb1500/
                                                   >> 162 load-$(CONFIG_MIPS_PB1500)      += 0x80100000
                                                   >> 163 
                                                   >> 164 #
                                                   >> 165 # Baget/MIPS
                                                   >> 166 #
                                                   >> 167 libs-$(CONFIG_BAGET_MIPS)       += arch/mips/baget/ arch/mips/baget/prom/
                                                   >> 168 load-$(CONFIG_BAGET_MIPS)       += 0x80001000
                                                   >> 169 
                                                   >> 170 #
                                                   >> 171 # Cobalt Server
                                                   >> 172 #
                                                   >> 173 core-$(CONFIG_MIPS_COBALT)      += arch/mips/cobalt/
                                                   >> 174 load-$(CONFIG_MIPS_COBALT)      += 0x80080000
                                                   >> 175 
                                                   >> 176 #
                                                   >> 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
                                                   >> 183 
                                                   >> 184 #
                                                   >> 185 # Galileo EV64120 Board
                                                   >> 186 #
                                                   >> 187 core-$(CONFIG_MIPS_EV64120)     += arch/mips/galileo-boards/ev64120/
                                                   >> 188 load-$(CONFIG_MIPS_EV64120)     += 0x80100000
                                                   >> 189 
                                                   >> 190 #
                                                   >> 191 # Galileo EV96100 Board
                                                   >> 192 #
                                                   >> 193 core-$(CONFIG_MIPS_EV96100)     += arch/mips/galileo-boards/generic/ \
                                                   >> 194                                    arch/mips/galileo-boards/ev96100/
                                                   >> 195 load-$(CONFIG_MIPS_EV96100)     += 0x80100000
                                                   >> 196 
                                                   >> 197 #
                                                   >> 198 # Globespan IVR eval board with QED 5231 CPU
                                                   >> 199 #
                                                   >> 200 core-$(CONFIG_ITE_BOARD_GEN)    += arch/mips/ite-boards/generic/
                                                   >> 201 core-$(CONFIG_MIPS_IVR)         += arch/mips/ite-boards/ivr/
                                                   >> 202 load-$(CONFIG_MIPS_IVR)         += 0x80100000
                                                   >> 203 
                                                   >> 204 #
                                                   >> 205 # HP LaserJet
                                                   >> 206 #
                                                   >> 207 core-$(CONFIG_HP_LASERJET)      += arch/mips/hp-lj/
                                                   >> 208 load-$(CONFIG_HP_LASERJET)      += 0x80030000
                                                   >> 209 
                                                   >> 210 #
                                                   >> 211 # ITE 8172 eval board with QED 5231 CPU
                                                   >> 212 #
                                                   >> 213 core-$(CONFIG_MIPS_ITE8172)     += arch/mips/ite-boards/qed-4n-s01b/
                                                   >> 214 load-$(CONFIG_MIPS_ITE8172)     += 0x80100000
                                                   >> 215 
                                                   >> 216 #
                                                   >> 217 # MIPS Atlas board
                                                   >> 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
                                                   >> 222 
                                                   >> 223 #
                                                   >> 224 # MIPS Malta board
                                                   >> 225 #
                                                   >> 226 core-$(CONFIG_MIPS_MALTA)       += arch/mips/mips-boards/malta/
                                                   >> 227 load-$(CONFIG_MIPS_MALTA)       += 0x80100000
                                                   >> 228 
                                                   >> 229 #
                                                   >> 230 # MIPS SEAD board
                                                   >> 231 #
                                                   >> 232 core-$(CONFIG_MIPS_SEAD)        += arch/mips/mips-boards/sead/
                                                   >> 233 load-$(CONFIG_MIPS_SEAD)        += 0x80100000
                                                   >> 234 
                                                   >> 235 #
                                                   >> 236 # Momentum Ocelot board
                                                   >> 237 #
                                                   >> 238 # The Ocelot setup.o must be linked early - it does the ioremap() for the
                                                   >> 239 # mips_io_port_base.
                                                   >> 240 #
                                                   >> 241 core-$(CONFIG_MOMENCO_OCELOT)   += arch/mips/gt64120/common/ \
                                                   >> 242                                    arch/mips/gt64120/momenco_ocelot/
                                                   >> 243 load-$(CONFIG_MOMENCO_OCELOT)   += 0x80100000
                                                   >> 244 
                                                   >> 245 #
                                                   >> 246 # Momentum Ocelot-G board
                                                   >> 247 #
                                                   >> 248 # The Ocelot-G setup.o must be linked early - it does the ioremap() for the
                                                   >> 249 # mips_io_port_base.
                                                   >> 250 #
                                                   >> 251 core-$(CONFIG_MOMENCO_OCELOT_G) += arch/mips/momentum/ocelot_g/
                                                   >> 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
 62 endif                                             348 endif
 63                                                   349 
 64 ifdef CONFIG_CPU_LITTLE_ENDIAN                 !! 350 #
 65 KBUILD_CFLAGS   += -mlittle-endian             !! 351 # SGI-IP27 (Origin200/2000)
 66 KBUILD_LDFLAGS  += -EL                         !! 352 #
 67 LDEMULATION     := lppc                        !! 353 # Set the load address to >= 0xc000000000300000 if you want to leave space for
 68 GNUTARGET       := powerpcle                   !! 354 # symmon, 0xc00000000001c000 for production kernels.  Note that the value
 69 MULTIPLEWORD    := -mno-multiple               !! 355 # must be 16kb aligned or the handling of the current variable will break.
 70 KBUILD_CFLAGS_MODULE += $(call cc-option,-mno- !! 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
 71 else                                              362 else
 72 KBUILD_CFLAGS += $(call cc-option,-mbig-endian !! 363 load-$(CONFIG_SGI_IP27)         += 0x8001c000
 73 KBUILD_LDFLAGS  += -EB                         !! 364 endif
 74 LDEMULATION     := ppc                         << 
 75 GNUTARGET       := powerpc                     << 
 76 MULTIPLEWORD    := -mmultiple                  << 
 77 endif                                             365 endif
 78                                                   366 
 79 ifdef CONFIG_PPC64                             !! 367 #
 80 ifndef CONFIG_CC_IS_CLANG                      !! 368 # SGI-IP32 (O2)
 81 cflags-$(CONFIG_PPC64_ELF_ABI_V1)       += $(c !! 369 #
 82 cflags-$(CONFIG_PPC64_ELF_ABI_V1)       += $(c !! 370 # Set the load address to >= 0x????????? if you want to leave space for symmon,
 83 aflags-$(CONFIG_PPC64_ELF_ABI_V1)       += $(c !! 371 # 0x80002000 for production kernels.  Note that the value must be aligned to
 84 aflags-$(CONFIG_PPC64_ELF_ABI_V2)       += -ma !! 372 # a multiple of the kernel stack size or the handling of the current variable
                                                   >> 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
 85 endif                                             378 endif
                                                   >> 379 ifdef CONFIG_MIPS64
                                                   >> 380 load-$(CONFIG_SGI_IP32)         += 0x88004000
 86 endif                                             381 endif
 87                                                   382 
 88 ifndef CONFIG_CC_IS_CLANG                      !! 383 #
 89   cflags-$(CONFIG_CPU_LITTLE_ENDIAN)    += -mn !! 384 # Sibyte SB1250 SOC
 90 endif                                          !! 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/
 91                                                   392 
 92 cflags-$(CONFIG_CPU_BIG_ENDIAN)         += $(c !! 393 #
 93 cflags-$(CONFIG_CPU_LITTLE_ENDIAN)      += -ml !! 394 # Sibyte BCM91120x (Carmel) board
 94 aflags-$(CONFIG_CPU_BIG_ENDIAN)         += $(c !! 395 # Sibyte BCM91120C (CRhine) board
 95 aflags-$(CONFIG_CPU_LITTLE_ENDIAN)      += -ml !! 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
 96                                                   412 
 97 ifeq ($(HAS_BIARCH),y)                         !! 413 #
 98 KBUILD_CFLAGS   += -m$(BITS)                   !! 414 # SNI RM200 PCI
 99 KBUILD_AFLAGS   += -m$(BITS)                   !! 415 #
100 KBUILD_LDFLAGS  += -m elf$(BITS)$(LDEMULATION) !! 416 core-$(CONFIG_SNI_RM200_PCI)    += arch/mips/sni/
101 endif                                          !! 417 load-$(CONFIG_SNI_RM200_PCI)    += 0x80080000
102                                                   418 
103 cflags-$(CONFIG_STACKPROTECTOR) += -mstack-pro !! 419 #
104 ifdef CONFIG_PPC64                             !! 420 # Toshiba JMR-TX3927 board
105 cflags-$(CONFIG_STACKPROTECTOR) += -mstack-pro !! 421 #
106 else                                           !! 422 core-$(CONFIG_TOSHIBA_JMR3927)  += arch/mips/jmr3927/rbhma3100/ \
107 cflags-$(CONFIG_STACKPROTECTOR) += -mstack-pro !! 423                                    arch/mips/jmr3927/common/
108 endif                                          !! 424 load-$(CONFIG_TOSHIBA_JMR3927)  += 0x80050000
109                                                   425 
110 LDFLAGS_vmlinux-y := -Bstatic                  !! 426 #
111 LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) := -pie  !! 427 # Toshiba RBTX4927 board or
112 LDFLAGS_vmlinux-$(CONFIG_RELOCATABLE) += -z no !! 428 # Toshiba RBTX4937 board
113 LDFLAGS_vmlinux := $(LDFLAGS_vmlinux-y)        !! 429 #
114                                                !! 430 core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/toshiba_rbtx4927/
115 ifdef CONFIG_PPC64                             !! 431 core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/common/
116 ifndef CONFIG_PPC_KERNEL_PCREL                 !! 432 load-$(CONFIG_TOSHIBA_RBTX4927) += 0x80020000
117         # -mcmodel=medium breaks modules becau !! 433 
118         # the TOC pointer to create pointers w !! 434 drivers-$(CONFIG_PCI)           += arch/mips/pci/
119         # percpu data area are created by this !! 435 
120         #                                      !! 436 ifdef CONFIG_MIPS32
121         # The kernel module loader relocates t !! 437 build-bfd               = $(32bit-bfd)
122         # original location (starting with 0xd !! 438 cflags-y                += $(32bit-isa-y)
123         # kernel percpu data space (starting w << 
124         # 64bit relocation for this to work, h << 
125         KBUILD_CFLAGS_MODULE += -mcmodel=large << 
126 endif                                             439 endif
                                                   >> 440 ifdef CONFIG_MIPS64
                                                   >> 441 build-bfd               = $(64bit-bfd)
                                                   >> 442 cflags-y                += $(64bit-isa-y)
127 endif                                             443 endif
128                                                   444 
129 CFLAGS-$(CONFIG_PPC64)  := $(call cc-option,-m !! 445 ifdef CONFIG_MIPS32
130 ifdef CONFIG_PPC64_ELF_ABI_V2                  !! 446 ifdef CONFIG_CPU_LITTLE_ENDIAN
131 CFLAGS-$(CONFIG_PPC64)  += $(call cc-option,-m !! 447 JIFFIES                 = jiffies_64
132 else                                              448 else
133 ifndef CONFIG_CC_IS_CLANG                      !! 449 JIFFIES                 = jiffies_64 + 4
134 CFLAGS-$(CONFIG_PPC64)  += $(call cc-option,-m << 
135 CFLAGS-$(CONFIG_PPC64)  += $(call cc-option,-m << 
136 endif                                             450 endif
                                                   >> 451 else
                                                   >> 452 JIFFIES                 = jiffies_64
137 endif                                             453 endif
138 CFLAGS-$(CONFIG_PPC64)  += -mcmodel=medium     << 
139 CFLAGS-$(CONFIG_PPC64)  += $(call cc-option,-m << 
140 CFLAGS-$(CONFIG_PPC64)  += $(call cc-option,-m << 
141                                                   454 
142 # Clang unconditionally reserves r2 on ppc32 a !! 455 #
143 # https://llvm.org/pr39555                     !! 456 # Some machines like the Indy need 32-bit ELF binaries for booting purposes.
144 CFLAGS-$(CONFIG_PPC32)  := $(call cc-option, - !! 457 # Other need ECOFF, so we build a 32-bit ELF binary for them which we then
                                                   >> 458 # convert to ECOFF using elf2ecoff.
                                                   >> 459 #
                                                   >> 460 # The 64-bit ELF tools are pretty broken so at this time we generate 64-bit
                                                   >> 461 # ELF files from 32-bit files by conversion.
                                                   >> 462 #
                                                   >> 463 #AS += -64
                                                   >> 464 #LDFLAGS += -m elf64bmip
145                                                   465 
146 # Clang doesn't support -mmultiple / -mno-mult !! 466 ifdef CONFIG_MIPS64
147 # https://llvm.org/pr39556                     !! 467 #
148 CFLAGS-$(CONFIG_PPC32)  += $(call cc-option, $ !! 468 # We use an unusual code model for building 64-bit kernels.  64-bit ELF,
                                                   >> 469 # squeezed into 32-bit ELF files.  Later version of gas throw silly warnings
                                                   >> 470 # which requires the use of -mgp64 which not all gas versions have ...
                                                   >> 471 #
                                                   >> 472 GRRR=-Wa,-mgp64
                                                   >> 473 cflags-$(CONFIG_BOOT_ELF32)     += -Wa,-32 $(call check_warning, $(GRRR),)
                                                   >> 474 cflags-$(CONFIG_BOOT_ELF64)     += -Wa,-32 $(call check_warning, $(GRRR),)
                                                   >> 475 endif
149                                                   476 
150 CFLAGS-$(CONFIG_PPC32)  += $(call cc-option,-m !! 477 #
                                                   >> 478 # Choosing incompatible machines durings configuration will result in
                                                   >> 479 # error messages during linking.  Select a default linkscript if
                                                   >> 480 # none has been choosen above.
                                                   >> 481 #
151                                                   482 
152 CC_FLAGS_FPU            := $(call cc-option,-m !! 483 AFLAGS_vmlinux.lds.o := \
153 CC_FLAGS_NO_FPU         := $(call cc-option,-m !! 484         -D"LOADADDR=$(load-y)" \
                                                   >> 485         -D"JIFFIES=$(JIFFIES)" \
                                                   >> 486         -imacros $(srctree)/include/asm-$(ARCH)/sn/mapped_kernel.h
154                                                   487 
155 ifdef CONFIG_FUNCTION_TRACER                   !! 488 AFLAGS          += $(cflags-y)
156 ifdef CONFIG_ARCH_USING_PATCHABLE_FUNCTION_ENT !! 489 CFLAGS          += $(cflags-y)
157 KBUILD_CPPFLAGS += -DCC_USING_PATCHABLE_FUNCTI << 
158 CC_FLAGS_FTRACE := -fpatchable-function-entry= << 
159 else                                           << 
160 CC_FLAGS_FTRACE := -pg                         << 
161 ifdef CONFIG_MPROFILE_KERNEL                   << 
162 CC_FLAGS_FTRACE += -mprofile-kernel            << 
163 endif                                          << 
164 endif                                          << 
165 endif                                          << 
166                                                   490 
167 CFLAGS-$(CONFIG_TARGET_CPU_BOOL) += -mcpu=$(CO !! 491 LDFLAGS                 += --oformat $(32bit-bfd)
168 AFLAGS-$(CONFIG_TARGET_CPU_BOOL) += -mcpu=$(CO << 
169                                                   492 
170 CFLAGS-y += $(CONFIG_TUNE_CPU)                 !! 493 head-y := arch/mips/kernel/head.o arch/mips/kernel/init_task.o
171                                                   494 
172 asinstr := $(call as-instr,lis 9$(comma)foo@hi !! 495 libs-y                  += arch/mips/lib/
                                                   >> 496 libs-$(CONFIG_MIPS32)   += arch/mips/lib-32/
                                                   >> 497 libs-$(CONFIG_MIPS64)   += arch/mips/lib-64/
173                                                   498 
174 KBUILD_CPPFLAGS += -I $(srctree)/arch/powerpc  !! 499 core-y                  += arch/mips/kernel/ arch/mips/mm/ arch/mips/math-emu/
175 KBUILD_AFLAGS   += $(AFLAGS-y)                 !! 500 core-$(CONFIG_MIPS32)   += arch/mips/mm-32/
176 KBUILD_CFLAGS   += $(CC_FLAGS_NO_FPU)          !! 501 core-$(CONFIG_MIPS64)   += arch/mips/mm-64/
177 KBUILD_CFLAGS   += $(CFLAGS-y)                 !! 502 
178 CPP             = $(CC) -E $(KBUILD_CFLAGS)    !! 503 ifdef CONFIG_BAGET_MIPS
                                                   >> 504 
                                                   >> 505 BAGETBOOT = $(MAKE) -C arch/$(ARCH)/baget
                                                   >> 506 
                                                   >> 507 balo: vmlinux
                                                   >> 508         $(BAGETBOOT) balo
179                                                   509 
180 CHECKFLAGS      += -m$(BITS) -D__powerpc__ -D_ << 
181 ifdef CONFIG_CPU_BIG_ENDIAN                    << 
182 CHECKFLAGS      += -D__BIG_ENDIAN__            << 
183 else                                           << 
184 CHECKFLAGS      += -D__LITTLE_ENDIAN__         << 
185 endif                                             510 endif
186                                                   511 
187 ifdef CONFIG_476FPE_ERR46                      !! 512 ifdef CONFIG_LASAT
188         KBUILD_LDFLAGS_MODULE += --ppc476-work !! 513 rom.bin rom.sw: vmlinux
189                 -T $(srctree)/arch/powerpc/pla !! 514         $(call descend,arch/mips/lasat/image,$@)
190 endif                                             515 endif
191                                                   516 
192 # No prefix or pcrel                           !! 517 ifdef CONFIG_MAPPED_KERNEL
193 ifdef CONFIG_PPC_KERNEL_PREFIXED               !! 518 vmlinux.64: vmlinux
194 KBUILD_CFLAGS += $(call cc-option,-mprefixed)  !! 519         $(OBJCOPY) -O $(64bit-bfd) --change-addresses=0xbfffffff40000000 $< $@
195 else                                              520 else
196 KBUILD_CFLAGS += $(call cc-option,-mno-prefixe !! 521 vmlinux.64: vmlinux
                                                   >> 522         $(OBJCOPY) -O $(64bit-bfd) --change-addresses=0xa7ffffff80000000 $< $@
197 endif                                             523 endif
198 ifdef CONFIG_PPC_KERNEL_PCREL                  !! 524 
199 KBUILD_CFLAGS += $(call cc-option,-mpcrel)     !! 525 makeboot =$(Q)$(MAKE) -f scripts/Makefile.build obj=arch/mips/boot $(1)
200 else                                           !! 526 
201 KBUILD_CFLAGS += $(call cc-option,-mno-pcrel)  !! 527 #
                                                   >> 528 # SNI firmware is f*cked in interesting ways ...
                                                   >> 529 #
                                                   >> 530 ifdef CONFIG_SNI_RM200_PCI
                                                   >> 531 all:    vmlinux.rm200
202 endif                                             532 endif
203                                                   533 
204 # No AltiVec or VSX or MMA instructions when b !! 534 vmlinux.ecoff vmlinux.rm200: vmlinux
205 KBUILD_CFLAGS += $(call cc-option,-mno-altivec !! 535         +@$(call makeboot,$@)
206 KBUILD_CFLAGS += $(call cc-option,-mno-vsx)    !! 536 
207 KBUILD_CFLAGS += $(call cc-option,-mno-mma)    !! 537 CLEAN_FILES += vmlinux.ecoff \
208                                                !! 538                vmlinux.rm200.tmp \
209 # No SPE instruction when building kernel      !! 539                vmlinux.rm200
210 # (We use all available options to help semi-b !! 540 
211 KBUILD_CFLAGS += $(call cc-option,-mno-spe)    !! 541 archclean:
212 KBUILD_CFLAGS += $(call cc-option,-mspe=no)    !! 542         @$(MAKE) -f scripts/Makefile.clean obj=arch/mips/boot
213                                                !! 543         @$(MAKE) -f scripts/Makefile.clean obj=arch/mips/baget
214 # Don't emit .eh_frame since we have no use fo !! 544         @$(MAKE) -f scripts/Makefile.clean obj=arch/mips/lasat
215 KBUILD_CFLAGS += -fno-asynchronous-unwind-tabl !! 545 
216                                                !! 546 # Generate <asm/offset.h 
217 # Never use string load/store instructions as  !! 547 #
218 # often slow when they are implemented at all  !! 548 # The default rule is suffering from funny problems on MIPS so we using our
219 KBUILD_CFLAGS           += $(call cc-option,-m !! 549 # own ...
220                                                !! 550 #
221 KBUILD_AFLAGS += $(aflags-y)                   !! 551 # ---------------------------------------------------------------------------
222 KBUILD_CFLAGS += $(cflags-y)                   !! 552 
223                                                !! 553 define filechk_gen-asm-offset.h
224 # Default to zImage, override when needed      !! 554         (set -e; \
225 all: zImage                                    !! 555          echo "#ifndef _ASM_OFFSET_H"; \
226                                                !! 556          echo "#define _ASM_OFFSET_H"; \
227 # With make 3.82 we cannot mix normal and wild !! 557          echo "/*"; \
228 BOOT_TARGETS1 := zImage zImage.initrd uImage   !! 558          echo " * DO NOT MODIFY."; \
229 BOOT_TARGETS2 := zImage% dtbImage% treeImage.% !! 559          echo " *"; \
230                                                !! 560          echo " * This file was generated by arch/$(ARCH)/Makefile"; \
231 PHONY += $(BOOT_TARGETS1) $(BOOT_TARGETS2)     !! 561          echo " *"; \
232                                                !! 562          echo " */"; \
233 boot := arch/powerpc/boot                      !! 563          echo ""; \
234                                                !! 564          sed -ne "/^@@@/s///p"; \
235 $(BOOT_TARGETS1): vmlinux                      !! 565          echo "#endif /* _ASM_OFFSET_H */" )
236         $(Q)$(MAKE) $(build)=$(boot) $(patsubs << 
237 $(BOOT_TARGETS2): vmlinux                      << 
238         $(Q)$(MAKE) $(build)=$(boot) $(patsubs << 
239                                                << 
240                                                << 
241 PHONY += bootwrapper_install                   << 
242 bootwrapper_install:                           << 
243         $(Q)$(MAKE) $(build)=$(boot) $(patsubs << 
244                                                << 
245 include $(srctree)/scripts/Makefile.defconf    << 
246                                                << 
247 generated_configs += ppc64le_defconfig         << 
248 ppc64le_defconfig:                             << 
249         $(call merge_into_defconfig,ppc64_defc << 
250                                                << 
251 generated_configs += ppc64le_guest_defconfig   << 
252 ppc64le_guest_defconfig:                       << 
253         $(call merge_into_defconfig,ppc64_defc << 
254                                                << 
255 generated_configs += ppc64_guest_defconfig     << 
256 ppc64_guest_defconfig:                         << 
257         $(call merge_into_defconfig,ppc64_defc << 
258                                                << 
259 generated_configs += pseries_le_defconfig      << 
260 pseries_le_defconfig: ppc64le_guest_defconfig  << 
261                                                << 
262 generated_configs += pseries_defconfig         << 
263 pseries_defconfig: ppc64le_guest_defconfig     << 
264                                                << 
265 generated_configs += powernv_be_defconfig      << 
266 powernv_be_defconfig:                          << 
267         $(call merge_into_defconfig,powernv_de << 
268                                                << 
269 generated_configs += mpc85xx_defconfig         << 
270 mpc85xx_defconfig:                             << 
271         $(call merge_into_defconfig,mpc85xx_ba << 
272                 85xx-32bit 85xx-hw fsl-emb-non << 
273                                                << 
274 generated_configs += mpc85xx_smp_defconfig     << 
275 mpc85xx_smp_defconfig:                         << 
276         $(call merge_into_defconfig,mpc85xx_ba << 
277                 85xx-32bit 85xx-smp 85xx-hw fs << 
278                                                << 
279 generated_configs += corenet32_smp_defconfig   << 
280 corenet32_smp_defconfig:                       << 
281         $(call merge_into_defconfig,corenet_ba << 
282                 85xx-32bit 85xx-smp 85xx-hw fs << 
283                                                << 
284 generated_configs += corenet64_smp_defconfig   << 
285 corenet64_smp_defconfig:                       << 
286         $(call merge_into_defconfig,corenet_ba << 
287                 85xx-64bit 85xx-smp altivec 85 << 
288                                                << 
289 generated_configs += mpc86xx_defconfig         << 
290 mpc86xx_defconfig:                             << 
291         $(call merge_into_defconfig,mpc86xx_ba << 
292                 86xx-hw fsl-emb-nonhw)         << 
293                                                << 
294 generated_configs += mpc86xx_smp_defconfig     << 
295 mpc86xx_smp_defconfig:                         << 
296         $(call merge_into_defconfig,mpc86xx_ba << 
297                 86xx-smp 86xx-hw fsl-emb-nonhw << 
298                                                << 
299 generated_configs += ppc32_allmodconfig        << 
300 ppc32_allmodconfig:                            << 
301         $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctre << 
302                 -f $(srctree)/Makefile allmodc << 
303                                                << 
304 generated_configs += ppc44x_allmodconfig       << 
305 ppc44x_allmodconfig:                           << 
306         $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctre << 
307                 -f $(srctree)/Makefile allmodc << 
308                                                << 
309 generated_configs += ppc8xx_allmodconfig       << 
310 ppc8xx_allmodconfig:                           << 
311         $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctre << 
312                 -f $(srctree)/Makefile allmodc << 
313                                                << 
314 generated_configs += ppc85xx_allmodconfig      << 
315 ppc85xx_allmodconfig:                          << 
316         $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctre << 
317                 -f $(srctree)/Makefile allmodc << 
318                                                << 
319 generated_configs += ppc_defconfig             << 
320 ppc_defconfig:                                 << 
321         $(call merge_into_defconfig,book3s_32. << 
322                                                << 
323 generated_configs += ppc64le_allmodconfig      << 
324 ppc64le_allmodconfig:                          << 
325         $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctre << 
326                 -f $(srctree)/Makefile allmodc << 
327                                                << 
328 generated_configs += ppc64le_allnoconfig       << 
329 ppc64le_allnoconfig:                           << 
330         $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctre << 
331                 -f $(srctree)/Makefile allnoco << 
332                                                << 
333 generated_configs += ppc64_book3e_allmodconfig << 
334 ppc64_book3e_allmodconfig:                     << 
335         $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctre << 
336                 -f $(srctree)/Makefile allmodc << 
337                                                << 
338 generated_configs += ppc32_randconfig          << 
339 ppc32_randconfig:                              << 
340         $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctre << 
341                 -f $(srctree)/Makefile randcon << 
342                                                << 
343 generated_configs += ppc64_randconfig          << 
344 ppc64_randconfig:                              << 
345         $(Q)$(MAKE) KCONFIG_ALLCONFIG=$(srctre << 
346                 -f $(srctree)/Makefile randcon << 
347                                                << 
348 PHONY += $(generated_configs)                  << 
349                                                << 
350 define archhelp                                << 
351   echo '* zImage          - Build default imag << 
352   echo '  zImage.*        - Compressed kernel  << 
353   echo '  uImage          - U-Boot native imag << 
354   echo '  cuImage.<dt>    - Backwards compatib << 
355   echo '                    versions which do  << 
356   echo '  dtbImage.<dt>   - zImage with an emb << 
357   echo '  simpleImage.<dt> - Firmware independ << 
358   echo '  treeImage.<dt>  - Support for older  << 
359   echo '  install         - Install kernel usi << 
360   echo '                    (your) ~/bin/$(INS << 
361   echo '                    (distribution) /sb << 
362   echo '                    install to $$(INST << 
363   echo '  *_defconfig     - Select default con << 
364   echo ''                                      << 
365   echo '  Targets with <dt> embed a device tre << 
366   echo '  These targets support board with fir << 
367   echo '  support passing a device tree direct << 
368   echo '  name of a dts file from the arch/pow << 
369   echo '  (minus the .dts extension).'         << 
370   echo                                         << 
371   $(foreach cfg,$(generated_configs),          << 
372     printf "  %-27s - Build for %s\\n" $(cfg)  << 
373 endef                                             566 endef
374                                                   567 
375 PHONY += install                               !! 568 define filechk_gen-asm-reg.h
376 install:                                       !! 569         (set -e; \
377         $(call cmd,install)                    !! 570          echo "#ifndef _ASM_REG_H"; \
378                                                !! 571          echo "#define _ASM_REG_H"; \
379 ifeq ($(KBUILD_EXTMOD),)                       !! 572          echo "/*"; \
380 # We need to generate vdso-offsets.h before co !! 573          echo " * DO NOT MODIFY."; \
381 # In order to do that, we should use the archp !! 574          echo " *"; \
382 # asm-offsets.h is included in some files used !! 575          echo " * This file was generated by arch/$(ARCH)/Makefile"; \
383 # asm-offsets.h is built in prepare0, for whic !! 576          echo " *"; \
384 # Therefore we need to generate the header aft !! 577          echo " */"; \
385 # this hack.                                   !! 578          echo ""; \
386 prepare: vdso_prepare                          !! 579          sed -ne "/^@@@/s///p"; \
387 vdso_prepare: prepare0                         !! 580          echo "#endif /* _ASM_REG_H */" )
388         $(if $(CONFIG_VDSO32),$(Q)$(MAKE) \    !! 581 endef
389                 $(build)=arch/powerpc/kernel/v !! 582 
390         $(if $(CONFIG_PPC64),$(Q)$(MAKE) \     !! 583 prepare: include/asm-$(ARCH)/offset.h \
391                 $(build)=arch/powerpc/kernel/v !! 584          include/asm-$(ARCH)/reg.h
392 endif                                          !! 585 
393                                                !! 586 arch/$(ARCH)/kernel/offset.s: include/asm include/linux/version.h \
394 archprepare: checkbin                          !! 587                                    include/config/MARKER
395                                                << 
396 archheaders:                                   << 
397         $(Q)$(MAKE) $(build)=arch/powerpc/kern << 
398                                                << 
399 ifdef CONFIG_STACKPROTECTOR                    << 
400 prepare: stack_protector_prepare               << 
401                                                << 
402 PHONY += stack_protector_prepare               << 
403 stack_protector_prepare: prepare0              << 
404 ifdef CONFIG_PPC64                             << 
405         $(eval KBUILD_CFLAGS += -mstack-protec << 
406 else                                           << 
407         $(eval KBUILD_CFLAGS += -mstack-protec << 
408 endif                                          << 
409 endif                                          << 
410                                                   588 
411 PHONY += checkbin                              !! 589 include/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.s
412 checkbin:                                      !! 590         $(call filechk,gen-asm-offset.h)
413         @if test "x${CONFIG_FTRACE_MCOUNT_USE_ !! 591 include/asm-$(ARCH)/reg.h: arch/$(ARCH)/kernel/reg.s
414                 "x${CONFIG_LD_IS_BFD}" = "xy"  !! 592         $(call filechk,gen-asm-reg.h)
415                 "${CONFIG_LD_VERSION}" = "2370 !! 593 
416                 echo -n '*** binutils 2.37 dro !! 594 CLEAN_FILES += include/asm-$(ARCH)/offset.h.tmp \
417                 echo 'is unable to handle.' ;  !! 595                include/asm-$(ARCH)/offset.h \
418                 echo '*** Please use a differe !! 596                include/asm-$(ARCH)/reg.h.tmp \
419                 false ; \                      !! 597                include/asm-$(ARCH)/reg.h
420         fi                                     << 
                                                      

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php