mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
23
package/optee-examples/Config.in
Normal file
23
package/optee-examples/Config.in
Normal file
@@ -0,0 +1,23 @@
|
||||
config BR2_PACKAGE_OPTEE_EXAMPLES
|
||||
bool "optee-examples"
|
||||
depends on BR2_TARGET_OPTEE_OS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # optee-client
|
||||
select BR2_PACKAGE_OPTEE_CLIENT
|
||||
select BR2_TARGET_OPTEE_OS_SDK
|
||||
help
|
||||
Enable the OP-TEE examples package that brings examples of
|
||||
implementation of OP-TEE non-secure client applications and
|
||||
secure trusted applications. OP-TEE examples is a
|
||||
component delivered by the OP-TEE project.
|
||||
|
||||
Trusted application binary files are installed in the target
|
||||
directory /lib/optee_armtz as other trusted applications.
|
||||
At runtime OP-TEE OS can load trusted applications from this
|
||||
non-secure filesystem/directory into the secure world for
|
||||
execution.
|
||||
|
||||
https://github.com/linaro-swg/optee_examples
|
||||
|
||||
comment "optee-examples needs a toolchain w/ threads"
|
||||
depends on BR2_TARGET_OPTEE_OS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
4
package/optee-examples/optee-examples.hash
Normal file
4
package/optee-examples/optee-examples.hash
Normal file
@@ -0,0 +1,4 @@
|
||||
# From https://github.com/linaro-swg/optee_examples/archive/3.5.0.tar.gz
|
||||
sha256 5b7cf07f6d4b19a8557cfa9ab7a0d98b9e199832694c65c8a74e928926821862 optee-examples-3.5.0.tar.gz
|
||||
# Locally computed
|
||||
sha256 6f1ef8449cb82ae79d2155605f7985bdf0f08e7ab5007de9b4362e8bf28733b9 LICENSE
|
||||
31
package/optee-examples/optee-examples.mk
Normal file
31
package/optee-examples/optee-examples.mk
Normal file
@@ -0,0 +1,31 @@
|
||||
################################################################################
|
||||
#
|
||||
# optee-examples
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OPTEE_EXAMPLES_VERSION = 3.5.0
|
||||
OPTEE_EXAMPLES_SITE = $(call github,linaro-swg,optee_examples,$(OPTEE_EXAMPLES_VERSION))
|
||||
OPTEE_EXAMPLES_LICENSE = BSD-2-Clause
|
||||
OPTEE_EXAMPLES_LICENSE_FILES = LICENSE
|
||||
|
||||
OPTEE_EXAMPLES_DEPENDENCIES = optee-client optee-os
|
||||
|
||||
# Trusted Application are not built from CMake due to ta_dev_kit dependencies.
|
||||
# We must build and install them on target.
|
||||
define OPTEE_EXAMPLES_BUILD_TAS
|
||||
$(foreach f,$(wildcard $(@D)/*/ta/Makefile), \
|
||||
$(TARGET_CONFIGURE_OPTS) \
|
||||
$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
|
||||
TA_DEV_KIT_DIR=$(OPTEE_OS_SDK) \
|
||||
O=out -C $(dir $f) all
|
||||
)
|
||||
endef
|
||||
define OPTEE_EXAMPLES_INSTALL_TAS
|
||||
@mkdir -p $(TARGET_DIR)/lib/optee_armtz
|
||||
@$(INSTALL) -D -m 444 -t $(TARGET_DIR)/lib/optee_armtz $(@D)/*/ta/out/*.ta
|
||||
endef
|
||||
OPTEE_EXAMPLES_POST_BUILD_HOOKS += OPTEE_EXAMPLES_BUILD_TAS
|
||||
OPTEE_EXAMPLES_POST_INSTALL_TARGET_HOOKS += OPTEE_EXAMPLES_INSTALL_TAS
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user