diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-12-13 14:49:25 +0530 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2013-12-20 14:38:23 +0100 |
commit | 917b9eebbc6dd580e2fa5a4e2b18ea609655b19e (patch) | |
tree | c1b6c5c73db18a0daaca8327d28a0d5babd0f5cc /Rules.mak | |
parent | 1ce639990b6340a8b9f18d076c427fcf5a93695e (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.mak | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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),) |