]>
git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blob - arch/frv/Makefile
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies. Remember to do have actions
6 # for "archclean" and "archdep" for cleaning up and making dependencies for
9 # This file is subject to the terms and conditions of the GNU General Public
10 # License. See the file "COPYING" in the main directory of this archive
13 # Copyright (c) 2003, 2004 Red Hat Inc.
14 # - Written by David Howells <dhowells@redhat.com>
15 # - Derived from arch/m68knommu/Makefile,
16 # Copyright (c) 1999,2001 D. Jeff Dionne <jeff@lineo.ca>,
17 # Rt-Control Inc. / Lineo, Inc.
19 # Copyright (C) 1998,1999 D. Jeff Dionne <jeff@uclinux.org>,
20 # Kenneth Albanowski <kjahds@kjahds.com>,
22 # Based on arch/m68k/Makefile:
23 # Copyright (C) 1994 by Hamish Macdonald
27 UTS_SYSNAME
= -DUTS_SYSNAME
=\"Linux
\"
29 UTS_SYSNAME
= -DUTS_SYSNAME
=\"uClinux
\"
32 KBUILD_AFLAGS_MODULE
+= -G0
-mlong-calls
33 KBUILD_CFLAGS_MODULE
+= -G0
-mlong-calls
35 ifdef CONFIG_GPREL_DATA_8
38 ifdef CONFIG_GPREL_DATA_4
41 ifdef CONFIG_GPREL_DATA_NONE
47 #LDFLAGS_vmlinux := -Map linkmap.txt
49 ifdef CONFIG_GC_SECTIONS
50 KBUILD_CFLAGS
+= -ffunction-sections
-fdata-sections
53 ifndef CONFIG_FRAME_POINTER
54 KBUILD_CFLAGS
+= -mno-linked-fp
57 ifdef CONFIG_CPU_FR451_COMPILE
58 KBUILD_CFLAGS
+= -mcpu
=fr450
59 KBUILD_AFLAGS
+= -mcpu
=fr450
61 ifdef CONFIG_CPU_FR551_COMPILE
62 KBUILD_CFLAGS
+= -mcpu
=fr550
63 KBUILD_AFLAGS
+= -mcpu
=fr550
65 KBUILD_CFLAGS
+= -mcpu
=fr400
66 KBUILD_AFLAGS
+= -mcpu
=fr400
70 # pretend the kernel is going to run on an FR400 with no media-fp unit
71 # - reserve CC3 for use with atomic ops
72 # - all the extra registers are dealt with only at context switch time
73 KBUILD_CFLAGS
+= -mno-fdpic
-mgpr-32
-msoft-float
-mno-media
74 KBUILD_CFLAGS
+= -ffixed-fcc3
-ffixed-cc3
-ffixed-gr15
-ffixed-icc2
75 KBUILD_AFLAGS
+= -mno-fdpic
77 head-y
:= arch
/frv
/kernel
/head.o
79 core-y
+= arch
/frv
/kernel
/ arch
/frv
/mm
/
80 libs-y
+= arch
/frv
/lib
/
82 core-
$(CONFIG_MB93090_MB00
) += arch
/frv
/mb93090-mb00
/
87 $(Q
)$(MAKE
) $(build
)=arch
/frv
/boot
$@
90 $(Q
)$(MAKE
) $(clean)=arch
/frv
/boot