Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu_v8: Enable Rust examples build by default #717

Merged
merged 2 commits into from
Jan 19, 2024

Commits on Jan 16, 2024

  1. optee_rust: Generalize Rust examples build support

    First of all since Rust examples have been tested for Arm targets, so
    just enable them for Arm platforms only. Further to support different
    build configurations for host applications and TAs, the Rust examples
    build have been generalized. So now we only need to define following
    environment variables to build Rust examples:
    
    - TARGET_HOST: Rust toolchain target for host applications.
    - TARGET_TA: Rust toolchain target for TAs.
    - CROSS_COMPILE_HOST: GCC cross compiler path for host applications.
    - CROSS_COMPILE_TA: GCC cross compiler path for TAs
    - TA_DEV_KIT_DIR: Path to OP-TEE TA development kit directory.
    - OPTEE_CLIENT_EXPORT: Path to OP-TEE client export directory.
    
    Along with that the config option to enable Rust examples is renamed:
    s/OPTEE_RUST_ENABLE/RUST_ENABLE/.
    
    Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
    Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (vexpress-qemu_armv8a)
    Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
    b49020 committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    914b909 View commit details
    Browse the repository at this point in the history
  2. qemu_v8: Enable Rust examples build by default

    With no-std support it has significantly reduced time to build and test
    rust examples. So enable rust examples build by default for qemu_v8.
    Along with that add rust expect script to build repo to avoid
    check script duplication in OP-TEE rust SDK repo.
    
    Link: https://github.com/apache/incubator-teaclave-trustzone-sdk/blob/no-std/ci/qemu-check.exp
    Acked-by: Yuan Zhuang <yuanz@apache.org>
    Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
    Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (vexpress-qemu_armv8a)
    Signed-off-by: Sumit Garg <sumit.garg@linaro.org>
    b49020 committed Jan 16, 2024
    Configuration menu
    Copy the full SHA
    bb22a6d View commit details
    Browse the repository at this point in the history