Skip to content

Commit 7cde0e6

Browse files
committed
tweaks to docs
1 parent ff4ada9 commit 7cde0e6

File tree

2 files changed

+28
-23
lines changed

2 files changed

+28
-23
lines changed

README.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ This repo does not contain the optee OS, CAs, or tee-supplicant.
77
## Build instuctions
88

99
> [!NOTE]
10-
Cross compiling from macos is not currently supported for orb-rustzone. To get things
11-
> working, we recommend using a devcontainer. Command line users can run
12-
> `.devcontainer/run.sh`, which requires installing the devcontainer CLI
13-
> (`nix profile add nixpkgs#devcontainer` or `brew install devcontainer`).
10+
> Cross compiling from macos is not currently supported for orb-rustzone. To get
11+
> things working, we recommend using a devcontainer. Command line users can run
12+
> `.devcontainer/run.sh`, which requires installing the devcontainer CLI (`nix
13+
> profile add nixpkgs#devcontainer` or `brew install devcontainer`).
1414
1515
> [!NOTE]
16-
> If you are on an aarch64 machine (for example on apple silicon), you may need to comment
17-
> out the following settings to `optee/.cargo/config.toml`:
16+
> If you are on an aarch64 machine (for example on apple silicon), you may need
17+
> to comment out the following settings to `optee/.cargo/config.toml`:
1818
> ```toml
1919
> # [target.aarch64-unknown-linux-gnu]
2020
> # linker = "aarch64-unknown-linux-gnu-gcc"
@@ -29,12 +29,14 @@ Alternatively, you can call `cargo x optee ta build -p <your_optee_package>`.
2929
3030
### How to sign TAs
3131
32-
`cargo x optee ta sign -p <your_optee_package>`. Note that this assumes you have set up
33-
an aws profile called `trustzone-stage` or `trustzone-prod`. Try adding this to your
34-
`~/.aws/config` directory:
32+
`AWS_PROFILE=trustzone-stage cargo x optee ta sign -p <your_optee_package>`.
33+
Note that this assumes you have set up an aws profile called `trustzone-stage`
34+
or `trustzone-prod`. Try adding this to your `~/.aws/config` directory:
3535
36-
NOTE: Actual values are different, check [the docs](https://worldcoin.github.io/orb-software/aws-creds.html)
37-
for the real values.
36+
37+
> [!NOTE]
38+
> Actual values are different, check [the docs](https://worldcoin.github.io/orb-software/aws-creds.html)
39+
> for the real values.
3840
3941
```ini
4042
[profile trustzone-stage]
@@ -49,6 +51,9 @@ sso_region = us-east-1
4951
sso_registration_scopes = sso:account:access
5052
```
5153
54+
Once your config is set up, you can log in with
55+
`AWS_PROFILE=trustzone-stage aws sso login --use-device-code`.
56+
5257
Note that prod builds can only be done in CI, not by hand.
5358

5459
## Troubleshooting

flake.lock

Lines changed: 12 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)