aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Guo Ren <ren_guo@c-sky.com>2019-05-31 14:39:02 +0800
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-05-31 22:59:57 +0200
commit9f0e3ff8a09a9352a9772195f06d454b827a6aab (patch)
treeadb6cef62de38d7c9351470b8df7face6ab12745
parent20d6e092d8be6b08c2a010c4c7354d8932079aa9 (diff)
downloadbuildroot-9f0e3ff8a09a9352a9772195f06d454b827a6aab.tar.gz
buildroot-9f0e3ff8a09a9352a9772195f06d454b827a6aab.tar.bz2
package/Makefile: add C-SKY ABI variable value
In preparation for adding support for the C-SKY architecture in the internal toolchain backend, we need to make sure that GNU_TARGET_NAME will contain the appropriate ABI, i.e abiv1 or abiv2 depending on the selected C-SKY core. Signed-off-by: Guo Ren <ren_guo@c-sky.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/Makefile.in9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/Makefile.in b/package/Makefile.in
index dc818a2c18..f05b9cc3aa 100644
--- a/package/Makefile.in
+++ b/package/Makefile.in
@@ -70,6 +70,15 @@ ABI := $(ABI)hf
endif
endif
+# For C-SKY abiv1 & abiv2
+ifeq ($(BR2_csky),y)
+ifeq ($(BR2_ck610),y)
+ABI = abiv1
+else
+ABI = abiv2
+endif
+endif
+
# For FSL PowerPC there's SPE
ifeq ($(BR2_powerpc_SPE),y)
ABI = spe