bd64fdb32c
This package generates embedded Linux based OS userland client applications and OP-TEE OS trusted applications all embedded in the file system. These applications shows how to use the APIs OP-TEE OS is based on, both in the non secure and secure worlds. Package is added next to the OP-TEE client package in the BR package configuration. This change references in Buildroot the today's latest OP-TEE revision release tagged 3.4.0 with an added patch to fix an issue reported by recent GCC toolchains. Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> [Thomas: - drop version selection - propagate !BR2_STATIC_LIBS dependency of optee-client - make sure BR2_TARGET_OPTEE_OS_SDK is selected - use a patch generated by git format-patch - simplify the construct to build the examples] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
38 lines
1.3 KiB
Makefile
38 lines
1.3 KiB
Makefile
################################################################################
|
|
#
|
|
# optee-examples
|
|
#
|
|
################################################################################
|
|
|
|
OPTEE_EXAMPLES_VERSION = 3.4.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
|
|
|
|
ifeq ($(BR2_aarch64),y)
|
|
OPTEE_EXAMPLES_SDK = $(STAGING_DIR)/lib/optee/export-ta_arm64
|
|
else ifeq ($(BR2_arm),y)
|
|
OPTEE_EXAMPLES_SDK = $(STAGING_DIR)/lib/optee/export-ta_arm32
|
|
endif
|
|
|
|
# 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_EXAMPLES_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))
|