From 917b9eebbc6dd580e2fa5a4e2b18ea609655b19e Mon Sep 17 00:00:00 2001 From: Vineet Gupta Date: Fri, 13 Dec 2013 14:49:25 +0530 Subject: 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 Signed-off-by: Bernhard Reutner-Fischer --- Rules.mak | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'Rules.mak') 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),) -- cgit v1.2.3