⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makefile

📁 linux 内核源代码
💻
📖 第 1 页 / 共 2 页
字号:
## This file is subject to the terms and conditions of the GNU General Public# License.  See the file "COPYING" in the main directory of this archive# for more details.## Copyright (C) 1994, 95, 96, 2003 by Ralf Baechle# DECStation modifications by Paul M. Antoine, 1996# Copyright (C) 2002, 2003, 2004  Maciej W. Rozycki## This file is included by the global makefile so that you can add your own# architecture-specific flags and dependencies. Remember to do have actions# for "archclean" cleaning up for this architecture.#cflags-y :=## Select the object file format to substitute into the linker script.#ifdef CONFIG_CPU_LITTLE_ENDIAN32bit-tool-archpref	= mipsel64bit-tool-archpref	= mips64el32bit-bfd		= elf32-tradlittlemips64bit-bfd		= elf64-tradlittlemips32bit-emul		= elf32ltsmip64bit-emul		= elf64ltsmipelse32bit-tool-archpref	= mips64bit-tool-archpref	= mips6432bit-bfd		= elf32-tradbigmips64bit-bfd		= elf64-tradbigmips32bit-emul		= elf32btsmip64bit-emul		= elf64btsmipendififdef CONFIG_32BITtool-archpref		= $(32bit-tool-archpref)UTS_MACHINE		:= mipsendififdef CONFIG_64BITtool-archpref		= $(64bit-tool-archpref)UTS_MACHINE		:= mips64endififneq ($(SUBARCH),$(ARCH))  ifeq ($(CROSS_COMPILE),)    CROSS_COMPILE := $(call cc-cross-prefix, $(tool-archpref)-linux-  $(tool-archpref)-linux-gnu-  $(tool-archpref)-unknown-linux-gnu-)  endifendififdef CONFIG_32BITld-emul			= $(32bit-emul)vmlinux-32		= vmlinuxvmlinux-64		= vmlinux.64cflags-y		+= -mabi=32endififdef CONFIG_64BITld-emul			= $(64bit-emul)vmlinux-32		= vmlinux.32vmlinux-64		= vmlinuxcflags-y		+= -mabi=64endifall-$(CONFIG_BOOT_ELF32)	:= $(vmlinux-32)all-$(CONFIG_BOOT_ELF64)	:= $(vmlinux-64)## GCC uses -G 0 -mabicalls -fpic as default.  We don't want PIC in the kernel# code since it only slows down the whole thing.  At some point we might make# use of global pointer optimizations but their use of $28 conflicts with# the current pointer optimization.## The DECStation requires an ECOFF kernel for remote booting, other MIPS# machines may also.  Since BFD is incredibly buggy with respect to# crossformat linking we rely on the elf2ecoff tool for format conversion.#cflags-y			+= -G 0 -mno-abicalls -fno-pic -pipecflags-y			+= -msoft-floatLDFLAGS_vmlinux			+= -G 0 -static -n -nostdlibMODFLAGS			+= -mlong-callscflags-y += -ffreestanding## We explicitly add the endianness specifier if needed, this allows# to compile kernels with a toolchain for the other endianness. We# carefully avoid to add it redundantly because gcc 3.3/3.4 complains# when fed the toolchain default!## Certain gcc versions upto gcc 4.1.1 (probably 4.2-subversion as of# 2006-10-10 don't properly change the predefined symbols if -EB / -EL# are used, so we kludge that here.  A bug has been filed at# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29413.#undef-all += -UMIPSEB -U_MIPSEB -U__MIPSEB -U__MIPSEB__undef-all += -UMIPSEL -U_MIPSEL -U__MIPSEL -U__MIPSEL__predef-be += -DMIPSEB -D_MIPSEB -D__MIPSEB -D__MIPSEB__predef-le += -DMIPSEL -D_MIPSEL -D__MIPSEL -D__MIPSEL__cflags-$(CONFIG_CPU_BIG_ENDIAN)		+= $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' && echo -EB $(undef-all) $(predef-be))cflags-$(CONFIG_CPU_LITTLE_ENDIAN)	+= $(shell $(CC) -dumpmachine |grep -q 'mips.*el-.*' || echo -EL $(undef-all) $(predef-le))cflags-$(CONFIG_CPU_HAS_SMARTMIPS)	+= $(call cc-option,-msmartmips)cflags-$(CONFIG_SB1XXX_CORELIS)	+= $(call cc-option,-mno-sched-prolog) \				   -fno-omit-frame-pointer## CPU-dependent compiler/assembler options for optimization.#cflags-$(CONFIG_CPU_R3000)	+= -march=r3000cflags-$(CONFIG_CPU_TX39XX)	+= -march=r3900cflags-$(CONFIG_CPU_R6000)	+= -march=r6000 -Wa,--trapcflags-$(CONFIG_CPU_R4300)	+= -march=r4300 -Wa,--trapcflags-$(CONFIG_CPU_VR41XX)	+= -march=r4100 -Wa,--trapcflags-$(CONFIG_CPU_R4X00)	+= -march=r4600 -Wa,--trapcflags-$(CONFIG_CPU_TX49XX)	+= -march=r4600 -Wa,--trapcflags-$(CONFIG_CPU_LOONGSON2)	+= -march=r4600 -Wa,--trapcflags-$(CONFIG_CPU_MIPS32_R1)	+= $(call cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \			-Wa,-mips32 -Wa,--trapcflags-$(CONFIG_CPU_MIPS32_R2)	+= $(call cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \			-Wa,-mips32r2 -Wa,--trapcflags-$(CONFIG_CPU_MIPS64_R1)	+= $(call cc-option,-march=mips64,-mips64 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS64) \			-Wa,-mips64 -Wa,--trapcflags-$(CONFIG_CPU_MIPS64_R2)	+= $(call cc-option,-march=mips64r2,-mips64r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS64) \			-Wa,-mips64r2 -Wa,--trapcflags-$(CONFIG_CPU_R5000)	+= -march=r5000 -Wa,--trapcflags-$(CONFIG_CPU_R5432)	+= $(call cc-option,-march=r5400,-march=r5000) \			-Wa,--trapcflags-$(CONFIG_CPU_NEVADA)	+= $(call cc-option,-march=rm5200,-march=r5000) \			-Wa,--trapcflags-$(CONFIG_CPU_RM7000)	+= $(call cc-option,-march=rm7000,-march=r5000) \			-Wa,--trapcflags-$(CONFIG_CPU_RM9000)	+= $(call cc-option,-march=rm9000,-march=r5000) \			-Wa,--trapcflags-$(CONFIG_CPU_SB1)	+= $(call cc-option,-march=sb1,-march=r5000) \			-Wa,--trapcflags-$(CONFIG_CPU_R8000)	+= -march=r8000 -Wa,--trapcflags-$(CONFIG_CPU_R10000)	+= $(call cc-option,-march=r10000,-march=r8000) \			-Wa,--trapifdef CONFIG_CPU_SB1ifdef CONFIG_SB1_PASS_1_WORKAROUNDSMODFLAGS	+= -msb1-pass1-workaroundsendifendif## Firmware support#libs-$(CONFIG_ARC)		+= arch/mips/fw/arc/libs-$(CONFIG_CFE)		+= arch/mips/fw/cfe/libs-$(CONFIG_SIBYTE_CFE)	+= arch/mips/sibyte/cfe/## Board-dependent options and extra files### Acer PICA 61, Mips Magnum 4000 and Olivetti M700.#core-$(CONFIG_MACH_JAZZ)	+= arch/mips/jazz/cflags-$(CONFIG_MACH_JAZZ)	+= -Iinclude/asm-mips/mach-jazzload-$(CONFIG_MACH_JAZZ)	+= 0xffffffff80080000## Common Alchemy Au1x00 stuff#core-$(CONFIG_SOC_AU1X00)	+= arch/mips/au1000/common/cflags-$(CONFIG_SOC_AU1X00)	+= -Iinclude/asm-mips/mach-au1x00## AMD Alchemy Pb1000 eval board#libs-$(CONFIG_MIPS_PB1000)	+= arch/mips/au1000/pb1000/cflags-$(CONFIG_MIPS_PB1000)	+= -Iinclude/asm-mips/mach-pb1x00load-$(CONFIG_MIPS_PB1000)	+= 0xffffffff80100000## AMD Alchemy Pb1100 eval board#libs-$(CONFIG_MIPS_PB1100)	+= arch/mips/au1000/pb1100/cflags-$(CONFIG_MIPS_PB1100)	+= -Iinclude/asm-mips/mach-pb1x00load-$(CONFIG_MIPS_PB1100)	+= 0xffffffff80100000## AMD Alchemy Pb1500 eval board#libs-$(CONFIG_MIPS_PB1500)	+= arch/mips/au1000/pb1500/cflags-$(CONFIG_MIPS_PB1500)	+= -Iinclude/asm-mips/mach-pb1x00load-$(CONFIG_MIPS_PB1500)	+= 0xffffffff80100000## AMD Alchemy Pb1550 eval board#libs-$(CONFIG_MIPS_PB1550)	+= arch/mips/au1000/pb1550/cflags-$(CONFIG_MIPS_PB1550)	+= -Iinclude/asm-mips/mach-pb1x00load-$(CONFIG_MIPS_PB1550)	+= 0xffffffff80100000## AMD Alchemy Pb1200 eval board#libs-$(CONFIG_MIPS_PB1200)	+= arch/mips/au1000/pb1200/cflags-$(CONFIG_MIPS_PB1200)	+= -Iinclude/asm-mips/mach-pb1x00load-$(CONFIG_MIPS_PB1200)	+= 0xffffffff80100000## AMD Alchemy Db1000 eval board#libs-$(CONFIG_MIPS_DB1000)	+= arch/mips/au1000/db1x00/cflags-$(CONFIG_MIPS_DB1000)	+= -Iinclude/asm-mips/mach-db1x00load-$(CONFIG_MIPS_DB1000)	+= 0xffffffff80100000## AMD Alchemy Db1100 eval board#libs-$(CONFIG_MIPS_DB1100)	+= arch/mips/au1000/db1x00/cflags-$(CONFIG_MIPS_DB1100)	+= -Iinclude/asm-mips/mach-db1x00load-$(CONFIG_MIPS_DB1100)	+= 0xffffffff80100000## AMD Alchemy Db1500 eval board#libs-$(CONFIG_MIPS_DB1500)	+= arch/mips/au1000/db1x00/cflags-$(CONFIG_MIPS_DB1500)	+= -Iinclude/asm-mips/mach-db1x00load-$(CONFIG_MIPS_DB1500)	+= 0xffffffff80100000## AMD Alchemy Db1550 eval board#libs-$(CONFIG_MIPS_DB1550)	+= arch/mips/au1000/db1x00/cflags-$(CONFIG_MIPS_DB1550)	+= -Iinclude/asm-mips/mach-db1x00load-$(CONFIG_MIPS_DB1550)	+= 0xffffffff80100000## AMD Alchemy Db1200 eval board#libs-$(CONFIG_MIPS_DB1200)	+= arch/mips/au1000/pb1200/cflags-$(CONFIG_MIPS_DB1200)	+= -Iinclude/asm-mips/mach-db1x00load-$(CONFIG_MIPS_DB1200)	+= 0xffffffff80100000## AMD Alchemy Bosporus eval board#libs-$(CONFIG_MIPS_BOSPORUS)	+= arch/mips/au1000/db1x00/cflags-$(CONFIG_MIPS_BOSPORUS)	+= -Iinclude/asm-mips/mach-db1x00load-$(CONFIG_MIPS_BOSPORUS)	+= 0xffffffff80100000## AMD Alchemy Mirage eval board#libs-$(CONFIG_MIPS_MIRAGE)	+= arch/mips/au1000/db1x00/cflags-$(CONFIG_MIPS_MIRAGE)	+= -Iinclude/asm-mips/mach-db1x00load-$(CONFIG_MIPS_MIRAGE)	+= 0xffffffff80100000## 4G-Systems eval board#libs-$(CONFIG_MIPS_MTX1)	+= arch/mips/au1000/mtx-1/load-$(CONFIG_MIPS_MTX1)	+= 0xffffffff80100000## MyCable eval board#libs-$(CONFIG_MIPS_XXS1500)	+= arch/mips/au1000/xxs1500/load-$(CONFIG_MIPS_XXS1500)	+= 0xffffffff80100000## Cobalt Server#core-$(CONFIG_MIPS_COBALT)	+= arch/mips/cobalt/cflags-$(CONFIG_MIPS_COBALT)	+= -Iinclude/asm-mips/mach-cobaltload-$(CONFIG_MIPS_COBALT)	+= 0xffffffff80080000## DECstation family#core-$(CONFIG_MACH_DECSTATION)	+= arch/mips/dec/cflags-$(CONFIG_MACH_DECSTATION)+= -Iinclude/asm-mips/mach-declibs-$(CONFIG_MACH_DECSTATION)	+= arch/mips/dec/prom/load-$(CONFIG_MACH_DECSTATION)	+= 0xffffffff80040000## Wind River PPMC Board (4KC + GT64120)#core-$(CONFIG_WR_PPMC)		+= arch/mips/gt64120/wrppmc/cflags-$(CONFIG_WR_PPMC)		+= -Iinclude/asm-mips/mach-wrppmcload-$(CONFIG_WR_PPMC)		+= 0xffffffff80100000## lemote fulong mini-PC board#core-$(CONFIG_LEMOTE_FULONG) +=arch/mips/lemote/lm2e/load-$(CONFIG_LEMOTE_FULONG) +=0xffffffff80100000cflags-$(CONFIG_LEMOTE_FULONG) += -Iinclude/asm-mips/mach-lemote## For all MIPS, Inc. eval boards#core-$(CONFIG_MIPS_BOARDS_GEN)	+= arch/mips/mips-boards/generic/## MIPS Atlas board#core-$(CONFIG_MIPS_ATLAS)	+= arch/mips/mips-boards/atlas/cflags-$(CONFIG_MIPS_ATLAS)	+= -Iinclude/asm-mips/mach-atlascflags-$(CONFIG_MIPS_ATLAS)	+= -Iinclude/asm-mips/mach-mipsload-$(CONFIG_MIPS_ATLAS)	+= 0xffffffff80100000all-$(CONFIG_MIPS_ATLAS)	:= vmlinux.srec## MIPS Malta board#core-$(CONFIG_MIPS_MALTA)	+= arch/mips/mips-boards/malta/cflags-$(CONFIG_MIPS_MALTA)	+= -Iinclude/asm-mips/mach-mipsload-$(CONFIG_MIPS_MALTA)	+= 0xffffffff80100000all-$(CONFIG_MIPS_MALTA)	:= vmlinux.srec## MIPS SEAD board#core-$(CONFIG_MIPS_SEAD)	+= arch/mips/mips-boards/sead/cflags-$(CONFIG_MIPS_SEAD)	+= -Iinclude/asm-mips/mach-mipsload-$(CONFIG_MIPS_SEAD)	+= 0xffffffff80100000all-$(CONFIG_MIPS_SEAD)		:= vmlinux.srec## MIPS SIM#core-$(CONFIG_MIPS_SIM)		+= arch/mips/mipssim/cflags-$(CONFIG_MIPS_SIM)	+= -Iinclude/asm-mips/mach-mipssimload-$(CONFIG_MIPS_SIM)		+= 0x80100000## PMC-Sierra MSP SOCs#core-$(CONFIG_PMC_MSP)		+= arch/mips/pmc-sierra/msp71xx/cflags-$(CONFIG_PMC_MSP)	+= -Iinclude/asm-mips/pmc-sierra/msp71xx \					-mno-branch-likelyload-$(CONFIG_PMC_MSP)		+= 0xffffffff80100000## PMC-Sierra Yosemite#core-$(CONFIG_PMC_YOSEMITE)	+= arch/mips/pmc-sierra/yosemite/cflags-$(CONFIG_PMC_YOSEMITE)	+= -Iinclude/asm-mips/mach-yosemiteload-$(CONFIG_PMC_YOSEMITE)	+= 0xffffffff80100000## Qemu simulating MIPS32 4Kc#core-$(CONFIG_QEMU)		+= arch/mips/qemu/cflags-$(CONFIG_QEMU)		+= -Iinclude/asm-mips/mach-qemu

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -