Add local directory support for uboot
PATCH 1/1 Add local directory support for uboot
--- boot/uboot/Config.in | 12 ++++++++++++ boot/uboot/uboot.mk | 3 +++ 2 files changed, 15 insertions(+)
boot/uboot/Config.in +12 -0
@@ -34,6 +34,12 @@ config BR2_TARGET_UBOOT_CUSTOM_GIT config BR2_TARGET_UBOOT_CUSTOM_HG bool "Custom Mercurial repository" +config BR2_TARGET_UBOOT_CUSTOM_LOCAL + bool "Local directory" + help + This option allows Buildroot to get the u-boot source + code from a local directory. + endchoice config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE
@@ -70,6 +76,12 @@ config BR2_TARGET_UBOOT_VERSION default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \ if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG +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 u-boot source code. + config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR string "custom patch dir" help
boot/uboot/uboot.mk +3 -0
@@ -23,6 +23,9 @@ UBOOT_SITE_METHOD = git else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_HG),y) UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL)) UBOOT_SITE_METHOD = hg +else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_LOCAL),y) +LINUX_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_LOCAL_PATH)) +LINUX_SITE_METHOD = local else # Handle stable official U-Boot versions UBOOT_SITE = ftp://ftp.denx.de/pub/u-boot
Signature · 1 line
1.7.9.5
PATCH 1/1 Add local directory support for uboot
Hi Charles,
Quoted 41 lines · Charles Manning
Signed-off-by Charles Manning <[email protected]>--- boot/uboot/Config.in | 12 ++++++++++++ boot/uboot/uboot.mk | 3 +++ 2 files changed, 15 insertions(+)boot/uboot/Config.in +12
-0@@ -34,6 +34,12 @@ config BR2_TARGET_UBOOT_CUSTOM_GIT config BR2_TARGET_UBOOT_CUSTOM_HG bool "Custom Mercurial repository" +config BR2_TARGET_UBOOT_CUSTOM_LOCAL + bool "Local directory" + help + This option allows Buildroot to get the u-boot source + code from a local directory. + endchoice config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE@@ -70,6 +76,12 @@ config BR2_TARGET_UBOOT_VERSION default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \ if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG +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 u-boot source code. + config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR string "custom patch dir" helpboot/uboot/uboot.mk +0
-0
boot/uboot/uboot.mk UBOOT_SITE_METHOD = git · line 28
Quoted 6 lines
boot/uboot/uboot.mk +3
-0@@ -23,6 +23,9 @@ UBOOT_SITE_METHOD = git else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_HG),y) UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL)) UBOOT_SITE_METHOD = hg +else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_LOCAL),y) +LINUX_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_LOCAL_PATH)) +LINUX_SITE_METHOD = local
This cannot be write: you're overwriting LINUX variables from uboot.mk.
Note that there already exist mechanisms to achieve this. For development work, we have the _OVERRIDE_SRCDIR mechanism. See
http://buildroot.uclibc.org/downloads/manual/manual.html#_using_buildroot_during_development
If this is for a real project, you typically have buildroot under version control, and the local.mk file used for the _OVERRIDE_SRCDIR mechanism is not really intended to be placed under version control. However, using arbitrary contents of a directory is not a good idea anyway, so in this case you are better to placing the u-boot sources in a git or mercurial repository, and specify this repository with a given revision in the buildroot configuration.
Best regards,
Thomas
PATCH 1/1 Add local directory support for uboot
In reply to a message not in the archiveCharles Manning <[email protected]> schreef:
Quoted 74 lines · On Tuesday 29 July 2014 20:39:09 you wrote:
Quoted 3 lines
Hi Charles,
On Mon, Jul 28, 2014 at 1:58 AM, Charles Manning <[email protected]>
Quoted 42 lines · wrote:
Quoted 42 lines
Signed-off-by Charles Manning <[email protected]>--- boot/uboot/Config.in | 12 ++++++++++++ boot/uboot/uboot.mk | 3 +++ 2 files changed, 15 insertions(+)boot/uboot/Config.in +6
-0@@ -34,6 +34,12 @@ config BR2_TARGET_UBOOT_CUSTOM_GIT config BR2_TARGET_UBOOT_CUSTOM_HG bool "Custom Mercurial repository" +config BR2_TARGET_UBOOT_CUSTOM_LOCAL + bool "Local directory" + help + This option allows Buildroot to get the u-boot source + code from a local directory. + endchoice config BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE@@ -70,6 +76,12 @@ config BR2_TARGET_UBOOT_VERSION default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \ if BR2_TARGET_UBOOT_CUSTOM_GIT ||
BR2_TARGET_UBOOT_CUSTOM_HGboot/uboot/Config.in +6
-0+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 u-boot source code. + config BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR string "custom patch dir" helpboot/uboot/uboot.mk +0
-0@@ -23,6 +23,9 @@ UBOOT_SITE_METHOD = gitQuoted 8 lines
boot/uboot/uboot.mk UBOOT_SITE_METHOD = git · line 28
Quoted 6 lines
boot/uboot/uboot.mk +3
-0else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_HG),y) UBOOT_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_REPO_URL)) UBOOT_SITE_METHOD = hg +else ifeq ($(BR2_TARGET_UBOOT_CUSTOM_LOCAL),y) +LINUX_SITE = $(call qstrip,$(BR2_TARGET_UBOOT_CUSTOM_LOCAL_PATH)) +LINUX_SITE_METHOD = localThis cannot be write: you're overwriting LINUX variables from uboot.mk.
Thanks
You are correct. I sent the wrong patch!
Quoted 6 lines
Note that there already exist mechanisms to achieve this. For development work, we have the
_OVERRIDE_SRCDIRmechanism. See
http://buildroot.uclibc.org/downloads/manual/manual.html#_using_buildroot_during_developmentQuoted 7 lines
If this is for a real project, you typically have buildroot under version control, and the local.mk file used for the
_OVERRIDE_SRCDIRmechanism is not really intended to be placed under version control. However, using arbitrary contents of a directory is not a good idea anyway, so in this case you are better to placing the u-boot sources in a git or mercurial repository, and specify this repository with a given revision in the buildroot configuration.
Quoted 4 lines
Excellent.
Thanks for teaching me this.
Please keep the list in copy, then other developers are aware of this conclusion...
Best regards,
Thomas