Skip to content

Commit

Permalink
doc: add doc for kbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Azure-stars committed May 12, 2024
1 parent 1136b4b commit 9a97f7e
Showing 4 changed files with 36 additions and 28 deletions.
9 changes: 9 additions & 0 deletions Cargo.lock

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

27 changes: 1 addition & 26 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,4 @@
[patch."https://github.com/Starry-OS/arch_boot.git".arch_boot]
path = "crates/arch_boot"

[patch."https://github.com/Starry-OS/axfs.git".axfs]
path = "crates/axfs"

[patch."https://github.com/Starry-OS/axhal.git".axhal]
path = "crates/axhal"

[patch."https://github.com/Starry-OS/axmem.git".axmem]
path = "crates/axmem"

[patch."https://github.com/Starry-OS/axnet.git".axnet]
path = "crates/axnet"

[patch."https://github.com/Starry-OS/axprocess.git".axprocess]
path = "crates/axprocess"

[patch."https://github.com/Starry-OS/axruntime.git".axruntime]
path = "crates/axruntime"

[patch."https://github.com/Starry-OS/axstarry.git".axstarry]
path = "crates/axstarry"

[patch."https://github.com/Starry-OS/linux_syscall_api.git".linux_syscall_api]
path = "crates/linux_syscall_api"
[patch]

[profile.dev]
lto = true
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -43,3 +43,27 @@ $ make pre_libc
$ make A=apps/c/helloworld ARCH=x86_64 build
```

## Pull crates to local workspace

```sh
# To download the tool
$ cargo install kbuild

$ mkdir crates

# Load crates

$ kbuild patch add linux_syscall_api

$ kbuild patch add axstarry

# Then crates will be downloaded to the crates/ folder

# To remove the crates
$ kbuild patch remove linux_syscall_api

$ kbuild patch remove axstarry

# Please verify that crates don't have any uncommitted changes before removing them.

```
4 changes: 2 additions & 2 deletions apps/monolithic_userboot/src/batch.rs
Original file line number Diff line number Diff line change
@@ -56,10 +56,10 @@ pub const SDCARD_TESTCASES: &[&str] = &[
// "lmbench_all bw_mmap_rd -P 1 512k open2close /var/tmp/XXX",
// "busybox echo context switch overhead",
// "lmbench_all lat_ctx -P 1 -s 32 2 4 8 16 24 32 64 96",
// "busybox sh libctest_testcode.sh",
"busybox sh libctest_testcode.sh",
// "busybox sh lua_testcode.sh",
// "libc-bench",
"busybox sh ./netperf_testcode.sh",
// "busybox sh ./netperf_testcode.sh",
// "busybox sh ./cyclictest_testcode.sh",
];

0 comments on commit 9a97f7e

Please sign in to comment.