Blame view
arch/frv/Makefile
2.47 KB
1da177e4c Linux-2.6.12-rc2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# # frv/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) 2003, 2004 Red Hat Inc. # - Written by David Howells <dhowells@redhat.com> # - Derived from arch/m68knommu/Makefile, # Copyright (c) 1999,2001 D. Jeff Dionne <jeff@lineo.ca>, # Rt-Control Inc. / Lineo, Inc. # # Copyright (C) 1998,1999 D. Jeff Dionne <jeff@uclinux.org>, # Kenneth Albanowski <kjahds@kjahds.com>, # # Based on arch/m68k/Makefile: # Copyright (C) 1994 by Hamish Macdonald # |
1da177e4c Linux-2.6.12-rc2 |
25 26 27 28 29 |
ifdef CONFIG_MMU UTS_SYSNAME = -DUTS_SYSNAME=\"Linux\" else UTS_SYSNAME = -DUTS_SYSNAME=\"uClinux\" endif |
c9575dc68 frv: clean up arc... |
30 31 |
KBUILD_AFLAGS_MODULE += -G0 -mlong-calls KBUILD_CFLAGS_MODULE += -G0 -mlong-calls |
1da177e4c Linux-2.6.12-rc2 |
32 33 |
ifdef CONFIG_GPREL_DATA_8 |
a0f97e06a kbuild: enable 'm... |
34 |
KBUILD_CFLAGS += -G8 |
1da177e4c Linux-2.6.12-rc2 |
35 36 |
else ifdef CONFIG_GPREL_DATA_4 |
a0f97e06a kbuild: enable 'm... |
37 |
KBUILD_CFLAGS += -G4 |
1da177e4c Linux-2.6.12-rc2 |
38 39 |
else ifdef CONFIG_GPREL_DATA_NONE |
a0f97e06a kbuild: enable 'm... |
40 |
KBUILD_CFLAGS += -G0 |
1da177e4c Linux-2.6.12-rc2 |
41 42 43 44 45 46 47 |
endif endif endif #LDFLAGS_vmlinux := -Map linkmap.txt ifdef CONFIG_GC_SECTIONS |
a0f97e06a kbuild: enable 'm... |
48 |
KBUILD_CFLAGS += -ffunction-sections -fdata-sections |
1da177e4c Linux-2.6.12-rc2 |
49 50 51 |
endif ifndef CONFIG_FRAME_POINTER |
a0f97e06a kbuild: enable 'm... |
52 |
KBUILD_CFLAGS += -mno-linked-fp |
1da177e4c Linux-2.6.12-rc2 |
53 54 55 |
endif ifdef CONFIG_CPU_FR451_COMPILE |
a0f97e06a kbuild: enable 'm... |
56 |
KBUILD_CFLAGS += -mcpu=fr450 |
222d394d3 kbuild: enable 'm... |
57 |
KBUILD_AFLAGS += -mcpu=fr450 |
1da177e4c Linux-2.6.12-rc2 |
58 59 |
else ifdef CONFIG_CPU_FR551_COMPILE |
a0f97e06a kbuild: enable 'm... |
60 |
KBUILD_CFLAGS += -mcpu=fr550 |
222d394d3 kbuild: enable 'm... |
61 |
KBUILD_AFLAGS += -mcpu=fr550 |
1da177e4c Linux-2.6.12-rc2 |
62 |
else |
a0f97e06a kbuild: enable 'm... |
63 |
KBUILD_CFLAGS += -mcpu=fr400 |
222d394d3 kbuild: enable 'm... |
64 |
KBUILD_AFLAGS += -mcpu=fr400 |
1da177e4c Linux-2.6.12-rc2 |
65 66 67 68 69 70 |
endif endif # pretend the kernel is going to run on an FR400 with no media-fp unit # - reserve CC3 for use with atomic ops # - all the extra registers are dealt with only at context switch time |
a0f97e06a kbuild: enable 'm... |
71 72 |
KBUILD_CFLAGS += -mno-fdpic -mgpr-32 -msoft-float -mno-media KBUILD_CFLAGS += -ffixed-fcc3 -ffixed-cc3 -ffixed-gr15 -ffixed-icc2 |
222d394d3 kbuild: enable 'm... |
73 |
KBUILD_AFLAGS += -mno-fdpic |
1da177e4c Linux-2.6.12-rc2 |
74 75 76 77 |
# make sure the .S files get compiled with debug info # and disable optimisations that are unhelpful whilst debugging ifdef CONFIG_DEBUG_INFO |
a0f97e06a kbuild: enable 'm... |
78 |
#KBUILD_CFLAGS += -O1 |
222d394d3 kbuild: enable 'm... |
79 |
KBUILD_AFLAGS += -Wa,--gdwarf2 |
1da177e4c Linux-2.6.12-rc2 |
80 81 82 83 84 85 86 87 88 89 90 91 92 |
endif head-y := arch/frv/kernel/head.o arch/frv/kernel/init_task.o core-y += arch/frv/kernel/ arch/frv/mm/ libs-y += arch/frv/lib/ core-$(CONFIG_MB93090_MB00) += arch/frv/mb93090-mb00/ all: Image Image: vmlinux $(Q)$(MAKE) $(build)=arch/frv/boot $@ |
1da177e4c Linux-2.6.12-rc2 |
93 |
archclean: |
00ddaf20b [PATCH] sanitize ... |
94 |
$(Q)$(MAKE) $(clean)=arch/frv/boot |