From patchwork Tue Feb 12 14:13:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kpa_info@yahoo.fr X-Patchwork-Id: 219860 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id 64CEA2C0326 for ; Wed, 13 Feb 2013 01:15:15 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C6CA1101BD5; Tue, 12 Feb 2013 14:15:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zEKSS0mKR7Hc; Tue, 12 Feb 2013 14:14:54 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 1CA8E102447; Tue, 12 Feb 2013 14:14:18 +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 378F78F753 for ; Tue, 12 Feb 2013 14:14:33 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B4AA580AE8 for ; Tue, 12 Feb 2013 14:14:25 +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 0lPoZDH8YnL6 for ; Tue, 12 Feb 2013 14:14:21 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from nm17.bullet.mail.ird.yahoo.com (nm17.bullet.mail.ird.yahoo.com [77.238.189.70]) by whitealder.osuosl.org (Postfix) with SMTP id 8C4E28148E for ; Tue, 12 Feb 2013 14:14:17 +0000 (UTC) Received: from [77.238.189.230] by nm17.bullet.mail.ird.yahoo.com with NNFMP; 12 Feb 2013 14:14:16 -0000 Received: from [46.228.39.119] by tm11.bullet.mail.ird.yahoo.com with NNFMP; 12 Feb 2013 14:14:16 -0000 Received: from [127.0.0.1] by smtp156.mail.ir2.yahoo.com with NNFMP; 12 Feb 2013 14:14:16 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1360678456; bh=mS5jihq943NgdkddWIVAiJB5I+KK/d/iYRGzc71spjU=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References; b=6kC6kcTAWN7uM0bmAqofXxw556rYzoF13TIxWNZaAxj/kJl+Vte1HdQbTW1vC8U7u7uEUsk79+xzzBWJoCErBgEp8fqsvgbKKKd6d+/J4ZmqsAY5nPy9mA4y+ykuNW0MHALnH7eF9m4RoZEV+egV02MoAL3jmnmhAWlehiGe26w= X-Yahoo-Newman-Id: 314740.84126.bm@smtp156.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: OOOrxkoVM1l0vszsf3CAK0lqr0GGVTuNJ_F3ZqKpVHLAzOd J2e7oBfakJ3_rRAQF1qlX.0u3N0Rs3UnafU_BvlYEmgk0kxXfbJtVh0GZ9xl kzWPnDSl0YieBkHf2gWq_wTJ__qa9AdAmjb6Z1v_h3xTtDHF1LLt0PYHqDaf I56j.YWJvA5Qwo6dsglzC1IpiytJAKVuRXZ7HICD4g3KAcCpVt_u0PpHbPlC xtjBeksftW.PrmyJJIxWbZQpsohSws6b5K_c2unEqlRJE1jIUbHtPqc6uYFy CHqGNokJOPLDxP5h7yQacxhNOBWwuqiG59pDhr65hwXK.EicRRlVYyKW0R5n v6X7wPQN.d0qw1DAq1cXzMw6Xg76BNGOD6E_zWZLWmKw7AQ9i.3cUlfzp7L2 SoTHT98eVbX6Ghpf_sjJ7CRX8tKsCTZfVuuFrCwd5AdvZVI0RbhHuesh8YV2 ogi1pCi4FNjYi6EDNc7b5kU.uSS6L4v8G06DTPb7axMval9NXoidjZcz_3_k - X-Yahoo-SMTP: gXxkLaeswBDA9gtBSIbQ8XWSflp0 Received: from kpa-move.lan.sensometrix.ch (kpa_info@109.164.253.69 with login) by smtp156.mail.ir2.yahoo.com with SMTP; 12 Feb 2013 14:14:16 +0000 UTC From: Patrick Gerber To: buildroot@busybox.net Date: Tue, 12 Feb 2013 15:13:59 +0100 Message-Id: <1360678441-3199-4-git-send-email-kpa_info@yahoo.fr> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360678441-3199-1-git-send-email-kpa_info@yahoo.fr> References: <1360678441-3199-1-git-send-email-kpa_info@yahoo.fr> Subject: [Buildroot] [PATCH 3/5] Add common declaration to ease the support of both version 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 Define a new variable called PYTHON_GENERIC_DEPENDENCIES either to "python" or "python3" depending of the selected Python version. This is needed to easily set dependencies for packages that could be used either with Python 2 or Python 3. Signed-off-by: Patrick Gerber --- package/python-generic/python-generic.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 package/python-generic/python-generic.mk diff --git a/package/python-generic/python-generic.mk b/package/python-generic/python-generic.mk new file mode 100644 index 0000000..0cf0e9d --- /dev/null +++ b/package/python-generic/python-generic.mk @@ -0,0 +1,16 @@ +############################################################# +# +# python-generic +# +############################################################# +# PYTHON_GENERIC_DEPENDENCIES is defined to the selected python +# version. + +ifeq ($(BR2_PACKAGE_PYTHON),y) + PYTHON_GENERIC_DEPENDENCIES = python +endif + +ifeq ($(BR2_PACKAGE_PYTHON3),y) + PYTHON_GENERIC_DEPENDENCIES = python3 +endif +