From patchwork Tue Oct 6 10:06:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gwenhael Goavec-Merou X-Patchwork-Id: 526678 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id B4372140D71 for ; Tue, 6 Oct 2015 21:11:30 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 0D64591211; Tue, 6 Oct 2015 10:11:29 +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 f9HAZJgf4+Gm; Tue, 6 Oct 2015 10:11:28 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 2160491213; Tue, 6 Oct 2015 10:11:28 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id E5DC71C0FF2 for ; Tue, 6 Oct 2015 10:11:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id DE52591220 for ; Tue, 6 Oct 2015 10:11:26 +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 QyhsI3dc8iM8 for ; Tue, 6 Oct 2015 10:11:25 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by whitealder.osuosl.org (Postfix) with ESMTPS id C7F3691213 for ; Tue, 6 Oct 2015 10:11:25 +0000 (UTC) Received: from serveur.trabucayre.com (unknown [78.252.129.8]) by smtp3-g21.free.fr (Postfix) with ESMTP id 0A317A6220; Tue, 6 Oct 2015 12:11:22 +0200 (CEST) From: Gwenhael Goavec-Merou To: buildroot@busybox.net Date: Tue, 6 Oct 2015 12:06:54 +0200 Message-Id: <1444126016-8815-1-git-send-email-gwenj@trabucayre.com> X-Mailer: git-send-email 2.1.4 Cc: Gwenhael Goavec-Merou Subject: [Buildroot] [PATCH v5 1/3] python-numpy: introduce ARCH_SUPPORTS hidden variable X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 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" From: Gwenhael Goavec-Merou Some packages selects python-numpy. This package has a some CPU specific code. To simplify and avoid duplicate dependencies this patch introduce an hidden ARCH_SUPPORTS variable. Signed-off-by: Gwenhael Goavec-Merou Reviewed-by: Arnout Vandecappelle (Essensium/Mind) --- Changes v4 -> v5: * Re-add hidden variable. --- package/python-numpy/Config.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/package/python-numpy/Config.in b/package/python-numpy/Config.in index f8170f8..f25102a 100644 --- a/package/python-numpy/Config.in +++ b/package/python-numpy/Config.in @@ -1,9 +1,13 @@ -config BR2_PACKAGE_PYTHON_NUMPY - bool "python-numpy" +config BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS + bool # Numpy has some CPU specific code depends on BR2_aarch64 || BR2_arm || BR2_armeb || BR2_i386 \ || BR2_mips || BR2_mipsel || BR2_powerpc || BR2_powerpc64 \ || BR2_sh || BR2_x86_64 + +config BR2_PACKAGE_PYTHON_NUMPY + bool "python-numpy" + depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS help NumPy is the fundamental package for scientific computing with Python.