From patchwork Tue May 13 04:03:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cody P Schafer X-Patchwork-Id: 348222 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 717601400B8 for ; Tue, 13 May 2014 14:04:05 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id AD10C8C04E; Tue, 13 May 2014 04:04:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z5IjsEC23eLS; Tue, 13 May 2014 04:04:02 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id D03A98C154; Tue, 13 May 2014 04:03:47 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 779BE1C2156 for ; Tue, 13 May 2014 04:03:35 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 713B28BF79 for ; Tue, 13 May 2014 04:03:35 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id b3CI3RSwcTfv for ; Tue, 13 May 2014 04:03:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from e8.ny.us.ibm.com (e8.ny.us.ibm.com [32.97.182.138]) by whitealder.osuosl.org (Postfix) with ESMTPS id 9901A8BFBF for ; Tue, 13 May 2014 04:03:31 +0000 (UTC) Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 May 2014 00:03:30 -0400 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e8.ny.us.ibm.com (192.168.1.108) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 May 2014 00:03:28 -0400 Received: from b01cxnp23032.gho.pok.ibm.com (b01cxnp23032.gho.pok.ibm.com [9.57.198.27]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id D837B38C804A for ; Tue, 13 May 2014 00:03:27 -0400 (EDT) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by b01cxnp23032.gho.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s4D43RUq64356538 for ; Tue, 13 May 2014 04:03:27 GMT Received: from d01av01.pok.ibm.com (localhost [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s4D43RA5017925 for ; Tue, 13 May 2014 00:03:27 -0400 Received: from kernel.stglabs.ibm.com (kernel.stglabs.ibm.com [9.114.214.19]) by d01av01.pok.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s4D43QFQ017866 for ; Tue, 13 May 2014 00:03:27 -0400 Received: from negative.ibm.com (unknown [9.80.100.93]) by kernel.stglabs.ibm.com (Postfix) with SMTP id B573D2401EB; Mon, 12 May 2014 21:03:26 -0700 (PDT) From: Cody P Schafer To: buildroot@busybox.net Date: Mon, 12 May 2014 21:03:14 -0700 Message-Id: <1399953799-32054-5-git-send-email-cody@linux.vnet.ibm.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1399953799-32054-1-git-send-email-cody@linux.vnet.ibm.com> References: <1399953799-32054-1-git-send-email-cody@linux.vnet.ibm.com> X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14051304-0320-0000-0000-0000033F1567 Subject: [Buildroot] [PATCH v4 4/9] powerpc: add BR2_POWERPC_CPU_HAS_SPE to replace adhoc deps/checks X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Signed-off-by: Cody P Schafer --- 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