From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Brodkin Date: Tue, 3 Feb 2015 13:58:19 +0300 Subject: [U-Boot] [PATCH 11/12] arc: move CPU flags selection to the main "config.mk" In-Reply-To: <1422961100-1618-1-git-send-email-abrodkin@synopsys.com> References: <1422961100-1618-1-git-send-email-abrodkin@synopsys.com> Message-ID: <1422961100-1618-12-git-send-email-abrodkin@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de As a preparation to ARCv2 port submission we're moving CPU slection flags to a common location. Also it will allow us to have more flexible CPU specification, not only ISA version but CPU family as well checking CONFIG_ARC_CPU_xxx. Signed-off-by: Alexey Brodkin --- arch/arc/config.mk | 6 +++++- arch/arc/cpu/arcv1/config.mk | 7 ------- 2 files changed, 5 insertions(+), 8 deletions(-) delete mode 100644 arch/arc/cpu/arcv1/config.mk diff --git a/arch/arc/config.mk b/arch/arc/config.mk index 4f2d31f..3e75e60 100644 --- a/arch/arc/config.mk +++ b/arch/arc/config.mk @@ -27,8 +27,12 @@ ifdef CONFIG_ARC_MMU_VER CONFIG_MMU = 1 endif +ifdef CONFIG_CPU_ARC750D +PLATFORM_CPPFLAGS += -marc700 +endif + ifdef CONFIG_CPU_ARC770D -PLATFORM_CPPFLAGS += -mlock -mswape +PLATFORM_CPPFLAGS += -marc700 -mlock -mswape endif PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -gdwarf-2 diff --git a/arch/arc/cpu/arcv1/config.mk b/arch/arc/cpu/arcv1/config.mk deleted file mode 100644 index 3206ff4..0000000 --- a/arch/arc/cpu/arcv1/config.mk +++ /dev/null @@ -1,7 +0,0 @@ -# -# Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved. -# -# SPDX-License-Identifier: GPL-2.0+ -# - -PLATFORM_CPPFLAGS += -mA7 -- 2.1.0