[V2,1/9] arch/csky: Add VDSP and FLOAT_ABI compiler options.
diff mbox series

Message ID 1557305915-11247-1-git-send-email-guoren@kernel.org
State New
Headers show
Series
  • [V2,1/9] arch/csky: Add VDSP and FLOAT_ABI compiler options.
Related show

Commit Message

Guo Ren May 8, 2019, 8:58 a.m. UTC
From: Guo Ren <ren_guo@c-sky.com>

We never use BR2_CSKY_DSP in buildroot and we use VDSP instead. For
float compiling, we need -mfloat-abi=xxx.

Signed-off-by: Guo Ren <ren_guo@c-sky.com>
---
 arch/Config.in.csky | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

Comments

Guo Ren May 13, 2019, 5:46 a.m. UTC | #1
Ping, Are there any wrong with the patchsets ?

Best Regards
 Guo Ren

On Wed, May 08, 2019 at 04:58:27PM +0800, guoren@kernel.org wrote:
> From: Guo Ren <ren_guo@c-sky.com>
> 
> We never use BR2_CSKY_DSP in buildroot and we use VDSP instead. For
> float compiling, we need -mfloat-abi=xxx.
> 
> Signed-off-by: Guo Ren <ren_guo@c-sky.com>
> ---
>  arch/Config.in.csky | 10 +++++++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/Config.in.csky b/arch/Config.in.csky
> index e88e4e2..4622eb9 100644
> --- a/arch/Config.in.csky
> +++ b/arch/Config.in.csky
> @@ -23,9 +23,13 @@ config BR2_CSKY_FPU
>  	  Floating-Point Coprocessor or if you don't need FPU support
>  	  for your user-space programs.
>  
> -config BR2_CSKY_DSP
> -	bool "Enable DSP enhanced instructions"
> -	depends on BR2_ck810 || BR2_ck807
> +config BR2_CSKY_VDSP
> +	bool "Enable VDSP 3.0 enhanced instructions Co-processor"
> +	depends on BR2_ck860
> +
> +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
>

Patch
diff mbox series

diff --git a/arch/Config.in.csky b/arch/Config.in.csky
index e88e4e2..4622eb9 100644
--- a/arch/Config.in.csky
+++ b/arch/Config.in.csky
@@ -23,9 +23,13 @@  config BR2_CSKY_FPU
 	  Floating-Point Coprocessor or if you don't need FPU support
 	  for your user-space programs.
 
-config BR2_CSKY_DSP
-	bool "Enable DSP enhanced instructions"
-	depends on BR2_ck810 || BR2_ck807
+config BR2_CSKY_VDSP
+	bool "Enable VDSP 3.0 enhanced instructions Co-processor"
+	depends on BR2_ck860
+
+config BR2_GCC_TARGET_FLOAT_ABI
+	default "soft"		if !BR2_CSKY_FPU
+	default "hard"		if BR2_CSKY_FPU
 
 config BR2_ARCH
 	default "csky"