From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [v1 1/1] uboot: Add local directory option to menuconfig
Date: Mon, 27 Jun 2016 22:57:46 +0200 [thread overview]
Message-ID: <20160627205746.GC3714@free.fr> (raw)
In-Reply-To: <1466994356-15411-1-git-send-email-Aduskett@gmail.com>
Adam, All,
(Peter, Thomas, Arnout: questions for you, below.)
On 2016-06-26 22:25 -0400, Adam Duskett spake thusly:
> Just like the kernel menuconfig, this allows for a user to
> specify a local directory for the uboot source code.
I'm not sure this is a great idea... I'm not sure it was a great idea to
allow it for the Linux kernel either, mind you.
The problem with local sources is that they make the build
non-reproducible.
If your concern is to be able to use a local source during development,
we have the override-srcdir mechanism just for that. See in the
menuconfig, in the "Build options" sub-menu:
($(CONFIG_DIR)/local.mk) location of a package override file
So, by default, Buildroot will look for a file named "local.mk" in the
same directory with the .config file. You can change the location where
to find that file. If it does not exist, that's not an error. If it
exists, Buildroot will parse it.
The local.mk file is suposed to include override-srcdir directives, like
so:
MY_PACKAGE_OVERRIDE_SRCDIR = /path/to/my/local/source/for/my/package
For example:
LINUX_OVERRIDE_SRCDIR = /path/to/my/linux
UBOOT_OVERRIDE_SRCDIR = /path/to/my/uboot
With those, Buildroot will conclude that it should download the affected
package, and just use the sources it finds in the specified directory.
Note that Buildroot will not apply any patches in this case; you are
responsbile for propagating whatever patch you need. Buildroot jsut use
the sources as-is.
And looking at the commit that introduced it for linux, it is exactly
the case that would have been covered by an override-srcdir:
commit 73da2ff6f718f2889e3c5024d899f8d58f502863
Author: Rafal Fabich <rafal.fabich@gmail.com>
Date: Sat Feb 23 19:03:30 2013 +0100
Added local directory as source of kernel code
Add the option to use a local directory as the source for
building the Linux kernel, which can be useful during
kernel development.
Signed-off-by: Rafal Fabich <rafal.fabich@gmail.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tested-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Peter, any reason that you applied this patch at the time?
Arnout, anything you remember for giving your ACK?
So, I would think that:
1- we don't want this for U-Boot;
2- we should drop it for Linux.
Peter, Thomas, Arnout: what do you think?
Regards,
Yann E. MORIN.
> Also had to change ifeq ($(UBOOT_VERSION),custom) to
> ifeq ($(BR2_TARGET_UBOOT_CUSTOM_TARBALL),y) in uboot.mk,
> this is also just like the kernel's make file as well.
>
> Signed-off-by: Adam Duskett <Aduskett@gmail.com>
> ---
> boot/uboot/Config.in | 15 +++++++++++++++
> boot/uboot/uboot.mk | 5 ++++-
> 2 files changed, 19 insertions(+), 1 deletion(-)
>
> diff --git a/boot/uboot/Config.in b/boot/uboot/Config.in
> index 9ffbb51..5a91461 100644
> --- a/boot/uboot/Config.in
> +++ b/boot/uboot/Config.in
> @@ -57,6 +57,12 @@ config BR2_TARGET_UBOOT_CUSTOM_HG
> config BR2_TARGET_UBOOT_CUSTOM_SVN
> bool "Custom Subversion repository"
>
> +config BR2_TARGET_UBOOT_CUSTOM_LOCAL
> + bool "Local directory"
> + help
> + This option allows Buildroot to get the Linux kernel source
> + code from a local directory.
> +
> endchoice
>
> config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
> @@ -84,6 +90,13 @@ config BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION
>
> endif
>
> +config BR2_TARGET_UBOOT_CUSTOM_LOCAL_PATH
> + string "Path to the local directory"
> + depends on BR2_TARGET_UBOOT_CUSTOM_LOCAL
> + help
> + Path to the local directory with the uboot source code.
> +
> +
> config BR2_TARGET_UBOOT_VERSION
> string
> default "2016.05" if BR2_TARGET_UBOOT_LATEST_VERSION
> @@ -92,9 +105,11 @@ config BR2_TARGET_UBOOT_VERSION
> default "custom" if BR2_TARGET_UBOOT_CUSTOM_TARBALL
> default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \
> if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || BR2_TARGET_UBOOT_CUSTOM_SVN
> + default "custom" if BR2_TARGET_UBOOT_CUSTOM_LOCAL
>
> config BR2_TARGET_UBOOT_PATCH
> string "Custom U-Boot patches"
> + depends on !BR2_TARGET_UBOOT_CUSTOM_LOCAL
> help
> A space-separated list of patches to apply to U-Boot.
> Each patch can be described as an URL, a local file path,
> diff --git a/boot/uboot/uboot.mk b/boot/uboot/uboot.mk
> index a2274ee..86671bd 100644
> --- a/boot/uboot/uboot.mk
> +++ b/boot/uboot/uboot.mk
> @@ -12,12 +12,15 @@ UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt
>
> UBOOT_INSTALL_IMAGES = YES
>
> -ifeq ($(UBOOT_VERSION),custom)
> +ifeq ($(BR2_TARGET_UBOOT_CUSTOM_TARBALL),y)
> # Handle custom U-Boot tarballs as specified by the configuration
> UBOOT_TARBALL = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION))
> UBOOT_SITE = $(patsubst %/,%,$(dir $(UBOOT_TARBALL)))
> UBOOT_SOURCE = $(notdir $(UBOOT_TARBALL))
> BR_NO_CHECK_HASH_FOR += $(UBOOT_SOURCE)
> +else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_LOCAL),y)
> +UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_LOCAL_PATH))
> +UBOOT_SITE_METHOD = local
> else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_GIT),y)
> UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL))
> UBOOT_SITE_METHOD = git
> --
> 2.7.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2016-06-27 20:57 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-27 2:25 [Buildroot] [v1 1/1] uboot: Add local directory option to menuconfig Adam Duskett
2016-06-27 20:57 ` Yann E. MORIN [this message]
2016-06-27 21:44 ` Peter Korsgaard
2016-06-27 22:27 ` Arnout Vandecappelle
2016-06-27 22:39 ` Yann E. MORIN
2016-06-27 22:50 ` Arnout Vandecappelle
2016-06-28 1:36 ` aduskett at gmail.com
2016-06-28 6:23 ` Peter Korsgaard
2016-06-28 22:54 ` Arnout Vandecappelle
2016-06-29 6:44 ` Peter Korsgaard
2016-06-28 1:51 ` Adam Duskett
2016-06-28 6:14 ` Peter Korsgaard
2016-06-28 14:24 ` Thomas Petazzoni
2016-06-28 17:32 ` Peter Korsgaard
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=20160627205746.GC3714@free.fr \
--to=yann.morin.1998@free.fr \
--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