[Buildroot] [PATCH v2 7/7] at91bootstrap3: Add support for custom license files

Edgar Bonet bonet at grenoble.cnrs.fr
Wed Oct 1 15:44:26 UTC 2025


Hello everybody!

On 01/10/2025, Kory Maincent wrote:
> The AT91Bootstrap3 package was not providing any license file when a custom
> Linux version was selected.
> 
> Fix this by adding a Kconfig option to specify the license file,
> with a default value set to the commonly used license paths.
> 
> Signed-off-by: Kory Maincent <kory.maincent at bootlin.com>
> ---
> 
> Change in v2:
> - Do not show license option if it is not a custom repo
> ---
>  boot/at91bootstrap3/Config.in         | 19 +++++++++++++++++++
>  boot/at91bootstrap3/at91bootstrap3.mk |  3 ++-
>  2 files changed, 21 insertions(+), 1 deletion(-)
> 
> diff --git a/boot/at91bootstrap3/Config.in b/boot/at91bootstrap3/Config.in
> index 35bdb28162beda956ff4ffd17772b491bf5f5ca0..987b5eb7efd3d845865d34afaca4f35ae5e88f80 100644
> --- a/boot/at91bootstrap3/Config.in
> +++ b/boot/at91bootstrap3/Config.in
> @@ -66,6 +66,25 @@ config BR2_TARGET_AT91BOOTSTRAP3_VERSION
>  		if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT || BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_SVN
>  	default "custom"	if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
>  
> +config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_LICENSE_FILES
> +	string "AT91Bootstrap3 license files"
> +	default "LICENSES/MIT.txt"
> +	depends on BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT || \
> +		   BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_SVN || \
> +		   BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
> +	help
> +	  A space-separated list of license files related to the
> +	  AT91Bootstrap3 kernel package.

s/kernel package/package/

Regards,

Edgar.

> +
> +config BR2_TARGET_AT91BOOTSTRAP3_LICENSE_FILES
> +	string
> +	default BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_LICENSE_FILES \
> +		if BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT || \
> +		   BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_SVN || \
> +		   BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALL
> +	default "" if BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X
> +	default "LICENSES/MIT.txt"
> +
>  config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR
>  	string "custom patch dir"
>  	help
> diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk
> index 4bbe7cc71819bb5841deac0ca9b513e7189796f4..2ed34f3de4d7285f9b14386fe3c21241b65aa4b1 100644
> --- a/boot/at91bootstrap3/at91bootstrap3.mk
> +++ b/boot/at91bootstrap3/at91bootstrap3.mk
> @@ -25,11 +25,12 @@ endif
>  
>  ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION),y)
>  AT91BOOTSTRAP3_LICENSE = MIT
> -AT91BOOTSTRAP3_LICENSE_FILES = LICENSES/MIT.txt
>  else ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION_3X),y)
>  AT91BOOTSTRAP3_LICENSE = Atmel License
>  endif
>  
> +AT91BOOTSTRAP3_LICENSE_FILES = $(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_LICENSE_FILES))
> +
>  AT91BOOTSTRAP3_CPE_ID_VENDOR = linux4sam
>  AT91BOOTSTRAP3_CPE_ID_PRODUCT = at91bootstrap
>  
> 



More information about the buildroot mailing list