瀏覽代碼

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

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.

Reported-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Yann E. MORIN 5 年之前
父節點
當前提交
ff1a03ab28
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      boot/uboot/uboot.mk

+ 2 - 0
boot/uboot/uboot.mk

@@ -8,7 +8,9 @@ UBOOT_VERSION = $(call qstrip,$(BR2_TARGET_UBOOT_VERSION))
 UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME))
 UBOOT_BOARD_NAME = $(call qstrip,$(BR2_TARGET_UBOOT_BOARDNAME))
 
 
 UBOOT_LICENSE = GPL-2.0+
 UBOOT_LICENSE = GPL-2.0+
+ifeq ($(BR2_TARGET_UBOOT_LATEST_VERSION),y)
 UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt
 UBOOT_LICENSE_FILES = Licenses/gpl-2.0.txt
+endif
 
 
 UBOOT_INSTALL_IMAGES = YES
 UBOOT_INSTALL_IMAGES = YES