URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [mips/] [Makefile] - Rev 1765
Compare with Previous | Blame | View Log
## arch/mips/Makefile## 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" and "archdep" for cleaning up and making dependencies for# this architecture## 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, 1995 by Ralf Baechle#ifdef CONFIG_CPU_LITTLE_ENDIANprefix = mipsel-oformat = a.out-mips-little-linuxelseprefix = mips-oformat = a.out-mips-big-linuxendififdef CONFIG_EXTRA_ELF_COMPILERprefix := $(prefix)linuxelf-elseprefix := $(prefix)linux-endifAS = $(prefix)asLD = $(prefix)ldLINKFLAGS = -N -Ttext 0x80000000#LINKFLAGS = -oformat=$(oformat) -N -Ttext 0x80000000#HOSTCC = gccCC = $(prefix)gcc -D__KERNEL__ -I$(TOPDIR)/includeCPP = $(CC) -E $(CFLAGS)AR = $(prefix)arRANLIB = $(prefix)ranlibOBJCOPY = $(prefix)objcopyOBJDUMP = $(prefix)objdumpSTRIP = $(prefix)stripNM = $(prefix)nm## The new ELF GCC uses -G0 -mabicalls -fpic as default. We don't need PIC# code in the kernel since it only slows down the whole thing. For the# old GCC these options are just the defaults. At some point we might# make use of global pointer optimizations.#ifdef CONFIG_ELF_KERNELCFLAGS := $(CFLAGS) -G0 -mno-abicalls -fno-picLINKFLAGS += -T arch/mips/ld.scriptendififdef CONFIG_REMOTE_DEBUGCFLAGS := $(CFLAGS) -gendififdef CONFIG_CPU_R3000CFLAGS := $(CFLAGS) -mcpu=r3000 -mips1#ASFLAGS := $(ASFLAGS) -mcpu=r3000 -mips1endififdef CONFIG_CPU_R6000CFLAGS := $(CFLAGS) -mcpu=r6000 -mips2#ASFLAGS := $(ASFLAGS) -mcpu=r6000 -mips2endififdef CONFIG_CPU_R4X00CFLAGS := $(CFLAGS) -D__R4000__ -mcpu=r4400 -mips2#ASFLAGS := $(ASFLAGS) -mcpu=r4400 -mips2endififdef CONFIG_CPU_R4600CFLAGS := $(CFLAGS) -D__R4000__ -mcpu=r4600 -mips2#ASFLAGS := $(ASFLAGS) -mcpu=r4600 -mips2endififdef CONFIG_CPU_R8000CFLAGS := $(CFLAGS) -D__R4000__ -mcpu=r8000 -mips2#ASFLAGS := $(ASFLAGS) -mcpu=r8000 -mips2endififdef CONFIG_CPU_R10000CFLAGS := $(CFLAGS) -D__R4000__ -mcpu=r8000 -mips2#ASFLAGS := $(ASFLAGS) -mcpu=r8000 -mips2endifCFLAGS := $(CFLAGS) -pipeHEAD := arch/mips/kernel/head.oSUBDIRS := $(SUBDIRS) arch/mips/kernel arch/mips/mm arch/mips/libARCHIVES := arch/mips/kernel/kernel.o arch/mips/mm/mm.o $(ARCHIVES)LIBS := arch/mips/lib/lib.a $(LIBS) arch/mips/lib/lib.aMAKEBOOT = $(MAKE) -C arch/$(ARCH)/bootzImage: vmlinux@$(MAKEBOOT) zImagecompressed: zImagezdisk: vmlinux@$(MAKEBOOT) zdiskarchclean:@$(MAKEBOOT) clean$(MAKE) -C arch/$(ARCH)/kernel cleanarchdep:@$(MAKEBOOT) dep
