Skip to contentSkip to conversation

boot/uboot: license files hashes only valid for latest version

Buildroot Peter Korsgaard 1 participant 1 message Mar 10, 2020

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=f541c16b1ddfed5fa37773b4042a691dcc354099
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2019.11.x

We can only know the details of the license files for known versions. For custom, older or newer versions, the license files may change, or may be moved around.

So, do for U-Boot as was done for ATF, linux, and linux-headers, and only define the list of license files for the latest version.

Cc Markus Mayer <[email protected]>
(cherry picked from commit ff1a03ab28c8b5ffd7703cc4710bf20cc6223b5e)
---
 boot/uboot/uboot.mk | 2 ++
 1 file changed, 2 insertions(+)
boot/uboot/uboot.mk +2 -0
index 5e0f614024..724ae29f63 100644
@@ -8,7 +8,9 @@ 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_INSTALL_IMAGES = YES