[Buildroot] [PATCH 1 of 3] linux: add support for custom Mercurial repository

Peter Korsgaard jacmet at uclibc.org
Sun Jul 21 22:09:49 UTC 2013


>>>>> "Thomas" == Thomas De Schampheleire <patrickdepinguin+buildroot at gmail.com> writes:

 Thomas> Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
 Thomas> ---
 Thomas>  linux/Config.in |  27 ++++++++++++++++++---------
 Thomas>  linux/linux.mk  |   5 ++++-
 Thomas>  2 files changed, 22 insertions(+), 10 deletions(-)

 Thomas> diff --git a/linux/Config.in b/linux/Config.in
 Thomas> --- a/linux/Config.in
 Thomas> +++ b/linux/Config.in
 Thomas> @@ -52,6 +52,12 @@ config BR2_LINUX_KERNEL_CUSTOM_GIT
 Thomas>  	  This option allows Buildroot to get the Linux kernel source
 Thomas>  	  code from a Git repository.
 
 Thomas> +config BR2_LINUX_KERNEL_CUSTOM_HG
 Thomas> +	bool "Custom Mercurial repository"
 Thomas> +	help
 Thomas> +	  This option allows Buildroot to get the Linux kernel source
 Thomas> +	  code from a Mercurial repository.
 Thomas> +
 Thomas>  endchoice
 
 Thomas>  config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
 Thomas> @@ -62,25 +68,28 @@ config BR2_LINUX_KERNEL_CUSTOM_TARBALL_L
 Thomas>  	string "URL of custom kernel tarball"
 Thomas>  	depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL
 
 Thomas> -config BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL
 Thomas> -	string "URL of custom Git repository"
 Thomas> -	depends on BR2_LINUX_KERNEL_CUSTOM_GIT
 Thomas> +if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG
 
 Thomas> -config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION
 Thomas> -	string "Custom Git version"
 Thomas> -	default "HEAD"
 Thomas> -	depends on BR2_LINUX_KERNEL_CUSTOM_GIT

Please add Config.in.legacy entries for these.

 Thomas> +config BR2_LINUX_KERNEL_CUSTOM_REPO_URL
 Thomas> +	string "URL of custom repository"
 Thomas> +
 Thomas> +config BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION
 Thomas> +	string "Custom repository version"
 Thomas> +	default "HEAD" if BR2_LINUX_KERNEL_CUSTOM_GIT
 Thomas> +	default "tip" if BR2_LINUX_KERNEL_CUSTOM_HG

I know we had this already for git, but these are not really good
defaults as buildroot will only download these once and not update the
tarballs even though HEAD/tip changes - So I think we should just
default to "".

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list