Skip to contentSkip to conversation

at91bootstrap3: Add support for custom license files

Buildroot Arnout Vandecappelle via buildroot 1 participant 1 message Feb 2 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=d9999aeec913bbf8dedf96d8dabf07591838a0aa
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

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.

[Arnout: use a single Kconfig option with conditional prompt]
---
 boot/at91bootstrap3/Config.in         | 10 ++++++++++
 boot/at91bootstrap3/at91bootstrap3.mk |  3 ++-
 2 files changed, 12 insertions(+), 1 deletion(-)
boot/at91bootstrap3/Config.in +10 -0
index 35bdb28162..b2f3e4e9b1 100644
@@ -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
boot/at91bootstrap3/at91bootstrap3.mk +2 -1
index 4bbe7cc718..2ed34f3de4 100644
@@ -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
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot