[Buildroot] [PATCH] linux: add option to include git submodules

Yann E. MORIN yann.morin.1998 at free.fr
Thu May 9 20:58:07 UTC 2024


Baruch, All,

On 2024-04-08 12:23 +0300, Baruch Siach via buildroot spake thusly:
> Some kernel users find it useful to store submodules in the kernel
> source tree for cross source trees definitions. Add option to download
> these submodules.

This is a litle odd, and Thomas and I were not very fan of such a patch,
but we can see why it might be needed...

> Signed-off-by: Baruch Siach <baruch at tkos.co.il>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  linux/Config.in | 6 ++++++
>  linux/linux.mk  | 3 +++
>  2 files changed, 9 insertions(+)
> 
> diff --git a/linux/Config.in b/linux/Config.in
> index d520dc379f0e..3f5b088a193f 100644
> --- a/linux/Config.in
> +++ b/linux/Config.in
> @@ -126,6 +126,12 @@ config BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION
>  
>  endif
>  
> +config BR2_LINUX_KERNEL_CUSTOM_REPO_GIT_SUBMODULES
> +	bool "Download also git submodules"
> +	depends on BR2_LINUX_KERNEL_CUSTOM_GIT
> +	help
> +	  Include git submodules in the kernel source tree.
> +
>  config BR2_LINUX_KERNEL_VERSION
>  	string
>  	default "6.6.22" if BR2_LINUX_KERNEL_LATEST_VERSION
> diff --git a/linux/linux.mk b/linux/linux.mk
> index 4e12b36c1fd4..16d9f1947089 100644
> --- a/linux/linux.mk
> +++ b/linux/linux.mk
> @@ -24,6 +24,9 @@ LINUX_SOURCE = $(notdir $(LINUX_TARBALL))
>  else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_GIT),y)
>  LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
>  LINUX_SITE_METHOD = git
> +ifeq ($(BR2_LINUX_KERNEL_CUSTOM_REPO_GIT_SUBMODULES),y)
> +LINUX_GIT_SUBMODULES = YES
> +endif
>  else ifeq ($(BR2_LINUX_KERNEL_CUSTOM_HG),y)
>  LINUX_SITE = $(call qstrip,$(BR2_LINUX_KERNEL_CUSTOM_REPO_URL))
>  LINUX_SITE_METHOD = hg
> -- 
> 2.43.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list