From patchwork Mon May 6 14:10:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Porcedda X-Patchwork-Id: 241678 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 731082C00CB for ; Tue, 7 May 2013 00:11:21 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CD2EAA0157; Mon, 6 May 2013 14:11:18 +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 yx9Ic01ORzNo; Mon, 6 May 2013 14:11:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id B6D50A00EB; Mon, 6 May 2013 14:11:11 +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 1C31A8F753 for ; Mon, 6 May 2013 14:11:17 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id B99078B242; Mon, 6 May 2013 14:11:11 +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 ESOtN2BGpccS; Mon, 6 May 2013 14:11:10 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f53.google.com (mail-pb0-f53.google.com [209.85.160.53]) by whitealder.osuosl.org (Postfix) with ESMTPS id EBD648B1E6; Mon, 6 May 2013 14:11:09 +0000 (UTC) Received: by mail-pb0-f53.google.com with SMTP id un1so2005759pbc.12 for ; Mon, 06 May 2013 07:11:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=n+IM1gNQmDVeJAe6MCvPvp8rWIi3UB/OlBjO4AkwMe4=; b=XjTrQwRBl00qW1wILDXZ4UNgSNL2xETojrm/vsL83vy1DxD+gLX6UIJaC9COqWUVmI q6v6MqwF8XKtN5Bha2r8RXw65LnggpCWXB4bNYIrs2ib4f5zNVRJC9amZws19zR3VEMl nrt7YtkrnsO0E+95wg2aefgrGCatgVsoRVf3cs55dfGr51Ti3MXKFrt29onYMGeLShg4 Qk3D8MROSn/a1Ph5T0jtNOLyL5GPa5I6aYTmlxVBIIlc1L/cNGVLxnexVd6bZhj7x37f 4vl2RQr+cBLRyYG14KQbiK+xOfthQJ7zv3V7Gj5KQFAduUY4VCj8Ty3pdwrSd4yvz3z3 9HFg== X-Received: by 10.66.102.3 with SMTP id fk3mr26783254pab.181.1367849467528; Mon, 06 May 2013 07:11:07 -0700 (PDT) Received: from ld2036.tmt.telital.com.com ([213.205.6.118]) by mx.google.com with ESMTPSA id sa6sm24047464pbb.26.2013.05.06.07.11.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 06 May 2013 07:11:06 -0700 (PDT) From: Fabio Porcedda To: buildroot@uclibc.org Date: Mon, 6 May 2013 16:10:53 +0200 Message-Id: <1367849457-31738-2-git-send-email-fabio.porcedda@gmail.com> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1367849457-31738-1-git-send-email-fabio.porcedda@gmail.com> References: <1367849457-31738-1-git-send-email-fabio.porcedda@gmail.com> Cc: thomas.petazzoni@free-electrons.com Subject: [Buildroot] [PATCH v4 1/5] 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 | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/boot/barebox/Config.in b/boot/barebox/Config.in index 581cc52..47926cb 100644 --- a/boot/barebox/Config.in +++ b/boot/barebox/Config.in @@ -8,22 +8,17 @@ config BR2_TARGET_BAREBOX if BR2_TARGET_BAREBOX choice prompt "version" - default BR2_TARGET_BAREBOX_2013_04 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 +27,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 +40,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