mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-30 05:51:45 -09:00
package/optee-client: add support for custom tarball
OP-TEE OS supports custom tarballs. If the OP-TEE OS custom tarball version does not match the latest optee-client version supported by Buildroot, optee-client might not build or run properly. This patch adds support for an optee-client custom tarball URL to address this potential issue. Signed-off-by: Kory Maincent <kory.maincent@bootlin.com> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
905409a245
commit
d9c6e47534
@@ -17,6 +17,44 @@ config BR2_PACKAGE_OPTEE_CLIENT
|
|||||||
|
|
||||||
if BR2_PACKAGE_OPTEE_CLIENT
|
if BR2_PACKAGE_OPTEE_CLIENT
|
||||||
|
|
||||||
|
choice
|
||||||
|
prompt "optee-client version"
|
||||||
|
default BR2_PACKAGE_OPTEE_CLIENT_LATEST
|
||||||
|
help
|
||||||
|
Select the version of optee-client you want to use
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPTEE_CLIENT_LATEST
|
||||||
|
bool "4.3.0"
|
||||||
|
help
|
||||||
|
Use the latest release tag from the optee-client official Git
|
||||||
|
repository.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL
|
||||||
|
bool "Custom tarball"
|
||||||
|
help
|
||||||
|
This option allows to specify a URL pointing to an
|
||||||
|
optee-client source tarball. This URL can use any protocol
|
||||||
|
recognized by Buildroot, like http://, ftp://, file://
|
||||||
|
or scp://.
|
||||||
|
|
||||||
|
When pointing to a local tarball using file://, you may want
|
||||||
|
to use a make variable like $(TOPDIR) to reference the root of
|
||||||
|
the Buildroot tree.
|
||||||
|
|
||||||
|
endchoice
|
||||||
|
|
||||||
|
if BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL_LOCATION
|
||||||
|
string "URL of custom optee-client tarball"
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
config BR2_PACKAGE_OPTEE_CLIENT_VERSION
|
||||||
|
string
|
||||||
|
default "4.3.0" if BR2_PACKAGE_OPTEE_CLIENT_LATEST
|
||||||
|
default "custom" if BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL
|
||||||
|
|
||||||
config BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH
|
config BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH
|
||||||
string "Path for normal world OS secure storage"
|
string "Path for normal world OS secure storage"
|
||||||
default "/data/tee"
|
default "/data/tee"
|
||||||
|
|||||||
@@ -4,12 +4,23 @@
|
|||||||
#
|
#
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
OPTEE_CLIENT_VERSION = 4.3.0
|
OPTEE_CLIENT_VERSION = $(call qstrip,$(BR2_PACKAGE_OPTEE_CLIENT_VERSION))
|
||||||
OPTEE_CLIENT_SITE = $(call github,OP-TEE,optee_client,$(OPTEE_CLIENT_VERSION))
|
|
||||||
OPTEE_CLIENT_LICENSE = BSD-2-Clause
|
OPTEE_CLIENT_LICENSE = BSD-2-Clause
|
||||||
OPTEE_CLIENT_LICENSE_FILES = LICENSE
|
OPTEE_CLIENT_LICENSE_FILES = LICENSE
|
||||||
OPTEE_CLIENT_INSTALL_STAGING = YES
|
OPTEE_CLIENT_INSTALL_STAGING = YES
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL),y)
|
||||||
|
OPTEE_CLIENT_TARBALL = $(call qstrip,$(BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL_LOCATION))
|
||||||
|
OPTEE_CLIENT_SITE = $(patsubst %/,%,$(dir $(OPTEE_CLIENT_TARBALL)))
|
||||||
|
OPTEE_CLIENT_SOURCE = $(notdir $(OPTEE_CLIENT_TARBALL))
|
||||||
|
else
|
||||||
|
OPTEE_CLIENT_SITE = $(call github,OP-TEE,optee_client,$(OPTEE_CLIENT_VERSION))
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPTEE_CLIENT):$(BR2_PACKAGE_OPTEE_CLIENT_LATEST),y:)
|
||||||
|
BR_NO_CHECK_HASH_FOR += $(OPTEE_CLIENT_SOURCE)
|
||||||
|
endif
|
||||||
|
|
||||||
OPTEE_CLIENT_CONF_OPTS = \
|
OPTEE_CLIENT_CONF_OPTS = \
|
||||||
-DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \
|
-DCFG_TEE_FS_PARENT_PATH=$(BR2_PACKAGE_OPTEE_CLIENT_TEE_FS_PATH) \
|
||||||
-DCFG_WERROR=OFF
|
-DCFG_WERROR=OFF
|
||||||
@@ -38,4 +49,10 @@ define OPTEE_CLIENT_INSTALL_INIT_SYSV
|
|||||||
$(TARGET_DIR)/etc/init.d/S30tee-supplicant
|
$(TARGET_DIR)/etc/init.d/S30tee-supplicant
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
ifeq ($(BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL)$(BR_BUILDING),yy)
|
||||||
|
ifeq ($(call qstrip,$(BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL_LOCATION)),)
|
||||||
|
$(error No tarball location specified. Please check BR2_PACKAGE_OPTEE_CLIENT_CUSTOM_TARBALL_LOCATION)
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
$(eval $(cmake-package))
|
$(eval $(cmake-package))
|
||||||
|
|||||||
Reference in New Issue
Block a user