[Buildroot] [PATCH V4 04/11] arch/csky: Add FLOAT_ABI compiler options

guoren at kernel.org guoren at kernel.org
Fri May 31 06:39:01 UTC 2019


From: Guo Ren <ren_guo at c-sky.com>

C-SKY CPU is seperated into two ABIs:
 - abiv1: mcore based ISA with ELF_NUM:39 and do not support FPU & VDSP.
          (CPU: 610)
 - abiv2: C-SKY own ISA with ELF_NUM:252 and support FPU & VDSP.
          (CPU: 807, 810, 860)

BR2_GCC_TARGET_FLOAT_ABI will have a value for abiv1. Except the value
will always be "soft" because there's no FPU support in ck610, which is
the only core using abiv1.

Signed-off-by: Guo Ren <ren_guo at c-sky.com>
Cc: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
---
 arch/Config.in.csky | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/Config.in.csky b/arch/Config.in.csky
index af9bbd5..a967d2f 100644
--- a/arch/Config.in.csky
+++ b/arch/Config.in.csky
@@ -30,6 +30,10 @@ config BR2_CSKY_VDSP
 	bool "Enable VDSP enhanced instructions Co-processor"
 	depends on BR2_CSKY_FPU
 
+config BR2_GCC_TARGET_FLOAT_ABI
+	default "soft"		if !BR2_CSKY_FPU
+	default "hard"		if BR2_CSKY_FPU
+
 config BR2_ARCH
 	default "csky"
 
-- 
2.7.4



More information about the buildroot mailing list