Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] linux: support "local" as download method
Date: Thu, 8 Dec 2011 22:30:00 +0100	[thread overview]
Message-ID: <20111208223000.72d8e084@skate> (raw)
In-Reply-To: <CAEvN+1j08xz+a+sz_3vmUa8tQ18xnv+9KR2MA9E_ub-SZeerEA@mail.gmail.com>

Hello,

What this patch does is already possible through the "override source
directory" mechanism, which is available for every package.

It's true that the Linux package is special in that it is very likely
that many people will want to use a local source directory, but I'm
fearing that we will end up adding many of those
"<something>_CUSTOM_LOCAL" option that just duplicate what is possible
thanks to the override source directory mechanism.

See http://free-electrons.com/blog/buildroot-2011-11/ for more details
on this source directory override mechanism.

Best regards,

Thomas

Le Wed, 7 Dec 2011 20:09:20 +0800,
Tzu-Jung Lee <roylee17@gmail.com> a ?crit :

> Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com>
> ---
> ?linux/Config.in | ? 10 ++++++++++
> ?linux/linux.mk ?| ? ?3 +++
> ?2 files changed, 13 insertions(+), 0 deletions(-)
> 
> diff --git a/linux/Config.in b/linux/Config.in
> index dc6aa73..4053c41 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -53,6 +53,12 @@ config BR2_LINUX_KERNEL_CUSTOM_GIT
> ? ? ? ? ?This option allows Buildroot to get the Linux kernel source
> ? ? ? ? ?code from a Git repository.
> 
> +config BR2_LINUX_KERNEL_CUSTOM_LOCAL
> + ? ? ? bool "Custom local source tree"
> + ? ? ? help
> + ? ? ? ? This option allows Buildroot to get the Linux kernel source
> + ? ? ? ? code from a local repository.
> +
> ?endchoice
> 
> ?config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
> @@ -72,6 +78,10 @@ config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION
> ? ? ? ?string "Custom Git version"
> ? ? ? ?depends on BR2_LINUX_KERNEL_CUSTOM_GIT
> 
> +config BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH
> + ? ? ? string "Custom Local path"
> + ? ? ? depends on BR2_LINUX_KERNEL_CUSTOM_LOCAL
> +
> ?config BR2_LINUX_KERNEL_VERSION
> ? ? ? ?string
> ? ? ? ?default "3.1.4" if BR2_LINUX_KERNEL_3_1
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 5c5a1d2..d5617a2 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -13,6 +13,9 @@ LINUX_SOURCE = $(notdir $(LINUX_TARBALL))
> ?else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
> ?LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL))
> ?LINUX_SITE_METHOD = git
> +else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_LOCAL),y)
> +LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_LOCAL_PATH))
> +LINUX_SITE_METHOD = local
> ?else
> ?LINUX_SOURCE = linux-$(LINUX_VERSION).tar.bz2
> ?# In X.Y.Z, get X and Y. We replace dots and dashes by spaces in order
> --
> 1.7.8
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot



-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

  reply	other threads:[~2011-12-08 21:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1323255396-28263-1-git-send-email-tjlee@ambarella.com>
2011-12-07 12:09 ` [Buildroot] [PATCH] linux: support "local" as download method Tzu-Jung Lee
2011-12-08 21:30   ` Thomas Petazzoni [this message]
2011-12-09  2:44     ` Tzu-Jung Lee
2011-12-09 19:09       ` Thomas Petazzoni
2011-12-13 17:30       ` Arnout Vandecappelle

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=20111208223000.72d8e084@skate \
    --to=thomas.petazzoni@free-electrons.com \
    --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