Skip to content

Commit

Permalink
update rust std to 1.56.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RMheng committed Nov 19, 2021
1 parent 352ff91 commit 4214ef1
Show file tree
Hide file tree
Showing 43 changed files with 598 additions and 591 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defaults:
jobs:
build-and-run-examples:
runs-on: ubuntu-20.04
container: teaclave/teaclave-trustzone-sdk-build:0.2.2
container: teaclave/teaclave-trustzone-sdk-build:0.3.0
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -40,14 +40,16 @@ jobs:
source environment &&
make optee &&
. ~/.cargo/env &&
rustup default nightly-2019-07-08 &&
rustup component add rust-src &&
rustup target install aarch64-unknown-linux-gnu arm-unknown-linux-gnueabihf &&
rustup default nightly-2021-09-20 &&
make examples
- name: Run tests and examples
run: |
cd ci && ./ci.sh
build-utee-teec:
runs-on: ubuntu-20.04
container: teaclave/teaclave-trustzone-sdk-build:0.2.2
container: teaclave/teaclave-trustzone-sdk-build:0.3.0
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -63,12 +65,14 @@ jobs:
source environment &&
make optee &&
. ~/.cargo/env &&
rustup default nightly-2019-07-08 &&
rustup component add rust-src &&
rustup target install aarch64-unknown-linux-gnu arm-unknown-linux-gnueabihf &&
rustup default nightly-2021-09-20 &&
(cd optee-utee && xargo build --target aarch64-unknown-optee-trustzone -vv) &&
(cd optee-teec && cargo build --target aarch64-unknown-linux-gnu -vv)
build-and-run-examples-in-OPTEE-repo:
runs-on: ubuntu-20.04
container: teaclave/teaclave-trustzone-sdk-build:0.2.2
container: teaclave/teaclave-trustzone-sdk-build:0.3.0
steps:
- name: Checkout OP-TEE repository
run: |
Expand Down
12 changes: 6 additions & 6 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
url = https://github.com/OP-TEE/optee_client.git
[submodule "rust/rust"]
path = rust/rust
url = https://github.com/mesalock-linux/rust.git
branch = optee-trustzone
url = https://github.com/RMheng/rust.git
branch = update_v1.56.1-new
[submodule "rust/libc"]
path = rust/libc
url = https://github.com/mesalock-linux/libc.git
branch = optee-trustzone
url = https://github.com/RMheng/libc.git
branch = update_v0.2.99
[submodule "rust/compiler-builtins"]
path = rust/compiler-builtins
url = https://github.com/mesalock-linux/compiler-builtins.git
branch = optee-trustzone
url = https://github.com/RMheng/compiler-builtins.git
branch = update_v0.1.44
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ RUN apt-get update && \
screen \
libvdeplug-dev \
libsdl2-dev \
pip \
ca-certificates

RUN pip install cryptography

RUN apt-get install -y software-properties-common && \
add-apt-repository ppa:linuxuprising/libpng12 && \
apt-get update && \
Expand All @@ -85,10 +88,10 @@ RUN apt-get install -y software-properties-common && \
# Install Rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y && \
. $HOME/.cargo/env && \
rustup default nightly-2019-07-08 && \
rustup default nightly-2021-09-20 && \
rustup component add rust-src && \
rustup target install aarch64-unknown-linux-gnu && \
rustup default 1.44.0 && cargo +1.44.0 install xargo && \
rustup default nightly-2019-07-08
rustup default nightly-2021-09-20

ENV PATH="/root/.cargo/bin:$PATH"
60 changes: 30 additions & 30 deletions examples/acipher-rs/ta/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/acipher-rs/ta/Xargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
# under the License.

[dependencies.std]
path = "../../../rust/rust/src/libstd"
path = "../../../rust/rust/library/std"

[patch.crates-io]
libc = { path = "../../../rust/libc" }
compiler_builtins = { path = "../../../rust/compiler-builtins" }
rustc-std-workspace-core = { path = "../../../rust/rust/src/tools/rustc-std-workspace-core" }
rustc-std-workspace-alloc = { path = "../../../rust/rust/src/tools/rustc-std-workspace-alloc" }
rustc-std-workspace-core = { path = "../../../rust/rust/library/rustc-std-workspace-core" }
rustc-std-workspace-alloc = { path = "../../../rust/rust/library/rustc-std-workspace-alloc" }
60 changes: 30 additions & 30 deletions examples/aes-rs/ta/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/aes-rs/ta/Xargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
# under the License.

[dependencies.std]
path = "../../../rust/rust/src/libstd"
path = "../../../rust/rust/library/std"

[patch.crates-io]
libc = { path = "../../../rust/libc" }
compiler_builtins = { path = "../../../rust/compiler-builtins" }
rustc-std-workspace-core = { path = "../../../rust/rust/src/tools/rustc-std-workspace-core" }
rustc-std-workspace-alloc = { path = "../../../rust/rust/src/tools/rustc-std-workspace-alloc" }
rustc-std-workspace-core = { path = "../../../rust/rust/library/rustc-std-workspace-core" }
rustc-std-workspace-alloc = { path = "../../../rust/rust/library/rustc-std-workspace-alloc" }
Loading

0 comments on commit 4214ef1

Please sign in to comment.