Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

View File

@@ -0,0 +1,83 @@
config BR2_PACKAGE_OPTEE_TEST
bool "optee-test"
depends on BR2_TARGET_OPTEE_OS
depends on BR2_TOOLCHAIN_HAS_THREADS # optee-client
depends on BR2_INSTALL_LIBSTDCPP
depends on !BR2_STATIC_LIBS # optee-client
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3 # optee-client
depends on BR2_USE_MMU # optee-client
select BR2_PACKAGE_OPTEE_CLIENT
select BR2_TARGET_OPTEE_OS_SDK
help
This build option enables OP-TEE test package from the
OP-TEE project. It helps platforms to verify the OP-TEE
installation against a set of regression and performance
tests.
The package generates userspace test applications and
data files for the Linux userland. It also generates
OP-TEE trusted applications.
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.
http://github.com/OP-TEE/optee_test
comment "optee-test needs a toolchain w/ threads, C++, dynamic library, headers >= 4.3"
depends on BR2_TARGET_OPTEE_OS
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
if BR2_PACKAGE_OPTEE_TEST
choice
prompt "optee-test version"
default BR2_PACKAGE_OPTEE_TEST_AS_OS \
if BR2_TARGET_OPTEE_OS_CUSTOM_VERSION
default BR2_PACKAGE_OPTEE_TEST_LATEST \
if BR2_PACKAGE_HOST_RUSTC_ARCH_SUPPORTS
help
Select the version of optee-test you want to use
config BR2_PACKAGE_OPTEE_TEST_AS_OS
bool "Same as optee-os being built"
depends on BR2_TARGET_OPTEE_OS_CUSTOM_VERSION
config BR2_PACKAGE_OPTEE_TEST_LATEST
bool "4.9.0"
help
Use the latest release tag from the optee-test official Git
repository.
config BR2_PACKAGE_OPTEE_TEST_CUSTOM_TARBALL
bool "Custom tarball"
help
This option allows to specify a URL pointing to an optee-test
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_TEST_CUSTOM_TARBALL
config BR2_PACKAGE_OPTEE_TEST_CUSTOM_TARBALL_LOCATION
string "URL of custom optee-test tarball"
endif
config BR2_PACKAGE_OPTEE_TEST_VERSION
string
default BR2_TARGET_OPTEE_OS_CUSTOM_VERSION_VALUE \
if BR2_PACKAGE_OPTEE_TEST_AS_OS
default "4.9.0" if BR2_PACKAGE_OPTEE_TEST_LATEST
default "custom" if BR2_PACKAGE_OPTEE_TEST_CUSTOM_TARBALL
endif # BR2_PACKAGE_OPTEE_TEST

View File

@@ -0,0 +1,5 @@
# Locally computed
sha256 b7158740dc4ea2f585363097ebd60a265eef0e078674d70636b1731be94780cc optee-test-4.9.0.tar.gz
sha256 2b36458cd0292200e406a608efe7dfda17aae39646a86b730a2776b61d0fa410 LICENSE-BSD
sha256 a094472b51f57d0403953d087e410793519cb6f3a7cea2be34eb44e09a426a73 LICENSE-GPL
sha256 a562ab14c307d0e02b7bf6f1bdb0d1cf789409e6375a500e15dc7a0503e5c2c3 LICENSE.md

View File

@@ -0,0 +1,54 @@
################################################################################
#
# optee-test
#
################################################################################
OPTEE_TEST_VERSION = $(call qstrip,$(BR2_PACKAGE_OPTEE_TEST_VERSION))
OPTEE_TEST_LICENSE = GPL-2.0, BSD-2-Clause,
OPTEE_TEST_LICENSE_FILES = LICENSE-BSD LICENSE-GPL LICENSE.md
ifeq ($(BR2_PACKAGE_OPTEE_TEST_CUSTOM_TARBALL),y)
OPTEE_TEST_TARBALL = $(call qstrip,$(BR2_PACKAGE_OPTEE_TEST_CUSTOM_TARBALL_LOCATION))
OPTEE_TEST_SITE = $(patsubst %/,%,$(dir $(OPTEE_TEST_TARBALL)))
OPTEE_TEST_SOURCE = $(notdir $(OPTEE_TEST_TARBALL))
else
OPTEE_TEST_SITE = $(call github,OP-TEE,optee_test,$(OPTEE_TEST_VERSION))
endif
ifeq ($(BR2_PACKAGE_OPTEE_TEST):$(BR2_PACKAGE_OPTEE_TEST_LATEST),y:)
BR_NO_CHECK_HASH_FOR += $(OPTEE_TEST_SOURCE)
endif
OPTEE_TEST_DEPENDENCIES = optee-client optee-os
ifeq ($(BR2_PACKAGE_LIBOPENSSL),y)
OPTEE_TEST_DEPENDENCIES += libopenssl
endif
OPTEE_TEST_CONF_OPTS = -DOPTEE_TEST_SDK=$(OPTEE_OS_SDK)
# Trusted Application are not built from CMake due to ta_dev_kit
# dependencies. We must build and install them on target.
define OPTEE_TEST_BUILD_TAS
$(foreach f,$(wildcard $(@D)/ta/*_lib/Makefile) $(wildcard $(@D)/ta/*/Makefile), \
$(TARGET_CONFIGURE_OPTS) \
$(MAKE) CROSS_COMPILE=$(TARGET_CROSS) \
TA_DEV_KIT_DIR=$(OPTEE_OS_SDK) \
-C $(dir $f) all
)
endef
define OPTEE_TEST_INSTALL_TAS
@mkdir -p $(TARGET_DIR)/lib/optee_armtz
@$(INSTALL) -D -m 444 -t $(TARGET_DIR)/lib/optee_armtz $(@D)/ta/*/*.ta
endef
OPTEE_TEST_POST_BUILD_HOOKS += OPTEE_TEST_BUILD_TAS
OPTEE_TEST_POST_INSTALL_TARGET_HOOKS += OPTEE_TEST_INSTALL_TAS
ifeq ($(BR2_PACKAGE_OPTEE_TEST_CUSTOM_TARBALL)$(BR_BUILDING),yy)
ifeq ($(call qstrip,$(BR2_PACKAGE_OPTEE_TEST_CUSTOM_TARBALL_LOCATION)),)
$(error No tarball location specified. Please check BR2_PACKAGE_OPTEE_TEST_CUSTOM_TARBALL_LOCATION)
endif
endif
$(eval $(cmake-package))