blob: 9e3e060290e0895529c864d7e6892e0c47708f43 [file] [log] [blame]
Chen Liqin6bc9a392009-06-12 22:01:00 +08001#
2# arch/score/Makefile
3#
4# This file is subject to the terms and conditions of the GNU General Public
5# License. See the file "COPYING" in the main directory of this archive
6# for more details.
7#
8
9KBUILD_DEFCONFIG := spct6600_defconfig
10CROSS_COMPILE := score-linux-
11
12#
13# CPU-dependent compiler/assembler options for optimization.
14#
15cflags-y += -G0 -pipe -mel -mnhwloop -D__SCOREEL__ \
16 -D__linux__ -ffunction-sections -ffreestanding
17
18#
19# Board-dependent options and extra files
20#
21KBUILD_AFLAGS += $(cflags-y)
22KBUILD_CFLAGS += $(cflags-y)
Lennox Wudf9e4d12013-09-14 14:41:22 +080023KBUILD_AFLAGS_MODULE +=
24KBUILD_CFLAGS_MODULE +=
Chen Liqin6bc9a392009-06-12 22:01:00 +080025LDFLAGS += --oformat elf32-littlescore
26LDFLAGS_vmlinux += -G0 -static -nostdlib
27
28head-y := arch/score/kernel/head.o
29libs-y += arch/score/lib/
30core-y += arch/score/kernel/ arch/score/mm/
31
32boot := arch/score/boot
33
34vmlinux.bin: vmlinux
35 $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
36
37archclean:
38 @$(MAKE) $(clean)=$(boot)
39
40define archhelp
41 echo ' vmlinux.bin - Raw binary boot image'
42 echo
Lucas De Marchi25985ed2011-03-30 22:57:33 -030043 echo ' These will be default as appropriate for a configured platform.'
Chen Liqin6bc9a392009-06-12 22:01:00 +080044endef