Skip to content

Commit

Permalink
optee_rust_examples_ext: Add TA target for no-std mode
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
Signed-off-by: Sumit Garg <[email protected]>
  • Loading branch information
b49020 authored and jforissier committed Dec 28, 2023
1 parent 9d06866 commit 98a7281
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 98a7281

Please sign in to comment.