From patchwork Fri May 29 09:38:46 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Angelo Compagnucci X-Patchwork-Id: 477728 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 35A1C140E56 for ; Fri, 29 May 2015 19:39:14 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=t9mZRgQQ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id E1AE5850A5; Fri, 29 May 2015 09:39:11 +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 XO9TikNRUuCg; Fri, 29 May 2015 09:39:09 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 4D17B8BFB9; Fri, 29 May 2015 09:39:05 +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 29E941C087D for ; Fri, 29 May 2015 09:39:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 24D3C94CB0 for ; Fri, 29 May 2015 09:39:02 +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 p3XrDtDjY8mL for ; Fri, 29 May 2015 09:39:01 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by hemlock.osuosl.org (Postfix) with ESMTPS id 60FB694C2E for ; Fri, 29 May 2015 09:39:01 +0000 (UTC) Received: by wgv5 with SMTP id 5so57708555wgv.1 for ; Fri, 29 May 2015 02:39:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6ud2CALcSQo8lZgFRNJ8ht5lp2eOJDUkLRQDSEnay6U=; b=t9mZRgQQ2NRabpdGRio9H6LplizdpOTIUDFbgfi7mCjYdTI1fHjqxvqvapLmt1Debq r4dyws2kgokwRgDVFC1AG3v2Io8Xy25wlHy5CeyP/gTEa0KguuJAO7HIG2RsCmYJA+11 qQIOpkTY6ZuPZHC4fJtyQ8mo7le0PlIr8FI99hYk3hIOdHM9EFLsYD92vH5ab//gvL3y h1gq37iOrC6LXByS7mKxaz8l2jlqpVMVJDvLUA+N4cpBG7x3Sz4RMcmzuzmb0DlZyPe9 YAJhcSVlBBJ7ZSiY4SGCje1hagrwpnNXBXYXKwriACJIKWf1KRx0aBEAz6i0BWeEfzZq TgyA== X-Received: by 10.180.88.72 with SMTP id be8mr4658258wib.45.1432892339992; Fri, 29 May 2015 02:38:59 -0700 (PDT) Received: from localhost.localdomain ([89.202.204.100]) by mx.google.com with ESMTPSA id lz17sm2210670wic.24.2015.05.29.02.38.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 29 May 2015 02:38:59 -0700 (PDT) From: Angelo Compagnucci To: buildroot@buildroot.org Date: Fri, 29 May 2015 11:38:46 +0200 Message-Id: <1432892326-10261-4-git-send-email-angelo.compagnucci@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1432892326-10261-1-git-send-email-angelo.compagnucci@gmail.com> References: <1432892326-10261-1-git-send-email-angelo.compagnucci@gmail.com> Subject: [Buildroot] [PATCH 3/3] boot/at91bootstrap3: download via custom git url 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" This patch adds the option to download at91bootstrap3 from a custom git URL. This is a requirement for all that boards that use a custom at91bootstrap3 version. Signed-off-by: Angelo Compagnucci --- boot/at91bootstrap3/Config.in | 34 ++++++++++++++++++++++++++++++++++ boot/at91bootstrap3/at91bootstrap3.mk | 9 ++++++++- 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in index 8ac40ed..9f2f49b 100644 --- a/boot/at91bootstrap3/Config.in +++ b/boot/at91bootstrap3/Config.in @@ -10,6 +10,40 @@ config BR2_TARGET_AT91BOOTSTRAP3 if BR2_TARGET_AT91BOOTSTRAP3 +choice + + prompt "AT91 Bootstrap 3 version" + +config BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION + bool "3.7.2" + +config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT + bool "Custom Git repository" + help + This option allows Buildroot to get the AT91 Bootstrap 3 source + code from a Git repository. + +endchoice + +if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT + +config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL + string "URL of custom repository" + +config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION + string "Custom repository version" + help + Revision to use in the typical format used by Git + E.G. a sha id, a tag, branch, .. + +endif + +config BR2_TARGET_AT91BOOTSTRAP3_VERSION + string + default "v3.7.2" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION + default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_VERSION \ + if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT + config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR string "custom patch dir" help diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk index b73821e..fae2e8e 100644 --- a/boot/at91bootstrap3/at91bootstrap3.mk +++ b/boot/at91bootstrap3/at91bootstrap3.mk @@ -4,8 +4,15 @@ # ################################################################################ -AT91BOOTSTRAP3_VERSION = v3.7.2 +AT91BOOTSTRAP3_VERSION = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_VERSION)) + +ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT),y) +AT91BOOTSTRAP3_SITE = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_REPO_URL)) +AT91BOOTSTRAP3_SITE_METHOD = git +else AT91BOOTSTRAP3_SITE = $(call github,linux4sam,at91bootstrap,$(AT91BOOTSTRAP3_VERSION)) +endif + AT91BOOTSTRAP3_LICENSE = BSD-2c AT91BOOTSTRAP3_LICENSE_FILES = main.c