at91bootstrap3: Add support for custom license files

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.

Note that version 3.X of at91bootstrap didn't have an open source
license and no license file either. Keep that behavior.

Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
[Arnout: use a single Kconfig option with conditional prompt]
Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
Kory Maincent
2025-10-01 14:58:29 +00:00
committed by Arnout Vandecappelle
parent 77670c33d2
commit d9999aeec9
2 changed files with 12 additions and 1 deletions

View File

@@ -66,6 +66,16 @@ 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_LICENSE_FILES
string "AT91Bootstrap3 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"
help
A space-separated list of license files related to the
AT91Bootstrap3 kernel package.
config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_PATCH_DIR
string "custom patch dir"
help

View File

@@ -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