From: guoren at kernel.org <guoren@kernel.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH V3 01/10] arch/csky: Use VDSP instead of DSP
Date: Wed, 29 May 2019 15:18:39 +0800 [thread overview]
Message-ID: <1559114328-23357-2-git-send-email-guoren@kernel.org> (raw)
In-Reply-To: <1559114328-23357-1-git-send-email-guoren@kernel.org>
From: Guo Ren <ren_guo@c-sky.com>
Use VDSP enhanced instructions Co-processor instead of DSP.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
---
arch/Config.in.csky | 17 +++--------------
arch/arch.mk.csky | 24 ++++++++++++++++++++++++
2 files changed, 27 insertions(+), 14 deletions(-)
create mode 100644 arch/arch.mk.csky
diff --git a/arch/Config.in.csky b/arch/Config.in.csky
index e88e4e2..3817a2d 100644
--- a/arch/Config.in.csky
+++ b/arch/Config.in.csky
@@ -23,9 +23,9 @@ 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 enhanced instructions Co-processor"
+ depends on BR2_CSKY_FPU
config BR2_ARCH
default "csky"
@@ -33,16 +33,5 @@ config BR2_ARCH
config BR2_ENDIAN
default "LITTLE"
-config BR2_GCC_TARGET_CPU
- default "ck610" if (BR2_ck610 && !BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck807" if (BR2_ck807 && !BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck807e" if (BR2_ck807 && !BR2_CSKY_FPU && BR2_CSKY_DSP)
- default "ck807f" if (BR2_ck807 && BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck807ef" if (BR2_ck807 && BR2_CSKY_FPU && BR2_CSKY_DSP)
- default "ck810" if (BR2_ck810 && !BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck810e" if (BR2_ck810 && !BR2_CSKY_FPU && BR2_CSKY_DSP)
- default "ck810f" if (BR2_ck810 && BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck810ef" if (BR2_ck810 && BR2_CSKY_FPU && BR2_CSKY_DSP)
-
config BR2_READELF_ARCH_NAME
default "CSKY"
diff --git a/arch/arch.mk.csky b/arch/arch.mk.csky
new file mode 100644
index 0000000..f2c90eb
--- /dev/null
+++ b/arch/arch.mk.csky
@@ -0,0 +1,24 @@
+#
+# Configure the GCC_TARGET_ARCH variable and append the
+# appropriate C-SKY ISA extensions.
+#
+
+ifeq ($(BR2_csky),y)
+
+ifeq ($(BR2_ck610),y)
+GCC_TARGET_CPU := ck610
+else ifeq ($(BR2_ck807),y)
+GCC_TARGET_CPU := ck807
+else ifeq ($(BR2_ck810),y)
+GCC_TARGET_CPU := ck810
+endif
+
+ifeq ($(BR2_CSKY_FPU),y)
+GCC_TARGET_CPU := $(GCC_TARGET_CPU)f
+endif
+
+ifeq ($(BR2_CSKY_VDSP),y)
+GCC_TARGET_CPU := $(GCC_TARGET_CPU)v
+endif
+
+endif
--
2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: guoren@kernel.org
To: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>,
arnout@mind.be
Cc: linux-csky@vger.kernel.org, buildroot@buildroot.org,
Guo Ren <ren_guo@c-sky.com>
Subject: [PATCH V3 01/10] arch/csky: Use VDSP instead of DSP
Date: Wed, 29 May 2019 15:18:39 +0800 [thread overview]
Message-ID: <1559114328-23357-2-git-send-email-guoren@kernel.org> (raw)
In-Reply-To: <1559114328-23357-1-git-send-email-guoren@kernel.org>
From: Guo Ren <ren_guo@c-sky.com>
Use VDSP enhanced instructions Co-processor instead of DSP.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
---
arch/Config.in.csky | 17 +++--------------
arch/arch.mk.csky | 24 ++++++++++++++++++++++++
2 files changed, 27 insertions(+), 14 deletions(-)
create mode 100644 arch/arch.mk.csky
diff --git a/arch/Config.in.csky b/arch/Config.in.csky
index e88e4e2..3817a2d 100644
--- a/arch/Config.in.csky
+++ b/arch/Config.in.csky
@@ -23,9 +23,9 @@ 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 enhanced instructions Co-processor"
+ depends on BR2_CSKY_FPU
config BR2_ARCH
default "csky"
@@ -33,16 +33,5 @@ config BR2_ARCH
config BR2_ENDIAN
default "LITTLE"
-config BR2_GCC_TARGET_CPU
- default "ck610" if (BR2_ck610 && !BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck807" if (BR2_ck807 && !BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck807e" if (BR2_ck807 && !BR2_CSKY_FPU && BR2_CSKY_DSP)
- default "ck807f" if (BR2_ck807 && BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck807ef" if (BR2_ck807 && BR2_CSKY_FPU && BR2_CSKY_DSP)
- default "ck810" if (BR2_ck810 && !BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck810e" if (BR2_ck810 && !BR2_CSKY_FPU && BR2_CSKY_DSP)
- default "ck810f" if (BR2_ck810 && BR2_CSKY_FPU && !BR2_CSKY_DSP)
- default "ck810ef" if (BR2_ck810 && BR2_CSKY_FPU && BR2_CSKY_DSP)
-
config BR2_READELF_ARCH_NAME
default "CSKY"
diff --git a/arch/arch.mk.csky b/arch/arch.mk.csky
new file mode 100644
index 0000000..f2c90eb
--- /dev/null
+++ b/arch/arch.mk.csky
@@ -0,0 +1,24 @@
+#
+# Configure the GCC_TARGET_ARCH variable and append the
+# appropriate C-SKY ISA extensions.
+#
+
+ifeq ($(BR2_csky),y)
+
+ifeq ($(BR2_ck610),y)
+GCC_TARGET_CPU := ck610
+else ifeq ($(BR2_ck807),y)
+GCC_TARGET_CPU := ck807
+else ifeq ($(BR2_ck810),y)
+GCC_TARGET_CPU := ck810
+endif
+
+ifeq ($(BR2_CSKY_FPU),y)
+GCC_TARGET_CPU := $(GCC_TARGET_CPU)f
+endif
+
+ifeq ($(BR2_CSKY_VDSP),y)
+GCC_TARGET_CPU := $(GCC_TARGET_CPU)v
+endif
+
+endif
--
2.7.4
next prev parent reply other threads:[~2019-05-29 7:18 UTC|newest]
Thread overview: 58+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-29 7:18 [Buildroot] [PATCH V3 00/10] Update arch/csky for buildroot guoren at kernel.org
2019-05-29 7:18 ` guoren
2019-05-29 7:18 ` guoren at kernel.org [this message]
2019-05-29 7:18 ` [PATCH V3 01/10] arch/csky: Use VDSP instead of DSP guoren
2019-05-29 7:21 ` [Buildroot] " Thomas Petazzoni
2019-05-29 7:21 ` Thomas Petazzoni
2019-05-29 7:30 ` [Buildroot] " Guo Ren
2019-05-29 7:30 ` Guo Ren
2019-05-29 7:56 ` [Buildroot] " Thomas Petazzoni
2019-05-29 7:56 ` Thomas Petazzoni
2019-05-29 8:12 ` [Buildroot] " Guo Ren
2019-05-29 8:12 ` Guo Ren
2019-05-29 8:38 ` [Buildroot] " Thomas Petazzoni
2019-05-29 8:38 ` Thomas Petazzoni
2019-05-29 9:02 ` [Buildroot] " Guo Ren
2019-05-29 9:02 ` Guo Ren
2019-05-29 9:06 ` [Buildroot] " Guo Ren
2019-05-29 9:06 ` Guo Ren
2019-05-29 9:23 ` [Buildroot] " Thomas Petazzoni
2019-05-29 9:23 ` Thomas Petazzoni
2019-05-29 9:45 ` [Buildroot] " Guo Ren
2019-05-29 9:45 ` Guo Ren
2019-05-29 11:58 ` [Buildroot] " Thomas Petazzoni
2019-05-29 11:58 ` Thomas Petazzoni
2019-05-29 12:34 ` [Buildroot] " Guo Ren
2019-05-29 12:34 ` Guo Ren
2019-05-29 7:18 ` [Buildroot] [PATCH V3 02/10] arch/csky: Add ck860 supported guoren at kernel.org
2019-05-29 7:18 ` guoren
2019-05-29 7:18 ` [Buildroot] [PATCH V3 03/10] arch/csky: Add FLOAT_ABI compiler options guoren at kernel.org
2019-05-29 7:18 ` guoren
2019-05-29 7:23 ` [Buildroot] " Thomas Petazzoni
2019-05-29 7:23 ` Thomas Petazzoni
2019-05-29 7:30 ` [Buildroot] " Guo Ren
2019-05-29 7:30 ` Guo Ren
2019-05-29 7:57 ` [Buildroot] " Thomas Petazzoni
2019-05-29 7:57 ` Thomas Petazzoni
2019-05-29 8:30 ` [Buildroot] " Guo Ren
2019-05-29 8:30 ` Guo Ren
2019-05-29 8:39 ` [Buildroot] " Thomas Petazzoni
2019-05-29 8:39 ` Thomas Petazzoni
2019-05-29 8:53 ` [Buildroot] " Guo Ren
2019-05-29 8:53 ` Guo Ren
2019-05-29 7:39 ` [Buildroot] " Guo Ren
2019-05-29 7:39 ` Guo Ren
2019-05-29 7:18 ` [Buildroot] [PATCH V3 04/10] arch/csky: Add ABI variable for toolchain build guoren at kernel.org
2019-05-29 7:18 ` guoren
2019-05-29 7:18 ` [Buildroot] [PATCH V3 05/10] package/binutils: Add C-SKY support guoren at kernel.org
2019-05-29 7:18 ` guoren
2019-05-29 7:18 ` [Buildroot] [PATCH V3 06/10] package/gcc: " guoren at kernel.org
2019-05-29 7:18 ` guoren
2019-05-29 7:18 ` [Buildroot] [PATCH V3 07/10] package/gdb: " guoren at kernel.org
2019-05-29 7:18 ` guoren
2019-05-29 7:18 ` [Buildroot] [PATCH V3 08/10] package/glibc: " guoren at kernel.org
2019-05-29 7:18 ` guoren
2019-05-29 7:18 ` [Buildroot] [PATCH V3 09/10] configs/qemu_cskyXXX_virt: new defconfig guoren at kernel.org
2019-05-29 7:18 ` guoren
2019-05-29 7:18 ` [Buildroot] [PATCH V3 10/10] arch/csky: Enable csky toolchain build guoren at kernel.org
2019-05-29 7:18 ` guoren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1559114328-23357-2-git-send-email-guoren@kernel.org \
--to=guoren@kernel.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.