arc: clean-up and move CFLAGS to include/target.mk

Most of currently mentioned CFLAGS in arc770/Makefile
are not really required because:
 [1] "-Os -pipe" are set by default in include/target.mk
 [2] "-fno-caller-saves" gets enabled via menuconfig
     as an extra compiler flag for developers

So the only one that makes sense is "-matomic" and
that one is really essential. Without it many software
packges won't build complainin on unresolved atomic ops.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Jo-Philipp Wich <jow@openwrt.org>
Cc: Jonas Gorski <jogo@openwrt.org>

SVN-Revision: 48326
This commit is contained in:
Felix Fietkau 2016-01-18 17:52:03 +00:00
parent 018e84f58d
commit e620f4d6f8
2 changed files with 1 additions and 1 deletions

View file

@ -263,6 +263,7 @@ ifeq ($(DUMP),1)
endif endif
ifeq ($(ARCH),arc) ifeq ($(ARCH),arc)
CPU_TYPE ?= arc700 CPU_TYPE ?= arc700
CPU_CFLAGS += -matomic
CPU_CFLAGS_arc700 = -marc700 CPU_CFLAGS_arc700 = -marc700
endif endif
DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE))) DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE)) $(CPU_CFLAGS_$(CPU_SUBTYPE)))

View file

@ -9,7 +9,6 @@ include $(TOPDIR)/rules.mk
ARCH:=arc ARCH:=arc
BOARD:=arc770 BOARD:=arc770
BOARDNAME:=Synopsys DesignWare ARC 770D BOARDNAME:=Synopsys DesignWare ARC 770D
CFLAGS:=-Os -pipe -fno-caller-saves -matomic
MAINTAINER:=Alexey Brodkin <abrodkin@synopsys.com> MAINTAINER:=Alexey Brodkin <abrodkin@synopsys.com>
SUBTARGETS:=generic SUBTARGETS:=generic