DemesneGH commented on issue #94:
URL: 
https://github.com/apache/incubator-teaclave-trustzone-sdk/issues/94#issuecomment-1254528931

   > then compile the example again and update the shared_folder
   
   Yes, you just need to recompile the example you've modified:
   
   ```
   $ make -C examples/your-example
   ```
   
   Then copy the CA and TA into shared_folder:
   ```
   $ cp 
example/your-example/host/target/aarch64-unknown-linux-gnu/release/[your CA] 
path/to/shared/folder
   $ cp 
example/your-example/ta/target/aarch64-unknown-optee-trustzone/release/[your 
TA] path/to/shared/folder
   ```
   After copying ta into `/lib/optee_armtz` you can run the new CA you built.
   
   
   > If I want to create a new CA/TA, is there a good guide for that?
   
   There is no documentation about writing a new CA/TA now. You can follow 
these steps to write your Rust example:
   1. Duplicate the `hello_world-rs` example and modify the code upon it.
   2. Decide commands the host app sends to TA, and modify `proto/src/lib.rs`
   3. In host:
        - modify the app name in `host/Makefile` and `host/Cargo.toml`
        - write your logic in host/src/main.rs
   4. In TA:
        - generate a random `uuid` and modify `uuid.txt`
        - write your logic in ta/src/main.rs
   5. build your example


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@teaclave.apache.org
For additional commands, e-mail: dev-h...@teaclave.apache.org

Reply via email to