mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-22 00:43:24 +00:00
Refine osdk doc
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
f7a9ed8739
commit
286a3514b3
@ -39,11 +39,11 @@ contains the following contents:
|
||||
|
||||
```text
|
||||
myos/
|
||||
src/
|
||||
lib.rs
|
||||
Cargo.toml
|
||||
OSDK.toml
|
||||
rust-toolchain.toml
|
||||
├── Cargo.toml
|
||||
├── OSDK.toml
|
||||
├── rust-toolchain.toml
|
||||
└── src/
|
||||
└── lib.rs
|
||||
```
|
||||
|
||||
### `src/lib.rs`
|
||||
|
@ -36,17 +36,17 @@ The generated directory structure will be as follows:
|
||||
|
||||
```text
|
||||
myworkspace/
|
||||
Cargo.toml
|
||||
OSDK.toml
|
||||
rust-toolchain.toml
|
||||
myos/
|
||||
src/
|
||||
lib.rs
|
||||
Cargo.toml
|
||||
mymodule/
|
||||
src/
|
||||
lib.rs
|
||||
Cargo.toml
|
||||
├── Cargo.toml
|
||||
├── OSDK.toml
|
||||
├── rust-toolchain.toml
|
||||
├── myos/
|
||||
│ ├── Cargo.toml
|
||||
│ └── src/
|
||||
│ └── lib.rs
|
||||
└── mymodule/
|
||||
├── Cargo.toml
|
||||
└── src/
|
||||
└── lib.rs
|
||||
```
|
||||
|
||||
In addition to the two projects,
|
||||
|
@ -60,7 +60,7 @@ Arguments for running QEMU
|
||||
## Examples
|
||||
|
||||
- Build a project with `./initramfs.cpio.gz`
|
||||
as the initramfs and `multiboot2` as the boot portocol:
|
||||
as the initramfs and `multiboot2` as the boot protocol:
|
||||
|
||||
```bash
|
||||
cargo osdk build --initramfs="./initramfs.cpio.gz" --boot.protocol="multiboot2"
|
||||
|
@ -17,7 +17,7 @@ and one of the crate
|
||||
(in the same directory as the crate's `Cargo.toml`).
|
||||
So which manifest should be used?
|
||||
|
||||
The rules are
|
||||
The rules are:
|
||||
|
||||
- If running commands in the workspace root directory,
|
||||
the `OSDK.toml` of the workspace will be used
|
||||
|
Reference in New Issue
Block a user