Author: nbd
Date: 2016-01-18 18:52:03 +0100 (Mon, 18 Jan 2016)
New Revision: 48326
Modified:
trunk/include/target.mk
trunk/target/linux/arc770/Makefile
Log:
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 <[email protected]>
Cc: Felix Fietkau <[email protected]>
Cc: Jo-Philipp Wich <[email protected]>
Cc: Jonas Gorski <[email protected]>
Modified: trunk/include/target.mk
===================================================================
--- trunk/include/target.mk 2016-01-18 17:51:54 UTC (rev 48325)
+++ trunk/include/target.mk 2016-01-18 17:52:03 UTC (rev 48326)
@@ -263,6 +263,7 @@
endif
ifeq ($(ARCH),arc)
CPU_TYPE ?= arc700
+ CPU_CFLAGS += -matomic
CPU_CFLAGS_arc700 = -marc700
endif
DEFAULT_CFLAGS=$(strip $(CPU_CFLAGS) $(CPU_CFLAGS_$(CPU_TYPE))
$(CPU_CFLAGS_$(CPU_SUBTYPE)))
Modified: trunk/target/linux/arc770/Makefile
===================================================================
--- trunk/target/linux/arc770/Makefile 2016-01-18 17:51:54 UTC (rev 48325)
+++ trunk/target/linux/arc770/Makefile 2016-01-18 17:52:03 UTC (rev 48326)
@@ -9,7 +9,6 @@
ARCH:=arc
BOARD:=arc770
BOARDNAME:=Synopsys DesignWare ARC 770D
-CFLAGS:=-Os -pipe -fno-caller-saves -matomic
MAINTAINER:=Alexey Brodkin <[email protected]>
SUBTARGETS:=generic
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits