18c2ecf20Sopenharmony_ci# BK Id: %F% %I% %G% %U% %#% 28c2ecf20Sopenharmony_ci# 38c2ecf20Sopenharmony_ci# This file is included by the global makefile so that you can add your own 48c2ecf20Sopenharmony_ci# architecture-specific flags and dependencies. Remember to do have actions 58c2ecf20Sopenharmony_ci# for "archclean" and "archdep" for cleaning up and making dependencies for 68c2ecf20Sopenharmony_ci# this architecture 78c2ecf20Sopenharmony_ci# 88c2ecf20Sopenharmony_ci# This file is subject to the terms and conditions of the GNU General Public 98c2ecf20Sopenharmony_ci# License. See the file "COPYING" in the main directory of this archive 108c2ecf20Sopenharmony_ci# for more details. 118c2ecf20Sopenharmony_ci# 128c2ecf20Sopenharmony_ci# Copyright (C) 1994 by Linus Torvalds 138c2ecf20Sopenharmony_ci# Modifications for the OpenRISC architecture: 148c2ecf20Sopenharmony_ci# Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com> 158c2ecf20Sopenharmony_ci# Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 168c2ecf20Sopenharmony_ci# 178c2ecf20Sopenharmony_ci# Based on: 188c2ecf20Sopenharmony_ci# arch/i386/Makefile 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciKBUILD_DEFCONFIG := or1ksim_defconfig 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciOBJCOPYFLAGS := -O binary -R .note -R .comment -S 238c2ecf20Sopenharmony_ciLIBGCC := $(shell $(CC) $(KBUILD_CFLAGS) -print-libgcc-file-name) 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciKBUILD_CFLAGS += -pipe -ffixed-r10 -D__linux__ 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciifeq ($(CONFIG_OPENRISC_HAVE_INST_MUL),y) 288c2ecf20Sopenharmony_ci KBUILD_CFLAGS += $(call cc-option,-mhard-mul) 298c2ecf20Sopenharmony_cielse 308c2ecf20Sopenharmony_ci KBUILD_CFLAGS += $(call cc-option,-msoft-mul) 318c2ecf20Sopenharmony_ciendif 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciifeq ($(CONFIG_OPENRISC_HAVE_INST_DIV),y) 348c2ecf20Sopenharmony_ci KBUILD_CFLAGS += $(call cc-option,-mhard-div) 358c2ecf20Sopenharmony_cielse 368c2ecf20Sopenharmony_ci KBUILD_CFLAGS += $(call cc-option,-msoft-div) 378c2ecf20Sopenharmony_ciendif 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_cihead-y := arch/openrisc/kernel/head.o 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_cicore-y += arch/openrisc/lib/ \ 428c2ecf20Sopenharmony_ci arch/openrisc/kernel/ \ 438c2ecf20Sopenharmony_ci arch/openrisc/mm/ 448c2ecf20Sopenharmony_cilibs-y += $(LIBGCC) 458c2ecf20Sopenharmony_ci 468c2ecf20Sopenharmony_ciifneq '$(CONFIG_OPENRISC_BUILTIN_DTB)' '""' 478c2ecf20Sopenharmony_ciBUILTIN_DTB := y 488c2ecf20Sopenharmony_cielse 498c2ecf20Sopenharmony_ciBUILTIN_DTB := n 508c2ecf20Sopenharmony_ciendif 518c2ecf20Sopenharmony_cicore-$(BUILTIN_DTB) += arch/openrisc/boot/dts/ 52