Add support for licence files for custom repo
v2 cover Add support for licence files for custom repo
Several packages were not providing any license file when a custom repository or tarball is used.
Fix this by adding a Kconfig option to specify the license file, with a default value set to the commonly used license paths.
Changes in v2:
- Do not show license option if it is not a custom repo. Assume LTS or custom version does have the same license files location.
---
Kory Maincent (7):
linux: Add support for custom license files
uboot: Add support for custom license files
optee-os: Add support for custom license files
opensbi: Add support for custom license files
barebox: Add support for custom license files
arm-trusted-firmware: Add support for custom license files
at91bootstrap3: Add support for custom license files
boot/arm-trusted-firmware/Config.in | 16 ++++++++++++++++ boot/arm-trusted-firmware/arm-trusted-firmware.mk | 9 +++------ boot/at91bootstrap3/Config.in | 19 +++++++++++++++++++ boot/at91bootstrap3/at91bootstrap3.mk | 3 ++- boot/barebox/Config.in | 16 ++++++++++++++++ boot/barebox/barebox.mk | 4 +--- boot/opensbi/Config.in | 16 ++++++++++++++++ boot/opensbi/opensbi.mk | 4 +--- boot/optee-os/Config.in | 16 ++++++++++++++++ boot/optee-os/optee-os.mk | 4 +--- boot/uboot/Config.in | 16 ++++++++++++++++ boot/uboot/uboot.mk | 4 +--- linux/Config.in | 16 ++++++++++++++++ linux/linux.mk | 8 ++------ 14 files changed, 126 insertions(+), 25 deletions(-)
---
base-commit: 5e28e8d34d2ab2b6ba2c37ebcdce4428af8d9015
change-id: 20250527-fix_license-f80376235dc9
Best regards,
Signature · 6 lines
Kory Maincent <[email protected]> _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/7 linux: Add support for custom license files
The Linux 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.
---
Change in v2:
- Do not show license option if it is not a custom repo
--- linux/Config.in | 16 ++++++++++++++++ linux/linux.mk | 8 ++------ 2 files changed, 18 insertions(+), 6 deletions(-)
linux/Config.in +16 -0
@@ -150,6 +150,22 @@ config BR2_LINUX_KERNEL_VERSION default BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION \ if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || BR2_LINUX_KERNEL_CUSTOM_SVN +config BR2_LINUX_KERNEL_CUSTOM_LICENSE_FILES + string "Kernel license files" + default "COPYING LICENSES/preferred/GPL-2.0 LICENSES/exceptions/Linux-syscall-note" + depends on BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || \ + BR2_LINUX_KERNEL_CUSTOM_SVN || BR2_LINUX_KERNEL_CUSTOM_TARBALL + help + A space-separated list of license files related to the Linux + kernel package. + +config BR2_LINUX_KERNEL_LICENSE_FILES + string + default BR2_LINUX_KERNEL_CUSTOM_LICENSE_FILES \ + if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || \ + BR2_LINUX_KERNEL_CUSTOM_SVN || BR2_LINUX_KERNEL_CUSTOM_TARBALL + default "COPYING LICENSES/preferred/GPL-2.0 LICENSES/exceptions/Linux-syscall-note" + # # Patch selection #
linux/linux.mk +2 -6
@@ -6,12 +6,8 @@ LINUX_VERSION = $(call qstrip,$(BR2_LINUX_KERNEL_VERSION)) LINUX_LICENSE = GPL-2.0 -ifeq ($(BR2_LINUX_KERNEL_LATEST_VERSION),y) -LINUX_LICENSE_FILES = \ - COPYING \ - LICENSES/preferred/GPL-2.0 \ - LICENSES/exceptions/Linux-syscall-note -endif +LINUX_LICENSE_FILES = $(call qstrip,$(BR2_LINUX_KERNEL_LICENSE_FILES)) + LINUX_CPE_ID_VENDOR = linux LINUX_CPE_ID_PRODUCT = linux_kernel LINUX_CPE_ID_PREFIX = cpe:2.3:o
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 1/7] linux: Add support for custom license files
Hi Kory,
Series applied to master, with changes...
First, you missed package/linux-headers, so I added an additional commit that
does the same for that package.
Second, unfortunately the hash of the license file LICENSES/preferred/GPL-2.0
changed in 6.17. Therefore, for the CIP versions, and all linux-headers versions before 6.17, the hash check fails... I added another commit that adds version-specific hash files for all supported versions.
Third, these version-specific hash files break bump-stable-kernel-versions. I
did not fix that - instead I added all people who I knkow use that script in Cc. Hopefully someone will fix it :-)
And finally, there's a small simplification (applied to all patches in the
series), see below.
Quoted 28 lines · Kory Maincent via buildroot
The Linux package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>---
Change in v2:
- Do not show license option if it is not a custom repo--- linux/Config.in | 16 ++++++++++++++++ linux/linux.mk | 8 ++------ 2 files changed, 18 insertions(+), 6 deletions(-)linux/Config.in +4
-0@@ -150,6 +150,22 @@ config BR2_LINUX_KERNEL_VERSION default BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION \ if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || BR2_LINUX_KERNEL_CUSTOM_SVN +config BR2_LINUX_KERNEL_CUSTOM_LICENSE_FILES + string "Kernel license files" + default "COPYING LICENSES/preferred/GPL-2.0 LICENSES/exceptions/Linux-syscall-note" + depends on BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || \
linux/Config.in config BR2_LINUX_KERNEL_VERSION · line 166
Quoted 10 lines
linux/Config.in +10
-0+ BR2_LINUX_KERNEL_CUSTOM_SVN || BR2_LINUX_KERNEL_CUSTOM_TARBALL + help + A space-separated list of license files related to the Linux + kernel package. + +config BR2_LINUX_KERNEL_LICENSE_FILES + string + default BR2_LINUX_KERNEL_CUSTOM_LICENSE_FILES \ + if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || \ + BR2_LINUX_KERNEL_CUSTOM_SVN || BR2_LINUX_KERNEL_CUSTOM_TARBALL
There is no need to have two Kconfig options, you can add the condition to the
prompt. So I kept BR2_LINUX_KERNEL_LICENSE_FILES and moved the condition to the prompt.
Regards,
Arnout
Quoted 15 lines
linux/Config.in +2
-0+ default "COPYING LICENSES/preferred/GPL-2.0 LICENSES/exceptions/Linux-syscall-note" + # # Patch selection #linux/linux.mk +0
-1@@ -6,12 +6,8 @@ LINUX_VERSION = $(call qstrip,$(BR2_LINUX_KERNEL_VERSION)) LINUX_LICENSE = GPL-2.0 -ifeq ($(BR2_LINUX_KERNEL_LATEST_VERSION),y)
linux/linux.mk line 13
Quoted 10 lines
linux/linux.mk +2
-5-LINUX_LICENSE_FILES = \ - COPYING \ - LICENSES/preferred/GPL-2.0 \ - LICENSES/exceptions/Linux-syscall-note -endif +LINUX_LICENSE_FILES = $(call qstrip,$(BR2_LINUX_KERNEL_LICENSE_FILES)) + LINUX_CPE_ID_VENDOR = linux LINUX_CPE_ID_PRODUCT = linux_kernel LINUX_CPE_ID_PREFIX = cpe:2.3:o
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 1/7] linux: Add support for custom license files
Hello Arnout,
Quoted 13 lines · On Mon, 2 Feb 2026 18:53:59 +0100 Arnout Vandecappelle <[email protected]> wrote:
Hi Kory,
Series applied to master, with changes...
First, you missed package/linux-headers, so I added an additional commit
that does the same for that package.Second, unfortunately the hash of the license file
LICENSES/preferred/GPL-2.0changed in 6.17. Therefore, for the CIP versions, and all linux-headers versions before 6.17, the hash check fails... I added another commit that adds version-specific hash files for all supported versions.
Quoted 6 lines
Third, these version-specific hash files break bump-stable-kernel-versions.
I did not fix that - instead I added all people who I knkow use that script in Cc. Hopefully someone will fix it :-)And finally, there's a small simplification (applied to all patches in the
series), see below.
Ok great! Thanks you!
Do you have the time to take a look at the series on external toolchain licenses?
https://patchwork.ozlabs.org/project/buildroot/list/?series=458747
Regards,
Signature · 7 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH v2 1/7] linux: Add support for custom license files
In reply to Kory Maincent via buildrootIn reply of:
Quoted 7 lines
The Linux package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 63 lines
---
Change in v2:
- Do not show license option if it is not a custom repo--- linux/Config.in | 16 ++++++++++++++++ linux/linux.mk | 8 ++------ 2 files changed, 18 insertions(+), 6 deletions(-)linux/Config.in +16
-0@@ -150,6 +150,22 @@ config BR2_LINUX_KERNEL_VERSION default BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION \ if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || BR2_LINUX_KERNEL_CUSTOM_SVN +config BR2_LINUX_KERNEL_CUSTOM_LICENSE_FILES + string "Kernel license files" + default "COPYING LICENSES/preferred/GPL-2.0 LICENSES/exceptions/Linux-syscall-note" + depends on BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || \ + BR2_LINUX_KERNEL_CUSTOM_SVN || BR2_LINUX_KERNEL_CUSTOM_TARBALL + help + A space-separated list of license files related to the Linux + kernel package. + +config BR2_LINUX_KERNEL_LICENSE_FILES + string + default BR2_LINUX_KERNEL_CUSTOM_LICENSE_FILES \ + if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || \ + BR2_LINUX_KERNEL_CUSTOM_SVN || BR2_LINUX_KERNEL_CUSTOM_TARBALL + default "COPYING LICENSES/preferred/GPL-2.0 LICENSES/exceptions/Linux-syscall-note" + # # Patch selection #linux/linux.mk +2
-6@@ -6,12 +6,8 @@ LINUX_VERSION = $(call qstrip,$(BR2_LINUX_KERNEL_VERSION)) LINUX_LICENSE = GPL-2.0 -ifeq ($(BR2_LINUX_KERNEL_LATEST_VERSION),y) -LINUX_LICENSE_FILES = \ - COPYING \ - LICENSES/preferred/GPL-2.0 \ - LICENSES/exceptions/Linux-syscall-note -endif +LINUX_LICENSE_FILES = $(call qstrip,$(BR2_LINUX_KERNEL_LICENSE_FILES)) + LINUX_CPE_ID_VENDOR = linux LINUX_CPE_ID_PRODUCT = linux_kernel LINUX_CPE_ID_PREFIX = cpe:2.3:oSignature · 7 lines
-- 2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/7 uboot: Add support for custom license files
In reply to Kory Maincent via buildrootThe U-Boot 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.
---
Change in v2:
- Do not show license option if it is not a custom repo
--- boot/uboot/Config.in | 16 ++++++++++++++++ boot/uboot/uboot.mk | 4 +--- 2 files changed, 17 insertions(+), 3 deletions(-)
boot/uboot/Config.in +16 -0
@@ -92,6 +92,22 @@ config BR2_TARGET_UBOOT_VERSION default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \ if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || BR2_TARGET_UBOOT_CUSTOM_SVN +config BR2_TARGET_UBOOT_CUSTOM_LICENSE_FILES + string "U-boot license files" + default "Licenses/gpl-2.0.txt" + depends on BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || \ + BR2_TARGET_UBOOT_CUSTOM_SVN || BR2_TARGET_UBOOT_CUSTOM_TARBALL + help + A space-separated list of license files related to U-Boot + package. + +config BR2_TARGET_UBOOT_LICENSE_FILES + string + default BR2_TARGET_UBOOT_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || \ + BR2_TARGET_UBOOT_CUSTOM_SVN || BR2_TARGET_UBOOT_CUSTOM_TARBALL + default "Licenses/gpl-2.0.txt" + config BR2_TARGET_UBOOT_PATCH string "Custom U-Boot patches" default BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR if BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR != "" # legacy
boot/uboot/uboot.mk +1 -3
@@ -8,9 +8,7 @@ UBOOT_VERSION = $(call qstrip,$(BR2_TARGET_UBOOT_VERSION)) UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME)) UBOOT_LICENSE = GPL-2.0+ -ifeq ($(BR2_TARGET_UBOOT_LATEST_VERSION),y) -UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt -endif +UBOOT_LICENSE_FILES = $(call qstrip,$(BR2_TARGET_UBOOT_LICENSE_FILES)) UBOOT_CPE_ID_VENDOR = denx UBOOT_CPE_ID_PRODUCT = u-boot
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH v2 2/7] uboot: Add support for custom license files
In reply of:
Quoted 7 lines
The U-Boot package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 59 lines
---
Change in v2:
- Do not show license option if it is not a custom repo--- boot/uboot/Config.in | 16 ++++++++++++++++ boot/uboot/uboot.mk | 4 +--- 2 files changed, 17 insertions(+), 3 deletions(-)boot/uboot/Config.in +16
-0@@ -92,6 +92,22 @@ config BR2_TARGET_UBOOT_VERSION default BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION \ if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || BR2_TARGET_UBOOT_CUSTOM_SVN +config BR2_TARGET_UBOOT_CUSTOM_LICENSE_FILES + string "U-boot license files" + default "Licenses/gpl-2.0.txt" + depends on BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || \ + BR2_TARGET_UBOOT_CUSTOM_SVN || BR2_TARGET_UBOOT_CUSTOM_TARBALL + help + A space-separated list of license files related to U-Boot + package. + +config BR2_TARGET_UBOOT_LICENSE_FILES + string + default BR2_TARGET_UBOOT_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_UBOOT_CUSTOM_GIT || BR2_TARGET_UBOOT_CUSTOM_HG || \ + BR2_TARGET_UBOOT_CUSTOM_SVN || BR2_TARGET_UBOOT_CUSTOM_TARBALL + default "Licenses/gpl-2.0.txt" + config BR2_TARGET_UBOOT_PATCH string "Custom U-Boot patches" default BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR if BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR != "" # legacyboot/uboot/uboot.mk +1
-3@@ -8,9 +8,7 @@ UBOOT_VERSION = $(call qstrip,$(BR2_TARGET_UBOOT_VERSION)) UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME)) UBOOT_LICENSE = GPL-2.0+ -ifeq ($(BR2_TARGET_UBOOT_LATEST_VERSION),y) -UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt -endif +UBOOT_LICENSE_FILES = $(call qstrip,$(BR2_TARGET_UBOOT_LICENSE_FILES)) UBOOT_CPE_ID_VENDOR = denx UBOOT_CPE_ID_PRODUCT = u-bootSignature · 7 lines
-- 2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 3/7 optee-os: Add support for custom license files
In reply to Kory Maincent via buildrootThe OP-TEE OS 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.
---
Change in v2:
- Do not show license option if it is not a custom repo version
--- boot/optee-os/Config.in | 16 ++++++++++++++++ boot/optee-os/optee-os.mk | 4 +--- 2 files changed, 17 insertions(+), 3 deletions(-)
boot/optee-os/Config.in +16 -0
@@ -86,6 +86,22 @@ config BR2_TARGET_OPTEE_OS_VERSION default BR2_TARGET_OPTEE_OS_CUSTOM_REPO_VERSION \ if BR2_TARGET_OPTEE_OS_CUSTOM_GIT +config BR2_TARGET_OPTEE_OS_CUSTOM_LICENSE_FILES + string "OP-TEE OS license files" + default "LICENSE" + depends on BR2_TARGET_OPTEE_OS_CUSTOM_GIT || \ + BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL + help + A space-separated list of license files related to the + OPTEE-OS package. + +config BR2_TARGET_OPTEE_OS_LICENSE_FILES + string + default BR2_TARGET_OPTEE_OS_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_OPTEE_OS_CUSTOM_GIT || \ + BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL + default "LICENSE" + config BR2_TARGET_OPTEE_OS_NEEDS_DTC bool "OP-TEE OS needs dtc" select BR2_PACKAGE_HOST_DTC
boot/optee-os/optee-os.mk +1 -3
@@ -6,9 +6,7 @@ OPTEE_OS_VERSION = $(call qstrip,$(BR2_TARGET_OPTEE_OS_VERSION)) OPTEE_OS_LICENSE = BSD-2-Clause -ifeq ($(BR2_TARGET_OPTEE_OS_LATEST),y) -OPTEE_OS_LICENSE_FILES = LICENSE -endif +OPTEE_OS_LICENSE_FILES = $(call qstrip,$(BR2_TARGET_OPTEE_OS_LICENSE_FILES)) OPTEE_OS_CPE_ID_PREFIX = cpe:2.3:o OPTEE_OS_CPE_ID_VENDOR = linaro
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH v2 3/7] optee-os: Add support for custom license files
In reply of:
Quoted 7 lines
The OP-TEE OS package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 59 lines
---
Change in v2:
- Do not show license option if it is not a custom repo version--- boot/optee-os/Config.in | 16 ++++++++++++++++ boot/optee-os/optee-os.mk | 4 +--- 2 files changed, 17 insertions(+), 3 deletions(-)boot/optee-os/Config.in +16
-0@@ -86,6 +86,22 @@ config BR2_TARGET_OPTEE_OS_VERSION default BR2_TARGET_OPTEE_OS_CUSTOM_REPO_VERSION \ if BR2_TARGET_OPTEE_OS_CUSTOM_GIT +config BR2_TARGET_OPTEE_OS_CUSTOM_LICENSE_FILES + string "OP-TEE OS license files" + default "LICENSE" + depends on BR2_TARGET_OPTEE_OS_CUSTOM_GIT || \ + BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL + help + A space-separated list of license files related to the + OPTEE-OS package. + +config BR2_TARGET_OPTEE_OS_LICENSE_FILES + string + default BR2_TARGET_OPTEE_OS_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_OPTEE_OS_CUSTOM_GIT || \ + BR2_TARGET_OPTEE_OS_CUSTOM_TARBALL + default "LICENSE" + config BR2_TARGET_OPTEE_OS_NEEDS_DTC bool "OP-TEE OS needs dtc" select BR2_PACKAGE_HOST_DTCboot/optee-os/optee-os.mk +1
-3@@ -6,9 +6,7 @@ OPTEE_OS_VERSION = $(call qstrip,$(BR2_TARGET_OPTEE_OS_VERSION)) OPTEE_OS_LICENSE = BSD-2-Clause -ifeq ($(BR2_TARGET_OPTEE_OS_LATEST),y) -OPTEE_OS_LICENSE_FILES = LICENSE -endif +OPTEE_OS_LICENSE_FILES = $(call qstrip,$(BR2_TARGET_OPTEE_OS_LICENSE_FILES)) OPTEE_OS_CPE_ID_PREFIX = cpe:2.3:o OPTEE_OS_CPE_ID_VENDOR = linaroSignature · 7 lines
-- 2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 4/7 opensbi: Add support for custom license files
In reply to Kory Maincent via buildrootThe OpenSBI 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.
---
Change in v2:
- Do not show license option if it is not a custom repo version
--- boot/opensbi/Config.in | 16 ++++++++++++++++ boot/opensbi/opensbi.mk | 4 +--- 2 files changed, 17 insertions(+), 3 deletions(-)
boot/opensbi/Config.in +16 -0
@@ -64,6 +64,22 @@ config BR2_TARGET_OPENSBI_VERSION default BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION \ if BR2_TARGET_OPENSBI_CUSTOM_GIT +config BR2_TARGET_OPENSBI_CUSTOM_LICENSE_FILES + string "OpenSBI license files" + default "COPYING.BSD" + depends on BR2_TARGET_OPENSBI_CUSTOM_GIT || \ + BR2_TARGET_OPENSBI_CUSTOM_TARBALL + help + A space-separated list of license files related to the OpenSBI + package. + +config BR2_TARGET_OPENSBI_LICENSE_FILES + string + default BR2_TARGET_OPENSBI_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_OPENSBI_CUSTOM_GIT || \ + BR2_TARGET_OPENSBI_CUSTOM_TARBALL + default "COPYING.BSD" + config BR2_TARGET_OPENSBI_PLAT string "OpenSBI Platform" default ""
boot/opensbi/opensbi.mk +1 -3
@@ -20,9 +20,7 @@ OPENSBI_SITE = $(call github,riscv-software-src,opensbi,v$(OPENSBI_VERSION)) endif OPENSBI_LICENSE = BSD-2-Clause -ifeq ($(BR2_TARGET_OPENSBI_LATEST_VERSION),y) -OPENSBI_LICENSE_FILES = COPYING.BSD -endif +OPENSBI_LICENSE_FILES = $(call qstrip,$(BR2_TARGET_OPENSBI_LICENSE_FILES)) OPENSBI_INSTALL_TARGET = NO OPENSBI_INSTALL_STAGING = YES
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH v2 4/7] opensbi: Add support for custom license files
In reply of:
Quoted 7 lines
The OpenSBI package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 59 lines
---
Change in v2:
- Do not show license option if it is not a custom repo version--- boot/opensbi/Config.in | 16 ++++++++++++++++ boot/opensbi/opensbi.mk | 4 +--- 2 files changed, 17 insertions(+), 3 deletions(-)boot/opensbi/Config.in +16
-0@@ -64,6 +64,22 @@ config BR2_TARGET_OPENSBI_VERSION default BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION \ if BR2_TARGET_OPENSBI_CUSTOM_GIT +config BR2_TARGET_OPENSBI_CUSTOM_LICENSE_FILES + string "OpenSBI license files" + default "COPYING.BSD" + depends on BR2_TARGET_OPENSBI_CUSTOM_GIT || \ + BR2_TARGET_OPENSBI_CUSTOM_TARBALL + help + A space-separated list of license files related to the OpenSBI + package. + +config BR2_TARGET_OPENSBI_LICENSE_FILES + string + default BR2_TARGET_OPENSBI_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_OPENSBI_CUSTOM_GIT || \ + BR2_TARGET_OPENSBI_CUSTOM_TARBALL + default "COPYING.BSD" + config BR2_TARGET_OPENSBI_PLAT string "OpenSBI Platform" default ""boot/opensbi/opensbi.mk +1
-3@@ -20,9 +20,7 @@ OPENSBI_SITE = $(call github,riscv-software-src,opensbi,v$(OPENSBI_VERSION)) endif OPENSBI_LICENSE = BSD-2-Clause -ifeq ($(BR2_TARGET_OPENSBI_LATEST_VERSION),y) -OPENSBI_LICENSE_FILES = COPYING.BSD -endif +OPENSBI_LICENSE_FILES = $(call qstrip,$(BR2_TARGET_OPENSBI_LICENSE_FILES)) OPENSBI_INSTALL_TARGET = NO OPENSBI_INSTALL_STAGING = YESSignature · 7 lines
-- 2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 5/7 barebox: Add support for custom license files
In reply to Kory Maincent via buildrootThe Barebox 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.
---
Change in v2:
- Do not show license option if it is not a custom repo
--- boot/barebox/Config.in | 16 ++++++++++++++++ boot/barebox/barebox.mk | 4 +--- 2 files changed, 17 insertions(+), 3 deletions(-)
boot/barebox/Config.in +16 -0
@@ -45,6 +45,22 @@ config BR2_TARGET_BAREBOX_VERSION default "custom" if BR2_TARGET_BAREBOX_CUSTOM_TARBALL default BR2_TARGET_BAREBOX_CUSTOM_GIT_VERSION if BR2_TARGET_BAREBOX_CUSTOM_GIT +config BR2_TARGET_BAREBOX_CUSTOM_LICENSE_FILES + string "Barebox license files" + default "COPYING" + depends on BR2_TARGET_BAREBOX_CUSTOM_TARBALL || \ + BR2_TARGET_BAREBOX_CUSTOM_GIT + help + A space-separated list of license files related to the Barebox + package. + +config BR2_TARGET_BAREBOX_LICENSE_FILES + string + default BR2_TARGET_BAREBOX_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_BAREBOX_CUSTOM_TARBALL || \ + BR2_TARGET_BAREBOX_CUSTOM_GIT + default "COPYING" + config BR2_TARGET_BAREBOX_CUSTOM_PATCH_DIR string "custom patch dir" help
boot/barebox/barebox.mk +1 -3
@@ -39,9 +39,7 @@ $(1)_DL_SUBDIR = barebox $(1)_DEPENDENCIES = host-lzop $(1)_LICENSE = GPL-2.0 with exceptions -ifeq ($(BR2_TARGET_BAREBOX_LATEST_VERSION),y) -$(1)_LICENSE_FILES = COPYING -endif +$(1)_LICENSE_FILES = $$(call qstrip,$$(BR2_TARGET_BAREBOX_LICENSE_FILES)) ifeq ($(BR2_TARGET_BAREBOX_NEEDS_OPENSSL),y) BAREBOX_DEPENDENCIES += host-openssl host-pkgconf
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH v2 5/7] barebox: Add support for custom license files
In reply of:
Quoted 7 lines
The Barebox package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 59 lines
---
Change in v2:
- Do not show license option if it is not a custom repo--- boot/barebox/Config.in | 16 ++++++++++++++++ boot/barebox/barebox.mk | 4 +--- 2 files changed, 17 insertions(+), 3 deletions(-)boot/barebox/Config.in +16
-0@@ -45,6 +45,22 @@ config BR2_TARGET_BAREBOX_VERSION default "custom" if BR2_TARGET_BAREBOX_CUSTOM_TARBALL default BR2_TARGET_BAREBOX_CUSTOM_GIT_VERSION if BR2_TARGET_BAREBOX_CUSTOM_GIT +config BR2_TARGET_BAREBOX_CUSTOM_LICENSE_FILES + string "Barebox license files" + default "COPYING" + depends on BR2_TARGET_BAREBOX_CUSTOM_TARBALL || \ + BR2_TARGET_BAREBOX_CUSTOM_GIT + help + A space-separated list of license files related to the Barebox + package. + +config BR2_TARGET_BAREBOX_LICENSE_FILES + string + default BR2_TARGET_BAREBOX_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_BAREBOX_CUSTOM_TARBALL || \ + BR2_TARGET_BAREBOX_CUSTOM_GIT + default "COPYING" + config BR2_TARGET_BAREBOX_CUSTOM_PATCH_DIR string "custom patch dir" helpboot/barebox/barebox.mk +1
-3@@ -39,9 +39,7 @@ $(1)_DL_SUBDIR = barebox $(1)_DEPENDENCIES = host-lzop $(1)_LICENSE = GPL-2.0 with exceptions -ifeq ($(BR2_TARGET_BAREBOX_LATEST_VERSION),y) -$(1)_LICENSE_FILES = COPYING -endif +$(1)_LICENSE_FILES = $$(call qstrip,$$(BR2_TARGET_BAREBOX_LICENSE_FILES)) ifeq ($(BR2_TARGET_BAREBOX_NEEDS_OPENSSL),y) BAREBOX_DEPENDENCIES += host-openssl host-pkgconfSignature · 7 lines
-- 2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 6/7 arm-trusted-firmware: Add support for custom license files
In reply to Kory Maincent via buildrootThe ATF 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.
---
Change in v2:
- Do not show license option if it is not a custom repo
--- boot/arm-trusted-firmware/Config.in | 16 ++++++++++++++++ boot/arm-trusted-firmware/arm-trusted-firmware.mk | 9 +++------ 2 files changed, 19 insertions(+), 6 deletions(-)
boot/arm-trusted-firmware/Config.in +16 -0
@@ -80,6 +80,22 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION endif +config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_LICENSE_FILES + string "ATF license files" + default "docs/license.rst" + depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT || \ + BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL + help + A space-separated list of license files related to the ATF + package. + +config BR2_TARGET_ARM_TRUSTED_FIRMWARE_LICENSE_FILES + string + default BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT || \ + BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL + default "docs/license.rst" + config BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM string "ATF platform" help
boot/arm-trusted-firmware/arm-trusted-firmware.mk +3 -6
@@ -18,14 +18,11 @@ else # Handle stable official ATF versions ARM_TRUSTED_FIRMWARE_SITE = https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git ARM_TRUSTED_FIRMWARE_SITE_METHOD = git -# The licensing of custom or from-git versions is unknown. -# This is valid only for the latest (i.e. known) version. -ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_10_VERSION)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_8_VERSION)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_12_VERSION),y) -ARM_TRUSTED_FIRMWARE_LICENSE = BSD-3-Clause -ARM_TRUSTED_FIRMWARE_LICENSE_FILES = docs/license.rst -endif endif +ARM_TRUSTED_FIRMWARE_LICENSE = BSD-3-Clause +ARM_TRUSTED_FIRMWARE_LICENSE_FILES = $(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LICENSE_FILES)) + ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE):$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT),y:y) BR_NO_CHECK_HASH_FOR += $(ARM_TRUSTED_FIRMWARE_SOURCE) endif
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH v2 6/7] arm-trusted-firmware: Add support for custom license files
In reply of:
Quoted 7 lines
The ATF package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 66 lines
---
Change in v2:
- Do not show license option if it is not a custom repo--- boot/arm-trusted-firmware/Config.in | 16 ++++++++++++++++ boot/arm-trusted-firmware/arm-trusted-firmware.mk | 9 +++------ 2 files changed, 19 insertions(+), 6 deletions(-)boot/arm-trusted-firmware/Config.in +16
-0@@ -80,6 +80,22 @@ config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_REPO_VERSION endif +config BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_LICENSE_FILES + string "ATF license files" + default "docs/license.rst" + depends on BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT || \ + BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL + help + A space-separated list of license files related to the ATF + package. + +config BR2_TARGET_ARM_TRUSTED_FIRMWARE_LICENSE_FILES + string + default BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_LICENSE_FILES \ + if BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT || \ + BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL + default "docs/license.rst" + config BR2_TARGET_ARM_TRUSTED_FIRMWARE_PLATFORM string "ATF platform" helpboot/arm-trusted-firmware/arm-trusted-firmware.mk +3
-6@@ -18,14 +18,11 @@ else # Handle stable official ATF versions ARM_TRUSTED_FIRMWARE_SITE = https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git ARM_TRUSTED_FIRMWARE_SITE_METHOD = git -# The licensing of custom or from-git versions is unknown. -# This is valid only for the latest (i.e. known) version. -ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_VERSION)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_10_VERSION)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_8_VERSION)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LATEST_LTS_2_12_VERSION),y) -ARM_TRUSTED_FIRMWARE_LICENSE = BSD-3-Clause -ARM_TRUSTED_FIRMWARE_LICENSE_FILES = docs/license.rst -endif endif +ARM_TRUSTED_FIRMWARE_LICENSE = BSD-3-Clause +ARM_TRUSTED_FIRMWARE_LICENSE_FILES = $(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_LICENSE_FILES)) + ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE):$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_VERSION)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL)$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_GIT),y:y) BR_NO_CHECK_HASH_FOR += $(ARM_TRUSTED_FIRMWARE_SOURCE) endifSignature · 7 lines
-- 2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 7/7 at91bootstrap3: Add support for custom license files
In reply to Kory Maincent via buildrootThe 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.
---
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(-)
boot/at91bootstrap3/Config.in +19 -0
@@ -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. + +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
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
Signature · 6 lines
2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 7/7] at91bootstrap3: Add support for custom license files
Hello everybody!
Quoted 23 lines · Kory Maincent
The AT91Bootstrap3 package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>---
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(-)boot/at91bootstrap3/Config.in +0
-0@@ -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
boot/at91bootstrap3/Config.in config BR2_TARGET_AT91BOOTSTRAP3_VERSION · line 77
Quoted 10 lines
boot/at91bootstrap3/Config.in +9
-0+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.
Quoted 22 lines
boot/at91bootstrap3/Config.in +10
-0+ +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" helpboot/at91bootstrap3/at91bootstrap3.mk +0
-0@@ -25,11 +25,12 @@ endif ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_LATEST_VERSION),y) AT91BOOTSTRAP3_LICENSE = MIT
boot/at91bootstrap3/at91bootstrap3.mk endif · line 36
Quoted 10 lines
boot/at91bootstrap3/at91bootstrap3.mk +2
-1-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
Re: [Buildroot] [PATCH v2 7/7] at91bootstrap3: Add support for custom license files
Quoted 30 lines · On Wed, 1 Oct 2025 17:44:26 +0200 Edgar Bonet <[email protected]> wrote:
Hello everybody!
Quoted 27 lines · Kory Maincent
The AT91Bootstrap3 package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>---
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(-)boot/at91bootstrap3/Config.in +0
-0index
35bdb28162beda956ff4ffd17772b491bf5f5ca0..987b5eb7efd3d845865d34afaca4f35ae5e88f80100644 --- a/boot/at91bootstrap3/Config.in +++ b/boot/at91bootstrap3/Config.in @@ -66,6 +66,25 @@ configBR2_TARGET_AT91BOOTSTRAP3_VERSIONifBR2_TARGET_AT91BOOTSTRAP3_CUSTOM_GIT
||BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_SVNdefault "custom" ifBR2_TARGET_AT91BOOTSTRAP3_CUSTOM_TARBALLboot/at91bootstrap3/Config.in +3
-0+config BR2_TARGET_AT91BOOTSTRAP3_CUSTOM_LICENSE_FILES + string "AT91Bootstrap3 license files" + default "LICENSES/MIT.txt"
Quoted 8 lines
boot/at91bootstrap3/Config.in config BR2_TARGET_AT91BOOTSTRAP3_VERSION · line 77
Quoted 6 lines
boot/at91bootstrap3/Config.in +6
-0+ 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/
Oops indeed, thanks.
Regards
Signature · 7 lines
Köry Maincent, Bootlin Embedded Linux and kernel engineering https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Perale via buildroot
AppliedRe: [Buildroot] [PATCH v2 7/7] at91bootstrap3: Add support for custom license files
In reply to Kory Maincent via buildrootIn reply of:
Quoted 7 lines
The AT91Bootstrap3 package was not providing any license file when a custom Linux version was selected.
Fix this by adding a
Kconfigoption to specify the license file, with a default value set to the commonly used license paths.Signed-off-by Kory Maincent <[email protected]>
Applied to 2025.02.x & 2025.11.x. Thanks
Quoted 65 lines
---
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(-)boot/at91bootstrap3/Config.in +19
-0@@ -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. + +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" helpboot/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 = at91bootstrapSignature · 7 lines
-- 2.43.0 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot