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,78 @@
config BR2_PACKAGE_OPTEE_EXAMPLES
bool "optee-examples"
depends on BR2_TARGET_OPTEE_OS
depends on BR2_TOOLCHAIN_HAS_THREADS # optee-client
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
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, dynamic library, headers >= 4.3"
depends on BR2_TARGET_OPTEE_OS
depends on BR2_USE_MMU
depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
!BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
if BR2_PACKAGE_OPTEE_EXAMPLES
choice
prompt "optee-examples version"
default BR2_PACKAGE_OPTEE_EXAMPLES_AS_OS \
if BR2_TARGET_OPTEE_OS_CUSTOM_VERSION
default BR2_PACKAGE_OPTEE_EXAMPLES_LATEST
help
Select the version of optee-examples you want to use
config BR2_PACKAGE_OPTEE_EXAMPLES_AS_OS
bool "Same as optee-os being built"
depends on BR2_TARGET_OPTEE_OS_CUSTOM_VERSION
config BR2_PACKAGE_OPTEE_EXAMPLES_LATEST
bool "4.9.0"
help
Use the latest release tag from the optee-examples official
Git repository.
config BR2_PACKAGE_OPTEE_EXAMPLES_CUSTOM_TARBALL
bool "Custom tarball"
help
This option allows to specify a URL pointing to an
optee-examples 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_EXAMPLES_CUSTOM_TARBALL
config BR2_PACKAGE_OPTEE_EXAMPLES_CUSTOM_TARBALL_LOCATION
string "URL of custom optee-examples tarball"
endif
config BR2_PACKAGE_OPTEE_EXAMPLES_VERSION
string
default BR2_TARGET_OPTEE_OS_CUSTOM_VERSION_VALUE \
if BR2_PACKAGE_OPTEE_EXAMPLES_AS_OS
default "4.9.0" if BR2_PACKAGE_OPTEE_EXAMPLES_LATEST
default "custom" if BR2_PACKAGE_OPTEE_EXAMPLES_CUSTOM_TARBALL
endif # BR2_PACKAGE_OPTEE_EXAMPLES

View File

@@ -0,0 +1,3 @@
# Locally computed
sha256 b95a3d72f2b266aedde0ed9b855f9c59cd0b2608df59b27e3f46935dfb6f919c optee-examples-4.9.0.tar.gz
sha256 6f1ef8449cb82ae79d2155605f7985bdf0f08e7ab5007de9b4362e8bf28733b9 LICENSE

View File

@@ -0,0 +1,48 @@
################################################################################
#
# optee-examples
#
################################################################################
OPTEE_EXAMPLES_VERSION = $(call qstrip,$(BR2_PACKAGE_OPTEE_EXAMPLES_VERSION))
OPTEE_EXAMPLES_LICENSE = BSD-2-Clause
OPTEE_EXAMPLES_LICENSE_FILES = LICENSE
ifeq ($(BR2_PACKAGE_OPTEE_EXAMPLES_CUSTOM_TARBALL),y)
OPTEE_EXAMPLES_TARBALL = $(call qstrip,$(BR2_PACKAGE_OPTEE_EXAMPLES_CUSTOM_TARBALL_LOCATION))
OPTEE_EXAMPLES_SITE = $(patsubst %/,%,$(dir $(OPTEE_EXAMPLES_TARBALL)))
OPTEE_EXAMPLES_SOURCE = $(notdir $(OPTEE_EXAMPLES_TARBALL))
else
OPTEE_EXAMPLES_SITE = $(call github,linaro-swg,optee_examples,$(OPTEE_EXAMPLES_VERSION))
endif
ifeq ($(BR2_PACKAGE_OPTEE_EXAMPLES):$(BR2_PACKAGE_OPTEE_EXAMPLES_LATEST),y:)
BR_NO_CHECK_HASH_FOR += $(OPTEE_EXAMPLES_SOURCE)
endif
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
ifeq ($(BR2_PACKAGE_OPTEE_EXAMPLES_CUSTOM_TARBALL)$(BR_BUILDING),yy)
ifeq ($(call qstrip,$(BR2_PACKAGE_OPTEE_EXAMPLES_CUSTOM_TARBALL_LOCATION)),)
$(error No tarball location specified. Please check BR2_PACKAGE_OPTEE_EXAMPLES_CUSTOM_TARBALL_LOCATION)
endif
endif
$(eval $(cmake-package))