Back to home page

LXR

 
 

    


0001 #
0002 # arch/score/Makefile
0003 #
0004 # This file is subject to the terms and conditions of the GNU General Public
0005 # License.  See the file "COPYING" in the main directory of this archive
0006 # for more details.
0007 #
0008 
0009 KBUILD_DEFCONFIG := spct6600_defconfig
0010 CROSS_COMPILE := score-linux-
0011 
0012 #
0013 # CPU-dependent compiler/assembler options for optimization.
0014 #
0015 cflags-y += -G0 -pipe -mel -mnhwloop -D__SCOREEL__ \
0016         -D__linux__ -ffunction-sections -ffreestanding
0017 
0018 #
0019 # Board-dependent options and extra files
0020 #
0021 KBUILD_AFLAGS += $(cflags-y)
0022 KBUILD_CFLAGS += $(cflags-y)
0023 KBUILD_AFLAGS_MODULE +=
0024 KBUILD_CFLAGS_MODULE +=
0025 LDFLAGS += --oformat elf32-littlescore
0026 LDFLAGS_vmlinux += -G0 -static -nostdlib
0027 
0028 head-y := arch/score/kernel/head.o
0029 libs-y += arch/score/lib/
0030 core-y += arch/score/kernel/ arch/score/mm/
0031 
0032 boot := arch/score/boot
0033 
0034 vmlinux.bin: vmlinux
0035         $(Q)$(MAKE) $(build)=$(boot) $(boot)/$@
0036 
0037 archclean:
0038         @$(MAKE) $(clean)=$(boot)
0039 
0040 define archhelp
0041         echo '  vmlinux.bin          - Raw binary boot image'
0042         echo
0043         echo '  These will be default as appropriate for a configured platform.'
0044 endef