Skip to contentSkip to conversation

Add support for licence files for custom repo

PATCH Applied Kory Maincent via buildroot 1 participant 19 messages Oct 1, 2025 – Feb 13 Arm/Microchip (AT91) SoC support

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 1f1c014ba21fe8ca5f06993f08c6707f6501d9af..6352260cd7d90520964d5ea6fb2714fbf827557d 100644
@@ -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
index 0520394931ce7950a750d4f57dab451377886612..c61089bfe040ba9dee9efc00c0ec3cf4f9ef0167 100644
@@ -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
#2 lore raw

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 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 +4 -0
index 1f1c014ba21fe8ca5f06993f08c6707f6501d9af..6352260cd7d90520964d5ea6fb2714fbf827557d 100644
@@ -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
index 0520394931ce7950a750d4f57dab451377886612..c61089bfe040ba9dee9efc00c0ec3cf4f9ef0167 100644
@@ -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

#3 lore raw

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

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
#4 lore raw

Re: [Buildroot] [PATCH v2 1/7] linux: Add support for custom license files

In reply to Kory Maincent via buildroot

In 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 Kconfig option to specify the license file, with a default value set to the commonly used license paths.

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
index 1f1c014ba21fe8ca5f06993f08c6707f6501d9af..6352260cd7d90520964d5ea6fb2714fbf827557d 100644
@@ -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
index 0520394931ce7950a750d4f57dab451377886612..c61089bfe040ba9dee9efc00c0ec3cf4f9ef0167 100644
@@ -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 · 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

#5 lore raw

PATCH v2 2/7 uboot: Add support for custom license files

In reply to Kory Maincent via buildroot

The 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
index 9320f942d674384f32e3c858e4b5134bad966834..e2547d89d08416026ce1f42d52004d3269b9d2d9 100644
@@ -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
index c92568a559118bda16622731aa3a90904435a8e2..db12c835fbb41ea96344e1056c9f3d25b6e4cb69 100644
@@ -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
#6 lore raw

Re: [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 Kconfig option to specify the license file, with a default value set to the commonly used license paths.

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
index 9320f942d674384f32e3c858e4b5134bad966834..e2547d89d08416026ce1f42d52004d3269b9d2d9 100644
@@ -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
index c92568a559118bda16622731aa3a90904435a8e2..db12c835fbb41ea96344e1056c9f3d25b6e4cb69 100644
@@ -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 · 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

#7 lore raw

PATCH v2 3/7 optee-os: Add support for custom license files

In reply to Kory Maincent via buildroot

The 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
index e737d2a0acd7ecc335a9b00cf9b1daa98d866e92..22e63c0265595e272c49ea368026ebc13e8b8838 100644
@@ -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
index 25c917e2fce7af850521111681dd8ecd66efe554..16395974079298a8d33da3fbcc06371c2ca051b4 100644
@@ -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
#8 lore raw

Re: [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 Kconfig option to specify the license file, with a default value set to the commonly used license paths.

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
index e737d2a0acd7ecc335a9b00cf9b1daa98d866e92..22e63c0265595e272c49ea368026ebc13e8b8838 100644
@@ -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
index 25c917e2fce7af850521111681dd8ecd66efe554..16395974079298a8d33da3fbcc06371c2ca051b4 100644
@@ -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 · 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

#9 lore raw

PATCH v2 4/7 opensbi: Add support for custom license files

In reply to Kory Maincent via buildroot

The 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
index 9c6047df5e66f67e077f8b613b760f073301654e..86cccb1003b813076581f7eff3aa4c1eb530ebe0 100644
@@ -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
index 0142769a1276175ff9ababfb4d40ac9b7054c3e8..f9f550176f925cdec8193e0fe2891338f69a71b3 100644
@@ -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
#10 lore raw

Re: [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 Kconfig option to specify the license file, with a default value set to the commonly used license paths.

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
index 9c6047df5e66f67e077f8b613b760f073301654e..86cccb1003b813076581f7eff3aa4c1eb530ebe0 100644
@@ -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
index 0142769a1276175ff9ababfb4d40ac9b7054c3e8..f9f550176f925cdec8193e0fe2891338f69a71b3 100644
@@ -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 · 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

#11 lore raw

PATCH v2 5/7 barebox: Add support for custom license files

In reply to Kory Maincent via buildroot

The 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
index c3cb0b33325328415349408f5be01a4a32dfcf12..469497aff6833ebdfd61b95cc938c9380a0374fb 100644
@@ -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
index 929ed48ada8321c7b42a615501fb90645556a37b..cbd6f9313c8012de809d4b0d82f3ffd5d39f680b 100644
@@ -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
#12 lore raw

Re: [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 Kconfig option to specify the license file, with a default value set to the commonly used license paths.

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
index c3cb0b33325328415349408f5be01a4a32dfcf12..469497aff6833ebdfd61b95cc938c9380a0374fb 100644
@@ -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
index 929ed48ada8321c7b42a615501fb90645556a37b..cbd6f9313c8012de809d4b0d82f3ffd5d39f680b 100644
@@ -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 · 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

#13 lore raw

PATCH v2 6/7 arm-trusted-firmware: Add support for custom license files

In reply to Kory Maincent via buildroot

The 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
index 72684e5974c1c0c9f8f3453254c5699a0a5d7106..1bc6cac831247a1fdcc4b2cb7f9846eaa472a62b 100644
@@ -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
index dca16d396044c5004480fdfb4cf15df6837b4413..303fd2cb09bc1bf59b8ccd2e0865f43099318154 100644
@@ -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
#14 lore raw

Re: [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 Kconfig option to specify the license file, with a default value set to the commonly used license paths.

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
index 72684e5974c1c0c9f8f3453254c5699a0a5d7106..1bc6cac831247a1fdcc4b2cb7f9846eaa472a62b 100644
@@ -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
index dca16d396044c5004480fdfb4cf15df6837b4413..303fd2cb09bc1bf59b8ccd2e0865f43099318154 100644
@@ -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 · 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

#15 lore raw

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

In reply to Kory Maincent via buildroot

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.

---

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
index 35bdb28162beda956ff4ffd17772b491bf5f5ca0..987b5eb7efd3d845865d34afaca4f35ae5e88f80 100644
@@ -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
index 4bbe7cc71819bb5841deac0ca9b513e7189796f4..2ed34f3de4d7285f9b14386fe3c21241b65aa4b1 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
 
Signature · 6 lines
2.43.0

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

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 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 +0 -0
index 35bdb28162beda956ff4ffd17772b491bf5f5ca0..987b5eb7efd3d845865d34afaca4f35ae5e88f80 100644
@@ -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"
 	help
boot/at91bootstrap3/at91bootstrap3.mk +0 -0
index 4bbe7cc71819bb5841deac0ca9b513e7189796f4..2ed34f3de4d7285f9b14386fe3c21241b65aa4b1 100644
@@ -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

#17 lore raw

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 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 +0 -0

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

boot/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
#18 lore raw

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

In reply to Kory Maincent via buildroot

In 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 Kconfig option to specify the license file, with a default value set to the commonly used license paths.

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
index 35bdb28162beda956ff4ffd17772b491bf5f5ca0..987b5eb7efd3d845865d34afaca4f35ae5e88f80 100644
@@ -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
index 4bbe7cc71819bb5841deac0ca9b513e7189796f4..2ed34f3de4d7285f9b14386fe3c21241b65aa4b1 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
 
Signature · 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