mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-01 21:23:51 -09:00
opensbi: Add support for custom license files
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. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> [Arnout: use a single Kconfig option with conditional prompt] Signed-off-by: Arnout Vandecappelle <arnout@rnout.be>
This commit is contained in:
committed by
Arnout Vandecappelle
parent
71e8ca62dd
commit
399cc39621
@@ -64,6 +64,14 @@ config BR2_TARGET_OPENSBI_VERSION
|
||||
default BR2_TARGET_OPENSBI_CUSTOM_REPO_VERSION \
|
||||
if BR2_TARGET_OPENSBI_CUSTOM_GIT
|
||||
|
||||
config BR2_TARGET_OPENSBI_LICENSE_FILES
|
||||
string "OpenSBI license files" if BR2_TARGET_OPENSBI_CUSTOM_GIT || \
|
||||
BR2_TARGET_OPENSBI_CUSTOM_TARBALL
|
||||
default "COPYING.BSD"
|
||||
help
|
||||
A space-separated list of license files related to the OpenSBI
|
||||
package.
|
||||
|
||||
config BR2_TARGET_OPENSBI_PLAT
|
||||
string "OpenSBI Platform"
|
||||
default ""
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user