aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2019-07-18 23:06:27 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-08-01 10:15:17 +0200
commitb8aad93817633e46262f2fa0e150b01d51dd324a (patch)
treee7d56ca2bc94d12250e70be437d54bc987ab0920 /arch
parenta0b0976c93337b521ec7935bf536a00ff3896e0a (diff)
downloadbuildroot-b8aad93817633e46262f2fa0e150b01d51dd324a.tar.gz
buildroot-b8aad93817633e46262f2fa0e150b01d51dd324a.tar.bz2
arch/csky: restrict ck610 to the C-SKY gcc port
As Guo explained, upstream gcc does not support abi-v1 (only abi-v2), but ck610 needs abi-v1 [0] [1] To simplify things, we make the whole C-SKY architecture require gcc-9 or later, and add a single exception in gcc to force the ck610 to use the C-SKY port. Note that this does not change the default gcc version to be used for C-SKY: the C-SKY port is still always the default one; the gcc-9 version is only proposed as an alternative (except for ck610, of course). [0] http://lists.busybox.net/pipermail/buildroot/2019-July/254386.html [1] package/Makefile.in#73 Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Cc: Guo Ren <guoren@kernel.org> Cc: Arnout Vandecappelle <arnout@mind.be> Cc: Romain Naour <romain.naour@gmail.com> Acked-by: Guo Ren <guoren@kernel.org> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/Config.in3
-rw-r--r--arch/Config.in.csky2
2 files changed, 5 insertions, 0 deletions
diff --git a/arch/Config.in b/arch/Config.in
index d8d841b1a2..94bd2150ca 100644
--- a/arch/Config.in
+++ b/arch/Config.in
@@ -78,6 +78,9 @@ config BR2_aarch64_be
config BR2_csky
bool "csky"
select BR2_ARCH_HAS_MMU_MANDATORY
+ # Most variants are supported by gcc-9+, except one that is
+ # handled as a special exception in package/gcc/Config.in.host
+ select BR2_ARCH_NEEDS_GCC_AT_LEAST_9
help
csky is processor IP from china.
http://www.c-sky.com/
diff --git a/arch/Config.in.csky b/arch/Config.in.csky
index 4bdfbfae4b..7e2029f759 100644
--- a/arch/Config.in.csky
+++ b/arch/Config.in.csky
@@ -5,6 +5,8 @@ choice
Specific CPU variant to use
config BR2_ck610
+ # Not supported by upstream gcc <= 9, and handled as a special
+ # exception in package/gcc/Config.in.host
bool "ck610"
config BR2_ck807