From 98a7281647a72a49148baedb047c521d7456908b Mon Sep 17 00:00:00 2001 From: Sumit Garg Date: Tue, 26 Dec 2023 18:08:15 +0530 Subject: [PATCH] optee_rust_examples_ext: Add TA target for no-std mode aarch64-unknown-linux-gnu target is used to compile TAs in no-std mode, so add corresponding support without breaking support for std mode. Acked-by: Yuan Zhuang Acked-by: Jens Wiklander Signed-off-by: Sumit Garg --- .../optee_rust_examples_ext/optee_rust_examples_ext.mk | 7 +++++++ 1 file changed, 7 insertions(+) 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 \