at91bootstrap3: Add support for custom license files
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.
Signed-off-by Kory Maincent <[email protected]>
[Arnout: use a single Kconfig option with conditional prompt]
Signed-off-by Arnout Vandecappelle <[email protected]>
--- boot/at91bootstrap3/Config.in | 10 ++++++++++ boot/at91bootstrap3/at91bootstrap3.mk | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-)
boot/at91bootstrap3/Config.in +10 -0
@@ -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
@@ -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