summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-12-13 14:49:25 +0530
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-12-20 14:38:23 +0100
commit917b9eebbc6dd580e2fa5a4e2b18ea609655b19e (patch)
treec1b6c5c73db18a0daaca8327d28a0d5babd0f5cc /Rules.mak
parent1ce639990b6340a8b9f18d076c427fcf5a93695e (diff)
ARC port to uClibc
For this port, I would like to give due credit to: - Folks from Codito technologies (Sameer, Amit, Kanika, Ramana,...) who did the very first port - ARC UK from 2007-2009 (Joern, Irfan, Khurram, Phil... - Late Brendan Kehoe (may he RIP) Signed-off-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak9
1 files changed, 8 insertions, 1 deletions
diff --git a/Rules.mak b/Rules.mak
index bab3fc5b5..82a166c92 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -280,6 +280,7 @@ GCC_VER := $(subst ., ,$(GCC_VER))
GCC_MAJOR_VER ?= $(word 1,$(GCC_VER))
#GCC_MINOR_VER ?= $(word 2,$(GCC_VER))
+ifneq ($(TARGET_ARCH),arc)
ifeq ($(GCC_MAJOR_VER),4)
# shrinks code, results are from 4.0.2
# 0.36%
@@ -292,7 +293,7 @@ OPTIMIZATION += $(CFLAG_-fno-tree-dominator-opts)
$(eval $(call check-gcc-var,-fno-strength-reduce))
OPTIMIZATION += $(CFLAG_-fno-strength-reduce)
endif
-
+endif
# CPU_CFLAGS-y contain options which are not warnings,
# not include or library paths, and not optimizations.
@@ -551,6 +552,12 @@ ifeq ($(TARGET_ARCH),c6x)
CPU_LDFLAGS-y += $(CPU_CFLAGS)
endif
+ifeq ($(TARGET_ARCH),arc)
+ CPU_CFLAGS-y += -mlock -mswape
+ CPU_CFLAGS-$(CONFIG_ARC_CPU_700) += -mA7
+ CPU_LDFLAGS-y += $(CPU_CFLAGS) -marclinux
+endif
+
$(eval $(call check-gcc-var,$(PIEFLAG_NAME)))
PIEFLAG := $(CFLAG_$(PIEFLAG_NAME))
ifeq ($(PIEFLAG),)