This is an automated email from the ASF dual-hosted git repository.
yuanz pushed a change to branch main
in repository
https://gitbox.apache.org/repos/asf/incubator-teaclave-trustzone-sdk.git
from b65877b examples/std: workaround for building ARM32 tls TAs
new 4ba89b5 Introduce optee-utee-build crate: 1. introduce build method
to make building process simpler. 2. introduce Builder struct for developers
who want to customize the building process. 3. introduce HeaderFileGenerator
struct for developers who want to generate a header file only. 4. introduce
Linker struct for developers who want to handle linking stuff only.
new 80b8747 Use optee-utee-build crate to build hello_world example
new 131a55a Doc: add tutorial about how to use optee-utee-build
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/ci.yml | 1 +
README.md | 3 +
docs/README.md | 1 +
docs/migrating-to-new-building-env.md | 5 +
docs/writing-rust-tas-using-optee-utee-build.md | 243 ++++++++++++++
examples/hello_world-rs/ta/Cargo.toml | 4 +-
examples/hello_world-rs/ta/Makefile | 3 +-
examples/hello_world-rs/ta/build.rs | 86 +----
examples/hello_world-rs/ta/src/main.rs | 12 -
examples/hello_world-rs/ta/ta_static.rs | 102 ------
.../optee-teec-sys => optee-utee-build}/Cargo.toml | 11 +-
optee-utee-build/src/builder.rs | 131 ++++++++
optee-utee-build/src/code_generator.rs | 360 +++++++++++++++++++++
.../src/lib.rs => optee-utee-build/src/error.rs | 36 ++-
{optee-teec => optee-utee-build}/src/lib.rs | 44 ++-
.../src/license_str.txt | 5 -
optee-utee-build/src/linker.rs | 190 +++++++++++
optee-utee-build/src/ta_config.rs | 193 +++++++++++
.../test_files/test_edition_2024_result.rs | 85 +++--
.../test_files/test_edition_before_2024_result.rs | 73 ++---
setup.sh | 6 +-
21 files changed, 1270 insertions(+), 324 deletions(-)
create mode 100644 docs/writing-rust-tas-using-optee-utee-build.md
delete mode 100644 examples/hello_world-rs/ta/ta_static.rs
copy {optee-teec/optee-teec-sys => optee-utee-build}/Cargo.toml (86%)
create mode 100644 optee-utee-build/src/builder.rs
create mode 100644 optee-utee-build/src/code_generator.rs
copy examples/diffie_hellman-rs/proto/src/lib.rs =>
optee-utee-build/src/error.rs (61%)
copy {optee-teec => optee-utee-build}/src/lib.rs (50%)
copy optee-utee/optee-utee-sys/src/tee_api_private.rs =>
optee-utee-build/src/license_str.txt (96%)
create mode 100644 optee-utee-build/src/linker.rs
create mode 100644 optee-utee-build/src/ta_config.rs
copy examples/aes-rs/ta/ta_static.rs =>
optee-utee-build/test_files/test_edition_2024_result.rs (75%)
copy examples/aes-rs/ta/ta_static.rs =>
optee-utee-build/test_files/test_edition_before_2024_result.rs (79%)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]