From patchwork Wed Apr 17 07:41:41 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 237158 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id E3A922C0149 for ; Wed, 17 Apr 2013 17:42:02 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 3BD5E317F3; Wed, 17 Apr 2013 07:42:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ezRi7RRYp2TT; Wed, 17 Apr 2013 07:41:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 4774731801; Wed, 17 Apr 2013 07:41:59 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id B59208F7A0 for ; Wed, 17 Apr 2013 07:42:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 8DBDFA0238 for ; Wed, 17 Apr 2013 07:41:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Jma0vdHVg9Ty for ; Wed, 17 Apr 2013 07:41:51 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pd0-f182.google.com (mail-pd0-f182.google.com [209.85.192.182]) by hemlock.osuosl.org (Postfix) with ESMTPS id 73A19A0018 for ; Wed, 17 Apr 2013 07:41:51 +0000 (UTC) Received: by mail-pd0-f182.google.com with SMTP id 3so737490pdj.41 for ; Wed, 17 Apr 2013 00:41:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:x-mailer:in-reply-to :references; bh=qYYZzxnahCXj2cpUy2poA1GH6b99A1EjmCIZNdo0+aA=; b=Dmy6MVTnKqZ2aWBfKOzQbPtDLlOJt0eLgfBKgqRTFhWkA1+5iahTonPlGz/gUN3IJ3 yEC4yekJbN2dssuxyBaUEPmkvxBCBMkvmDuqWaEbhwlb+aAIiYX4cy7gbtJFA2qwVH89 RD7Sy5KNbLEtUwTh1/amHjQ8KnbGUNc9lTnfzbvSh+h23R8Wg1kvtqL8qx/PENztZudL 4ppfZAPn2hbZv9QaAOzurwE+ITiT25lOuiGEG9K7+Ks2JcZs8Nv50sfo5OjGFOirSwak IhyYjb8zAeYOMe4zkLXl1uoO/sJvd1LhD6ucttIybjz1AwRYWrZ1y7mb+4cpHItOUGUh E/Cw== X-Received: by 10.68.252.227 with SMTP id zv3mr7974261pbc.14.1366184511772; Wed, 17 Apr 2013 00:41:51 -0700 (PDT) Received: from ld2036.tmt.telital.com.com ([213.205.6.118]) by mx.google.com with ESMTPS id ts3sm5340560pbc.12.2013.04.17.00.41.49 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 17 Apr 2013 00:41:51 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Wed, 17 Apr 2013 09:41:41 +0200 Message-Id: <1366184503-16875-2-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1366184503-16875-1-git-send-email-fabio.porcedda@gmail.com> References: <1366184503-16875-1-git-send-email-fabio.porcedda@gmail.com> Subject: [Buildroot] [PATCH v2 1/3] barebox: add custom version option 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 Add custom version option as used in the linux kernel. This way we can easily specify newer and older version. Remove the list of the older versions because is obsoleted by the new custom version option that is more flexible. Signed-off-by: Fabio Porcedda --- boot/barebox/Config.in | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/boot/barebox/Config.in b/boot/barebox/Config.in index 581cc52..af97be7 100644 --- a/boot/barebox/Config.in +++ b/boot/barebox/Config.in @@ -12,18 +12,14 @@ choice help Select the specific Barebox version you want to use -config BR2_TARGET_BAREBOX_2013_01 - bool "2013.01.0" - -config BR2_TARGET_BAREBOX_2013_02 - bool "2013.02.0" - -config BR2_TARGET_BAREBOX_2013_03 - bool "2013.03.0" - -config BR2_TARGET_BAREBOX_2013_04 +config BR2_TARGET_BAREBOX_LATEST_VERSION bool "2013.04.0" +config BR2_TARGET_BAREBOX_CUSTOM_VERSION + bool "Custom version" + help + This option allows to use a specific official versions + config BR2_TARGET_BAREBOX_CUSTOM_TARBALL bool "Custom tarball" @@ -32,6 +28,10 @@ config BR2_TARGET_BAREBOX_CUSTOM_GIT endchoice +config BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE + string "Barebox version" + depends on BR2_TARGET_BAREBOX_CUSTOM_VERSION + if BR2_TARGET_BAREBOX_CUSTOM_TARBALL config BR2_TARGET_BAREBOX_CUSTOM_TARBALL_LOCATION @@ -41,10 +41,8 @@ endif config BR2_TARGET_BAREBOX_VERSION string - default "2013.01.0" if BR2_TARGET_BAREBOX_2013_01 - default "2013.02.0" if BR2_TARGET_BAREBOX_2013_02 - default "2013.03.0" if BR2_TARGET_BAREBOX_2013_03 - default "2013.04.0" if BR2_TARGET_BAREBOX_2013_04 + default "2013.04.0" if BR2_TARGET_BAREBOX_LATEST_VERSION + default $BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE if BR2_TARGET_BAREBOX_CUSTOM_VERSION default "custom" if BR2_TARGET_BAREBOX_CUSTOM_TARBALL default $BR2_TARGET_BAREBOX_CUSTOM_GIT_VERSION if BR2_TARGET_BAREBOX_CUSTOM_GIT