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