Makefile (f81483aaeb59da530b286fe5d081e1705eb5c886) | Makefile (129ab0d2d9f38b9d43df35235fc66c6740d6928b) |
---|---|
1# SPDX-License-Identifier: GPL-2.0-only 2# 3# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 4# 5 6KBUILD_DEFCONFIG := haps_hs_smp_defconfig 7 8ifeq ($(CROSS_COMPILE),) 9CROSS_COMPILE := $(call cc-cross-prefix, arc-linux- arceb-linux-) 10endif 11 12cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__ 13 14tune-mcpu-def-$(CONFIG_ISA_ARCOMPACT) := -mcpu=arc700 15tune-mcpu-def-$(CONFIG_ISA_ARCV2) := -mcpu=hs38 16 | 1# SPDX-License-Identifier: GPL-2.0-only 2# 3# Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 4# 5 6KBUILD_DEFCONFIG := haps_hs_smp_defconfig 7 8ifeq ($(CROSS_COMPILE),) 9CROSS_COMPILE := $(call cc-cross-prefix, arc-linux- arceb-linux-) 10endif 11 12cflags-y += -fno-common -pipe -fno-builtin -mmedium-calls -D__linux__ 13 14tune-mcpu-def-$(CONFIG_ISA_ARCOMPACT) := -mcpu=arc700 15tune-mcpu-def-$(CONFIG_ISA_ARCV2) := -mcpu=hs38 16 |
17ifeq ($(CONFIG_ARC_TUNE_MCPU),"") | 17ifeq ($(CONFIG_ARC_TUNE_MCPU),) |
18cflags-y += $(tune-mcpu-def-y) 19else | 18cflags-y += $(tune-mcpu-def-y) 19else |
20tune-mcpu := $(shell echo $(CONFIG_ARC_TUNE_MCPU)) | 20tune-mcpu := $(CONFIG_ARC_TUNE_MCPU) |
21ifneq ($(call cc-option,$(tune-mcpu)),) 22cflags-y += $(tune-mcpu) 23else 24# The flag provided by 'CONFIG_ARC_TUNE_MCPU' option isn't known by this compiler 25# (probably the compiler is too old). Use ISA default mcpu flag instead as a safe option. 26$(warning ** WARNING ** CONFIG_ARC_TUNE_MCPU flag '$(tune-mcpu)' is unknown, fallback to '$(tune-mcpu-def-y)') 27cflags-y += $(tune-mcpu-def-y) 28endif --- 86 unchanged lines hidden --- | 21ifneq ($(call cc-option,$(tune-mcpu)),) 22cflags-y += $(tune-mcpu) 23else 24# The flag provided by 'CONFIG_ARC_TUNE_MCPU' option isn't known by this compiler 25# (probably the compiler is too old). Use ISA default mcpu flag instead as a safe option. 26$(warning ** WARNING ** CONFIG_ARC_TUNE_MCPU flag '$(tune-mcpu)' is unknown, fallback to '$(tune-mcpu-def-y)') 27cflags-y += $(tune-mcpu-def-y) 28endif --- 86 unchanged lines hidden --- |