summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorGuo Ren <ren_guo@c-sky.com>2017-12-26 11:03:18 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-26 11:13:34 (GMT)
commit88ee90d7060f7be2f20fdb79d4fa177fb8601b9d (patch)
treea21abf0678b694d16f92b6d7e207e51c01887865 /toolchain
parent0cb8ada4f1a8a4a0f69fbcab2497cebb8121683a (diff)
csky: bugfix csky compile error for abiv1 & abiv2.
This bugfix is depend on uclibc-ng patch: csky: remove -mcpu and -mhard-float from config Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/gcc/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/toolchain/gcc/Makefile b/toolchain/gcc/Makefile
index 929cf8a..2303e4b 100644
--- a/toolchain/gcc/Makefile
+++ b/toolchain/gcc/Makefile
@@ -122,7 +122,11 @@ GCC_CONFOPTS+= --disable-symvers
endif
ifeq ($(ADK_TARGET_ARCH_CSKY),y)
+ifeq ($(ADK_TARGET_CPU_CSKY_CK610),y)
GCC_CONFOPTS+= --with-cskyabi=abiv1
+else
+GCC_CONFOPTS+= --with-cskyabi=abiv2
+endif
endif
ifeq ($(ADK_TARGET_ARCH_METAG),y)