Back to home page

LXR

 
 

    


0001 #
0002 # frv/Makefile
0003 #
0004 # This file is included by the global makefile so that you can add your own
0005 # architecture-specific flags and dependencies. Remember to do have actions
0006 # for "archclean" and "archdep" for cleaning up and making dependencies for
0007 # this architecture
0008 #
0009 # This file is subject to the terms and conditions of the GNU General Public
0010 # License.  See the file "COPYING" in the main directory of this archive
0011 # for more details.
0012 #
0013 # Copyright (c) 2003, 2004 Red Hat Inc.
0014 # - Written by David Howells <dhowells@redhat.com>
0015 # - Derived from arch/m68knommu/Makefile,
0016 #       Copyright (c) 1999,2001  D. Jeff Dionne <jeff@lineo.ca>,
0017 #       Rt-Control Inc. / Lineo, Inc.
0018 #
0019 # Copyright (C) 1998,1999  D. Jeff Dionne <jeff@uclinux.org>,
0020 #                          Kenneth Albanowski <kjahds@kjahds.com>,
0021 #
0022 # Based on arch/m68k/Makefile:
0023 # Copyright (C) 1994 by Hamish Macdonald
0024 #
0025 
0026 ifdef CONFIG_MMU
0027 UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\"
0028 else
0029 UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\"
0030 endif
0031 
0032 KBUILD_AFLAGS_MODULE += -G0 -mlong-calls
0033 KBUILD_CFLAGS_MODULE += -G0 -mlong-calls
0034 
0035 ifdef CONFIG_GPREL_DATA_8
0036 KBUILD_CFLAGS   += -G8
0037 else
0038 ifdef CONFIG_GPREL_DATA_4
0039 KBUILD_CFLAGS   += -G4
0040 else
0041 ifdef CONFIG_GPREL_DATA_NONE
0042 KBUILD_CFLAGS   += -G0
0043 endif
0044 endif
0045 endif
0046 
0047 #LDFLAGS_vmlinux        := -Map linkmap.txt
0048 
0049 ifdef CONFIG_GC_SECTIONS
0050 KBUILD_CFLAGS   += -ffunction-sections -fdata-sections
0051 endif
0052 
0053 ifndef CONFIG_FRAME_POINTER
0054 KBUILD_CFLAGS   += -mno-linked-fp
0055 endif
0056 
0057 ifdef CONFIG_CPU_FR451_COMPILE
0058 KBUILD_CFLAGS   += -mcpu=fr450
0059 KBUILD_AFLAGS   += -mcpu=fr450
0060 else
0061 ifdef CONFIG_CPU_FR551_COMPILE
0062 KBUILD_CFLAGS   += -mcpu=fr550
0063 KBUILD_AFLAGS   += -mcpu=fr550
0064 else
0065 KBUILD_CFLAGS   += -mcpu=fr400
0066 KBUILD_AFLAGS   += -mcpu=fr400
0067 endif
0068 endif
0069 
0070 # pretend the kernel is going to run on an FR400 with no media-fp unit
0071 # - reserve CC3 for use with atomic ops
0072 # - all the extra registers are dealt with only at context switch time
0073 KBUILD_CFLAGS   += -mno-fdpic -mgpr-32 -msoft-float -mno-media
0074 KBUILD_CFLAGS   += -ffixed-fcc3 -ffixed-cc3 -ffixed-gr15 -ffixed-icc2
0075 KBUILD_AFLAGS   += -mno-fdpic
0076 
0077 head-y          := arch/frv/kernel/head.o
0078 
0079 core-y          += arch/frv/kernel/ arch/frv/mm/
0080 libs-y          += arch/frv/lib/
0081 
0082 core-$(CONFIG_MB93090_MB00)     += arch/frv/mb93090-mb00/
0083 
0084 all: Image
0085 
0086 Image: vmlinux
0087         $(Q)$(MAKE) $(build)=arch/frv/boot $@
0088 
0089 archclean:
0090         $(Q)$(MAKE) $(clean)=arch/frv/boot