📄 makefile
字号:
core-$(CONFIG_MOMENCO_OCELOT) += arch/mips/gt64120/common/ \ arch/mips/gt64120/momenco_ocelot/cflags-$(CONFIG_MOMENCO_OCELOT) += -Iinclude/asm-mips/mach-ocelotload-$(CONFIG_MOMENCO_OCELOT) += 0x80100000## Momentum Ocelot-G board## The Ocelot-G setup.o must be linked early - it does the ioremap() for the# mips_io_port_base.#core-$(CONFIG_MOMENCO_OCELOT_G) += arch/mips/momentum/ocelot_g/load-$(CONFIG_MOMENCO_OCELOT_G) += 0x80100000## Momentum Ocelot-C and -CS boards## The Ocelot-C[S] setup.o must be linked early - it does the ioremap() for the# mips_io_port_base.core-$(CONFIG_MOMENCO_OCELOT_C) += arch/mips/momentum/ocelot_c/load-$(CONFIG_MOMENCO_OCELOT_C) += 0x80100000## PMC-Sierra Yosemite#core-$(CONFIG_PMC_YOSEMITE) += arch/mips/pmc-sierra/yosemite/cflags-$(CONFIG_PMC_YOSEMITE) += -Iinclude/asm-mips/mach-yosemiteload-$(CONFIG_PMC_YOSEMITE) += 0x80100000## Momentum Jaguar ATX#core-$(CONFIG_MOMENCO_JAGUAR_ATX) += arch/mips/momentum/jaguar_atx/cflags-$(CONFIG_MOMENCO_JAGUAR_ATX) += -Iinclude/asm-mips/mach-ja#ifdef CONFIG_JAGUAR_DMALOW#load-$(CONFIG_MOMENCO_JAGUAR_ATX) += 0x88000000#elseload-$(CONFIG_MOMENCO_JAGUAR_ATX) += 0x80100000#endif## NEC DDB#core-$(CONFIG_DDB5XXX_COMMON) += arch/mips/ddb5xxx/common/## NEC DDB Vrc-5074#core-$(CONFIG_DDB5074) += arch/mips/ddb5xxx/ddb5074/load-$(CONFIG_DDB5074) += 0x80080000## NEC DDB Vrc-5476#core-$(CONFIG_DDB5476) += arch/mips/ddb5xxx/ddb5476/load-$(CONFIG_DDB5476) += 0x80080000## NEC DDB Vrc-5477#core-$(CONFIG_DDB5477) += arch/mips/ddb5xxx/ddb5477/load-$(CONFIG_DDB5477) += 0x80100000core-$(CONFIG_LASAT) += arch/mips/lasat/cflags-$(CONFIG_LASAT) += -Iinclude/asm-mips/mach-lasatload-$(CONFIG_LASAT) += 0x80000000## NEC Osprey (vr4181) board#core-$(CONFIG_NEC_OSPREY) += arch/mips/vr4181/common/ \ arch/mips/vr4181/osprey/load-$(CONFIG_NEC_OSPREY) += 0x80002000## Common VR41xx#core-$(CONFIG_MACH_VR41XX) += arch/mips/vr41xx/common/cflags-$(CONFIG_MACH_VR41XX) += -Iinclude/asm-mips/mach-vr41xx## ZAO Networks Capcella (VR4131)#core-$(CONFIG_ZAO_CAPCELLA) += arch/mips/vr41xx/zao-capcella/load-$(CONFIG_ZAO_CAPCELLA) += 0x80000000## Victor MP-C303/304 (VR4122)#core-$(CONFIG_VICTOR_MPC30X) += arch/mips/vr41xx/victor-mpc30x/load-$(CONFIG_VICTOR_MPC30X) += 0x80001000## IBM WorkPad z50 (VR4121)#core-$(CONFIG_IBM_WORKPAD) += arch/mips/vr41xx/ibm-workpad/load-$(CONFIG_IBM_WORKPAD) += 0x80004000## CASIO CASSIPEIA E-55/65 (VR4111)#core-$(CONFIG_CASIO_E55) += arch/mips/vr41xx/casio-e55/load-$(CONFIG_CASIO_E55) += 0x80004000## TANBAC TB0226 Mbase (VR4131)#core-$(CONFIG_TANBAC_TB0226) += arch/mips/vr41xx/tanbac-tb0226/load-$(CONFIG_TANBAC_TB0226) += 0x80000000## TANBAC TB0229 VR4131DIMM (VR4131)#core-$(CONFIG_TANBAC_TB0229) += arch/mips/vr41xx/tanbac-tb0229/load-$(CONFIG_TANBAC_TB0229) += 0x80000000## SGI IP22 (Indy/Indigo2)## Set the load address to >= 0x88069000 if you want to leave space for symmon,# 0x80002000 for production kernels. Note that the value must be aligned to# a multiple of the kernel stack size or the handling of the current variable# will break so for 64-bit kernels we have to raise the start address by 8kb.#core-$(CONFIG_SGI_IP22) += arch/mips/sgi-ip22/cflags-$(CONFIG_SGI_IP22) += -Iinclude/asm-mips/mach-ip22ifdef CONFIG_MIPS32load-$(CONFIG_SGI_IP22) += 0x88002000endififdef CONFIG_MIPS64load-$(CONFIG_SGI_IP22) += 0x88004000endif## SGI-IP27 (Origin200/2000)## Set the load address to >= 0xc000000000300000 if you want to leave space for# symmon, 0xc00000000001c000 for production kernels. Note that the value# must be 16kb aligned or the handling of the current variable will break.#ifdef CONFIG_SGI_IP27core-$(CONFIG_SGI_IP27) += arch/mips/sgi-ip27/cflags-$(CONFIG_SGI_IP27) += -Iinclude/asm-mips/mach-ip27#load-$(CONFIG_SGI_IP27) += 0xa80000000001c000ifdef CONFIG_MAPPED_KERNELload-$(CONFIG_SGI_IP27) += 0xc001c000elseload-$(CONFIG_SGI_IP27) += 0x8001c000endifendif## SGI-IP32 (O2)## Set the load address to >= 80069000 if you want to leave space for symmon,# 0x80002000 for production kernels. Note that the value must be aligned to# a multiple of the kernel stack size or the handling of the current variable# will break so for 64-bit kernels we have to raise the start address by 8kb.#core-$(CONFIG_SGI_IP32) += arch/mips/sgi-ip32/cflags-$(CONFIG_SGI_IP32) += -Iinclude/asm-mips/mach-ip32ifdef CONFIG_MIPS32load-$(CONFIG_SGI_IP32) += 0x80002000endififdef CONFIG_MIPS64load-$(CONFIG_SGI_IP32) += 0x80004000endif## Sibyte SB1250 SOC## This is a LIB so that it links at the end, and initcalls are later# the sequence; but it is built as an object so that modules don't get# removed (as happens, even if they have __initcall/module_init)#core-$(CONFIG_SIBYTE_BCM112X) += arch/mips/sibyte/sb1250/core-$(CONFIG_SIBYTE_SB1250) += arch/mips/sibyte/sb1250/## Sibyte BCM91120x (Carmel) board# Sibyte BCM91120C (CRhine) board# Sibyte BCM91125C (CRhone) board# Sibyte BCM91125E (Rhone) board# Sibyte SWARM board#libs-$(CONFIG_SIBYTE_CARMEL) += arch/mips/sibyte/swarm/load-$(CONFIG_SIBYTE_CARMEL) := 0x80100000libs-$(CONFIG_SIBYTE_CRHINE) += arch/mips/sibyte/swarm/load-$(CONFIG_SIBYTE_CRHINE) := 0x80100000libs-$(CONFIG_SIBYTE_CRHONE) += arch/mips/sibyte/swarm/load-$(CONFIG_SIBYTE_CRHONE) := 0x80100000libs-$(CONFIG_SIBYTE_RHONE) += arch/mips/sibyte/swarm/load-$(CONFIG_SIBYTE_RHONE) := 0x80100000libs-$(CONFIG_SIBYTE_SENTOSA) += arch/mips/sibyte/swarm/load-$(CONFIG_SIBYTE_SENTOSA) := 0x80100000libs-$(CONFIG_SIBYTE_SWARM) += arch/mips/sibyte/swarm/load-$(CONFIG_SIBYTE_SWARM) := 0x80100000## SNI RM200 PCI#core-$(CONFIG_SNI_RM200_PCI) += arch/mips/sni/cflags-$(CONFIG_SNI_RM200_PCI) += -Iinclude/asm-mips/mach-rm200load-$(CONFIG_SNI_RM200_PCI) += 0x80600000## Toshiba JMR-TX3927 board#core-$(CONFIG_TOSHIBA_JMR3927) += arch/mips/jmr3927/rbhma3100/ \ arch/mips/jmr3927/common/load-$(CONFIG_TOSHIBA_JMR3927) += 0x80050000## Toshiba RBTX4927 board or# Toshiba RBTX4937 board#core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/toshiba_rbtx4927/core-$(CONFIG_TOSHIBA_RBTX4927) += arch/mips/tx4927/common/load-$(CONFIG_TOSHIBA_RBTX4927) += 0x80020000cflags-y += -Iinclude/asm-mips/mach-genericdrivers-$(CONFIG_PCI) += arch/mips/pci/ifdef CONFIG_MIPS32build-bfd = $(32bit-bfd)cflags-y += $(32bit-isa-y)endififdef CONFIG_MIPS64build-bfd = $(64bit-bfd)cflags-y += $(64bit-isa-y)endififdef CONFIG_MIPS32ifdef CONFIG_CPU_LITTLE_ENDIANJIFFIES = jiffies_64elseJIFFIES = jiffies_64 + 4endifelseJIFFIES = jiffies_64endif## Some machines like the Indy need 32-bit ELF binaries for booting purposes.# Other need ECOFF, so we build a 32-bit ELF binary for them which we then# convert to ECOFF using elf2ecoff.## The 64-bit ELF tools are pretty broken so at this time we generate 64-bit# ELF files from 32-bit files by conversion.##AS += -64#LDFLAGS += -m elf64bmip## Choosing incompatible machines durings configuration will result in# error messages during linking. Select a default linkscript if# none has been choosen above.#CPPFLAGS_vmlinux.lds := \ -D"LOADADDR=$(load-y)" \ -D"JIFFIES=$(JIFFIES)" \ -imacros $(srctree)/include/asm-$(ARCH)/sn/mapped_kernel.hAFLAGS += $(cflags-y)CFLAGS += $(cflags-y)LDFLAGS += --oformat $(32bit-bfd)head-y := arch/mips/kernel/head.o arch/mips/kernel/init_task.olibs-y += arch/mips/lib/libs-$(CONFIG_MIPS32) += arch/mips/lib-32/libs-$(CONFIG_MIPS64) += arch/mips/lib-64/core-y += arch/mips/kernel/ arch/mips/mm/ arch/mips/math-emu/ifdef CONFIG_BAGET_MIPSBAGETBOOT = $(MAKE) -C arch/$(ARCH)/bagetbalo: vmlinux $(BAGETBOOT) baloendififdef CONFIG_LASATrom.bin rom.sw: vmlinux $(call descend,arch/mips/lasat/image,$@)endififdef CONFIG_MAPPED_KERNELvmlinux.64: vmlinux $(OBJCOPY) -O $(64bit-bfd) --remove-section=.reginfo \ --change-addresses=0xc000000080000000 $< $@elsevmlinux.64: vmlinux $(OBJCOPY) -O $(64bit-bfd) --remove-section=.reginfo \ --change-addresses=0xa800000080000000 $< $@endifmakeboot =$(Q)$(MAKE) $(build)=arch/mips/boot $(1)ifdef CONFIG_SGI_IP27all: vmlinux.64endififdef CONFIG_SNI_RM200_PCIall: vmlinux.ecoffendifvmlinux.ecoff vmlinux.rm200: vmlinux +@$(call makeboot,$@)vmlinux.srec: vmlinux +@$(call makeboot,$@)CLEAN_FILES += vmlinux.ecoff \ vmlinux.srec \ vmlinux.rm200.tmp \ vmlinux.rm200archclean: @$(MAKE) $(clean)=arch/mips/boot @$(MAKE) $(clean)=arch/mips/baget @$(MAKE) $(clean)=arch/mips/lasat# Generate <asm/offset.h ## The default rule is suffering from funny problems on MIPS so we using our# own ...## ---------------------------------------------------------------------------define filechk_gen-asm-offset.h (set -e; \ echo "#ifndef _ASM_OFFSET_H"; \ echo "#define _ASM_OFFSET_H"; \ echo "/*"; \ echo " * DO NOT MODIFY."; \ echo " *"; \ echo " * This file was generated by arch/$(ARCH)/Makefile"; \ echo " *"; \ echo " */"; \ echo ""; \ sed -ne "/^@@@/s///p"; \ echo "#endif /* _ASM_OFFSET_H */" )endefdefine filechk_gen-asm-reg.h (set -e; \ echo "#ifndef _ASM_REG_H"; \ echo "#define _ASM_REG_H"; \ echo "/*"; \ echo " * DO NOT MODIFY."; \ echo " *"; \ echo " * This file was generated by arch/$(ARCH)/Makefile"; \ echo " *"; \ echo " */"; \ echo ""; \ sed -ne "/^@@@/s///p"; \ echo "#endif /* _ASM_REG_H */" )endefprepare: include/asm-$(ARCH)/offset.h \ include/asm-$(ARCH)/reg.harch/$(ARCH)/kernel/offset.s: include/asm include/linux/version.h \ include/config/MARKERinclude/asm-$(ARCH)/offset.h: arch/$(ARCH)/kernel/offset.s $(call filechk,gen-asm-offset.h)include/asm-$(ARCH)/reg.h: arch/$(ARCH)/kernel/reg.s $(call filechk,gen-asm-reg.h)CLEAN_FILES += include/asm-$(ARCH)/offset.h.tmp \ include/asm-$(ARCH)/offset.h \ include/asm-$(ARCH)/reg.h.tmp \ include/asm-$(ARCH)/reg.h \ vmlinux.64 \ vmlinux.ecoff
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -