All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cody P Schafer <cody@linux.vnet.ibm.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 4/9] powerpc: add BR2_POWERPC_CPU_HAS_SPE to replace adhoc deps/checks
Date: Mon, 12 May 2014 21:03:14 -0700	[thread overview]
Message-ID: <1399953799-32054-5-git-send-email-cody@linux.vnet.ibm.com> (raw)
In-Reply-To: <1399953799-32054-1-git-send-email-cody@linux.vnet.ibm.com>

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
---
 arch/Config.in.powerpc | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/arch/Config.in.powerpc b/arch/Config.in.powerpc
index ae70a8a..56360d7 100644
--- a/arch/Config.in.powerpc
+++ b/arch/Config.in.powerpc
@@ -1,3 +1,6 @@
+config BR2_POWERPC_CPU_HAS_SPE
+	bool
+
 choice
 	prompt "Target Architecture Variant"
 	depends on BR2_powerpc
@@ -62,8 +65,10 @@ config BR2_powerpc_970
 	bool "970"
 config BR2_powerpc_8540
 	bool "8540 / e500v1"
+	select BR2_POWERPC_CPU_HAS_SPE
 config BR2_powerpc_8548
 	bool "8548 / e500v2"
+	select BR2_POWERPC_CPU_HAS_SPE
 config BR2_powerpc_e300c2
 	bool "e300c2"
 config BR2_powerpc_e300c3
@@ -75,17 +80,17 @@ endchoice
 choice
 	prompt "Target ABI"
 	depends on BR2_powerpc
-	default BR2_powerpc_SPE if BR2_powerpc_8540 || BR2_powerpc_8548
+	default BR2_powerpc_SPE if BR2_POWERPC_CPU_HAS_SPE
 	default BR2_powerpc_CLASSIC
 	help
 	  Application Binary Interface to use
 
 config BR2_powerpc_CLASSIC
 	bool "Classic"
-	depends on !(BR2_powerpc_8540 || BR2_powerpc_8548)
+	depends on !BR2_POWERPC_CPU_HAS_SPE
 config BR2_powerpc_SPE
 	bool "SPE"
-	depends on BR2_powerpc_8540 || BR2_powerpc_8548
+	depends on BR2_POWERPC_CPU_HAS_SPE
 endchoice
 
 config BR2_POWERPC_SOFT_FLOAT
-- 
1.9.3

  parent reply	other threads:[~2014-05-13  4:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-13  4:03 [Buildroot] [PATCH v4 0/9] powerpc: powerpc64 and powerpc64le support Cody P Schafer
2014-05-13  4:03 ` [Buildroot] [PATCH v4 1/9] package/gdb: add gdb 7.7.x (7.7.1) and 7.6.x (7.6.2) Cody P Schafer
2014-05-13  4:21   ` Baruch Siach
2014-05-13  4:03 ` [Buildroot] [PATCH v4 2/9] package/gdb: change default gdb from 7.5 to 7.6 Cody P Schafer
2014-05-13  4:03 ` [Buildroot] [PATCH v4 3/9] package/binutils: add depends for powerpc64le (only 2.24 works) Cody P Schafer
2014-05-13  4:03 ` Cody P Schafer [this message]
2014-05-13  4:03 ` [Buildroot] [PATCH v4 5/9] powerpc: add BR2_POWERPC_CPU_HAS_ALTIVEC to replace adhoc deps/checks Cody P Schafer
2014-05-13  4:03 ` [Buildroot] [PATCH v4 6/9] powerpc: mark 32-bit only powerpc cpus to prep for adding powerpc64 support Cody P Schafer
2014-05-13  4:03 ` [Buildroot] [PATCH v4 7/9] powerpc: add power{4,5,6,7,8} cpus Cody P Schafer
2014-05-13  4:03 ` [Buildroot] [PATCH v4 8/9] powerpc: remove unneeded dependencies Cody P Schafer
2014-05-13  4:03 ` [Buildroot] [PATCH v4 9/9] powerpc: add powerpc64 and powerpc64le support Cody P Schafer

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=1399953799-32054-5-git-send-email-cody@linux.vnet.ibm.com \
    --to=cody@linux.vnet.ibm.com \
    --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.