Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/3] boot/at91bootstrap3: download via custom git url
Date: Mon, 01 Jun 2015 21:35:05 +0200	[thread overview]
Message-ID: <556CB3E9.6060802@mind.be> (raw)
In-Reply-To: <1432892326-10261-4-git-send-email-angelo.compagnucci@gmail.com>

On 05/29/15 11:38, Angelo Compagnucci wrote:
> 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 <angelo.compagnucci@gmail.com>
> ---
>  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

 There should be a check against an empty version in the custom repo case,
similar like it's done for uboot. Otherwise you get the cryptic:

>>> at91bootstrap3  Downloading
Doing full clone
fatal: The empty string is not a valid path
--2015-06-01 21:29:11--  http://sources.buildroot.net/at91bootstrap3-.tar.gz
Resolving sources.buildroot.net (sources.buildroot.net)... 176.9.16.109
Connecting to sources.buildroot.net (sources.buildroot.net)|176.9.16.109|:80...
connected.
HTTP request sent, awaiting response... 404 Not Found
2015-06-01 21:29:12 ERROR 404: Not Found.


 Otherwise, looks good to me.

 Regards,
 Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

      reply	other threads:[~2015-06-01 19:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-29  9:38 [Buildroot] [PATCH 0/3] Caring at91bootstrap3 Angelo Compagnucci
2015-05-29  9:38 ` [Buildroot] [PATCH 1/3] boot/at91bootstrap3: add license information Angelo Compagnucci
2015-05-31  8:43   ` Thomas Petazzoni
2015-06-01 16:03     ` Angelo Compagnucci
2015-06-01 19:17       ` Arnout Vandecappelle
2015-05-29  9:38 ` [Buildroot] [PATCH 2/3] boot/at91bootstrap3: bump to version 3.7.2 Angelo Compagnucci
2015-05-29  9:38 ` [Buildroot] [PATCH 3/3] boot/at91bootstrap3: download via custom git url Angelo Compagnucci
2015-06-01 19:35   ` Arnout Vandecappelle [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=556CB3E9.6060802@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox