boot/opensbi: only check/reference COPYING.BSD when _LATEST_VERSION is used
authorPeter Korsgaard <peter@korsgaard.com>
Wed, 12 May 2021 08:41:03 +0000 (10:41 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 13 May 2021 07:48:32 +0000 (09:48 +0200)
With the addition of support for custom opensbi version in commit
5c7166d387b (boot/opensbi: add support for version configuration), we can no
longer be sure that the license file name / hash will be correct in all
cases, so only specify COPYING.BSD when _LATEST_VERSION is used, similar to
how we do it for the Linux kernel.

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
boot/opensbi/opensbi.mk

index f8cbbb8fcca69e7760a22b892798d1891d7b193a..a525b8aea3488c4ecce2fae489fbf0e8c1e7f1bf 100644 (file)
@@ -20,7 +20,9 @@ OPENSBI_SITE = $(call github,riscv,opensbi,v$(OPENSBI_VERSION))
 endif
 
 OPENSBI_LICENSE = BSD-2-Clause
+ifeq ($(BR2_TARGET_OPENSBI_LATEST_VERSION),y)
 OPENSBI_LICENSE_FILES = COPYING.BSD
+endif
 OPENSBI_INSTALL_TARGET = NO
 OPENSBI_INSTALL_STAGING = YES