mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
docs: Update instructions to build debug TD-SHIM
Current instructions are incorrect and there is now a new profile called dev-opt to build the debug version of TD-SHIM. Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
parent
e041defa67
commit
c97b56251d
@ -103,7 +103,7 @@ firmware:
|
|||||||
### TDShim
|
### TDShim
|
||||||
|
|
||||||
> **Note**
|
> **Note**
|
||||||
> The latest version of TDShim being tested is [_66bb334_](https://github.com/confidential-containers/td-shim/tree/66bb33451befbf1291abe3cfea7ee9e99d922b0d).
|
> The latest version of TDShim being tested is [_v0.8.0_](https://github.com/confidential-containers/td-shim/releases/tag/v0.8.0).
|
||||||
|
|
||||||
This is a lightweight version of the TDVF, written in Rust and designed for
|
This is a lightweight version of the TDVF, written in Rust and designed for
|
||||||
direct kernel boot, which is useful for containers use cases.
|
direct kernel boot, which is useful for containers use cases.
|
||||||
@ -113,7 +113,7 @@ and `LLVM` first. The TDshim can be build as follows:
|
|||||||
```bash
|
```bash
|
||||||
git clone https://github.com/confidential-containers/td-shim
|
git clone https://github.com/confidential-containers/td-shim
|
||||||
cd td-shim
|
cd td-shim
|
||||||
git checkout 66bb33451befbf1291abe3cfea7ee9e99d922b0d
|
git checkout v0.8.0
|
||||||
cargo install cargo-xbuild
|
cargo install cargo-xbuild
|
||||||
export CC=clang
|
export CC=clang
|
||||||
export AR=llvm-ar
|
export AR=llvm-ar
|
||||||
@ -121,15 +121,13 @@ export CC_x86_64_unknown_none=clang
|
|||||||
export AR_x86_64_unknown_none=llvm-ar
|
export AR_x86_64_unknown_none=llvm-ar
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
./sh_script/preparation.sh
|
./sh_script/preparation.sh
|
||||||
cargo xbuild -p td-shim --target x86_64-unknown-none --release --features=main,tdx
|
cargo image --release
|
||||||
cargo run -p td-shim-tools --bin td-shim-ld --features=linker -- target/x86_64-unknown-none/release/ResetVector.bin target/x86_64-unknown-none/release/td-shim -o target/release/final.bin
|
|
||||||
```
|
```
|
||||||
|
|
||||||
If debug logs from the TDShim is needed, here are the alternative
|
If debug logs from the TDShim is needed, here are the alternative
|
||||||
commands:
|
commands:
|
||||||
```bash
|
```bash
|
||||||
cargo xbuild -p td-shim --target x86_64-unknown-none --features=main,tdx
|
cargo image
|
||||||
cargo run -p td-shim-tools --bin td-shim-ld --features=linker -- target/x86_64-unknown-none/debug/ResetVector.bin target/x86_64-unknown-none/debug/td-shim -o target/debug/final.bin
|
|
||||||
```
|
```
|
||||||
|
|
||||||
And run a TDX VM by providing the firmware previously built, along with a guest
|
And run a TDX VM by providing the firmware previously built, along with a guest
|
||||||
|
Loading…
Reference in New Issue
Block a user