1*f8c4a270SJonas Bonn# BK Id: %F% %I% %G% %U% %#% 2*f8c4a270SJonas Bonn# 3*f8c4a270SJonas Bonn# This file is included by the global makefile so that you can add your own 4*f8c4a270SJonas Bonn# architecture-specific flags and dependencies. Remember to do have actions 5*f8c4a270SJonas Bonn# for "archclean" and "archdep" for cleaning up and making dependencies for 6*f8c4a270SJonas Bonn# this architecture 7*f8c4a270SJonas Bonn# 8*f8c4a270SJonas Bonn# This file is subject to the terms and conditions of the GNU General Public 9*f8c4a270SJonas Bonn# License. See the file "COPYING" in the main directory of this archive 10*f8c4a270SJonas Bonn# for more details. 11*f8c4a270SJonas Bonn# 12*f8c4a270SJonas Bonn# Copyright (C) 1994 by Linus Torvalds 13*f8c4a270SJonas Bonn# Modifications for the OpenRISC architecture: 14*f8c4a270SJonas Bonn# Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com> 15*f8c4a270SJonas Bonn# Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 16*f8c4a270SJonas Bonn# 17*f8c4a270SJonas Bonn# Based on: 18*f8c4a270SJonas Bonn# arch/i386/Makefile 19*f8c4a270SJonas Bonn 20*f8c4a270SJonas BonnKBUILD_DEFCONFIG := or1ksim_defconfig 21*f8c4a270SJonas Bonn 22*f8c4a270SJonas BonnLDFLAGS := 23*f8c4a270SJonas BonnOBJCOPYFLAGS := -O binary -R .note -R .comment -S 24*f8c4a270SJonas BonnLDFLAGS_vmlinux := 25*f8c4a270SJonas BonnLIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 26*f8c4a270SJonas Bonn 27*f8c4a270SJonas BonnKBUILD_CFLAGS += -pipe -ffixed-r10 28*f8c4a270SJonas Bonn 29*f8c4a270SJonas Bonnifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y) 30*f8c4a270SJonas Bonn KBUILD_CFLAGS += $(call cc-option,-mhard-mul) 31*f8c4a270SJonas Bonnelse 32*f8c4a270SJonas Bonn KBUILD_CFLAGS += $(call cc-option,-msoft-mul) 33*f8c4a270SJonas Bonnendif 34*f8c4a270SJonas Bonn 35*f8c4a270SJonas Bonnifeq ($(CONFIG_OPENRISC_HAVE_INST_DIV),y) 36*f8c4a270SJonas Bonn KBUILD_CFLAGS += $(call cc-option,-mhard-div) 37*f8c4a270SJonas Bonnelse 38*f8c4a270SJonas Bonn KBUILD_CFLAGS += $(call cc-option,-msoft-div) 39*f8c4a270SJonas Bonnendif 40*f8c4a270SJonas Bonn 41*f8c4a270SJonas Bonnhead-y := arch/openrisc/kernel/head.o arch/openrisc/kernel/init_task.o 42*f8c4a270SJonas Bonn 43*f8c4a270SJonas Bonncore-y += arch/openrisc/lib/ \ 44*f8c4a270SJonas Bonn arch/openrisc/kernel/ \ 45*f8c4a270SJonas Bonn arch/openrisc/mm/ 46*f8c4a270SJonas Bonnlibs-y += $(LIBGCC) 47*f8c4a270SJonas Bonn 48*f8c4a270SJonas Bonnifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""' 49*f8c4a270SJonas BonnBUILTIN_DTB := y 50*f8c4a270SJonas Bonnelse 51*f8c4a270SJonas BonnBUILTIN_DTB := n 52*f8c4a270SJonas Bonnendif 53*f8c4a270SJonas Bonncore-$(BUILTIN_DTB) += arch/openrisc/boot/ 54*f8c4a270SJonas Bonn 55*f8c4a270SJonas Bonnall: vmlinux 56