Back to home page

LXR

 
 

    


0001 # BK Id: %F% %I% %G% %U% %#%
0002 #
0003 # This file is included by the global makefile so that you can add your own
0004 # architecture-specific flags and dependencies. Remember to do have actions
0005 # for "archclean" and "archdep" for cleaning up and making dependencies for
0006 # this architecture
0007 #
0008 # This file is subject to the terms and conditions of the GNU General Public
0009 # License.  See the file "COPYING" in the main directory of this archive
0010 # for more details.
0011 #
0012 # Copyright (C) 1994 by Linus Torvalds
0013 # Modifications for the OpenRISC architecture:
0014 # Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
0015 # Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
0016 #
0017 # Based on:
0018 # arch/i386/Makefile
0019 
0020 KBUILD_DEFCONFIG := or1ksim_defconfig
0021 
0022 LDFLAGS         :=
0023 OBJCOPYFLAGS    := -O binary -R .note -R .comment -S
0024 LDFLAGS_vmlinux :=
0025 LIBGCC          := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name)
0026 
0027 KBUILD_CFLAGS   += -pipe -ffixed-r10 -D__linux__
0028 
0029 ifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y)
0030         KBUILD_CFLAGS += $(call cc-option,-mhard-mul)
0031 else
0032         KBUILD_CFLAGS += $(call cc-option,-msoft-mul)
0033 endif
0034 
0035 ifeq ($(CONFIG_OPENRISC_HAVE_INST_DIV),y)
0036         KBUILD_CFLAGS += $(call cc-option,-mhard-div)
0037 else
0038         KBUILD_CFLAGS += $(call cc-option,-msoft-div)
0039 endif
0040 
0041 head-y          := arch/openrisc/kernel/head.o
0042 
0043 core-y          += arch/openrisc/lib/ \
0044                    arch/openrisc/kernel/ \
0045                    arch/openrisc/mm/
0046 libs-y          += $(LIBGCC)
0047 
0048 ifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""'
0049 BUILTIN_DTB := y
0050 else
0051 BUILTIN_DTB := n
0052 endif
0053 core-$(BUILTIN_DTB) += arch/openrisc/boot/dts/
0054 
0055 all: vmlinux