summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak15
1 files changed, 15 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 0aa29a737..b553cd41c 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -453,6 +453,21 @@ ifeq ($(TARGET_ARCH),cris)
PIEFLAG_NAME:=-fpie
endif
+ifeq ($(TARGET_ARCH),csky)
+ # In csky gas implement, we use $t and $d to detect .text or literal pool.
+ # So we couldn't strip them for objdump.
+ STRIP_FLAGS += -K "$$"t -K "$$"d
+
+ CPU_CFLAGS-$(CK610) += -mcpu=ck610f
+ CPU_CFLAGS-$(CK810) += -mcpu=ck810f
+ CPU_CFLAGS-$(CK807) += -mcpu=ck807f
+
+ CPU_CFLAGS-$(UCLIBC_HAS_FPU) += -mhard-float
+
+ CPU_CFLAGS-$(ARCH_LITTLE_ENDIAN) += -mlittle-endian
+ CPU_CFLAGS-$(ARCH_BIG_ENDIAN) += -mbig-endian
+endif
+
ifeq ($(TARGET_ARCH),m68k)
# -fPIC is only supported for 68020 and above. It is not supported
# for 68000, 68010, or Coldfire.