diff --git a/br-ext/package/optee_rust_examples_ext/optee_rust_examples_ext.mk b/br-ext/package/optee_rust_examples_ext/optee_rust_examples_ext.mk index e19e8b5a..5b756582 100644 --- a/br-ext/package/optee_rust_examples_ext/optee_rust_examples_ext.mk +++ b/br-ext/package/optee_rust_examples_ext/optee_rust_examples_ext.mk @@ -13,6 +13,7 @@ EXAMPLE = $(wildcard examples/*) HOST_TARGET := aarch64-unknown-linux-gnu TA_TARGET := aarch64-unknown-optee-trustzone +TA_TARGET_NO_STD := aarch64-unknown-linux-gnu export RUST_TARGET_PATH = $(@D) export RUST_COMPILER_RT_ROOT = $(RUST_TARGET_PATH)/rust/rust/src/llvm-project/compiler-rt @@ -37,6 +38,12 @@ define OPTEE_RUST_EXAMPLES_EXT_INSTALL_TARGET_CMDS $(INSTALL) -v -p --mode=444 \ --target-directory=$(TARGET_DIR)/lib/optee_armtz $f \ &&) true + @$(foreach f,$(wildcard $(@D)/examples/*/ta/target/$(TA_TARGET_NO_STD)/release/*.ta), \ + mkdir -p $(TARGET_DIR)/lib/optee_armtz && \ + echo Installing $f && \ + $(INSTALL) -v -p --mode=444 \ + --target-directory=$(TARGET_DIR)/lib/optee_armtz $f \ + &&) true @$(foreach f,$(wildcard $(@D)/examples/*/host/target/$(HOST_TARGET)/release/*-rs), \ echo Installing $f && \ $(INSTALL) -v -p --target-directory=$(TARGET_DIR)/usr/bin $f \