Update README about musl

master
Jiajie Chen 6 years ago
parent 095cfa8e66
commit a1e79918a4

@ -5,17 +5,23 @@
User programs for [rCore OS](https://github.com/wangrunji0408/RustOS). User programs for [rCore OS](https://github.com/wangrunji0408/RustOS).
Now it has 3 parts: Now it has 3 parts:
* `ucore`: C-lang, from the original [ucore_os_lab](https://github.com/chyyuu/ucore_os_plus) * `ucore`: C-lang, from the original [ucore_os_lab](https://github.com/chyyuu/ucore_os_plus)
* `biscuit`: C/C++, from [Biscuit](https://github.com/mit-pdos/biscuit), based on a partial libc `litc`. (WIP) * `biscuit`: C/C++, from [Biscuit](https://github.com/mit-pdos/biscuit), based on a `musl` instead of original `litc`.
* `rust`: Simple no_std Rust programs. * `rust`: Simple no_std Rust programs.
## Build ## Build
To build biscuit programs, install musl toolchain first:
```bash
$ sudo pacman -Syu musl # archlinux
$ brew install FileSottile/musl-cross/musl-cross # macOS
```
```bash ```bash
make {ucore,biscuit,rust,all} arch={i386,x86_64,riscv32,riscv64,aarch64} $ make {ucore,biscuit,rust,all} arch={i386,x86_64,riscv32,riscv64,aarch64}
``` ```
Output to `build/$(arch)` Output to `build/$(arch)`
@ -24,4 +30,4 @@ Output to `build/$(arch)`
## Notice ## Notice
* The syscall ids have been set compatible with [Linux64](https://syscalls64.paolostivanin.com). * The syscall ids have been set compatible with [Linux64](https://syscalls64.paolostivanin.com).
* So the ucore part can not run on the original ucore. * So the ucore part can not run on the original ucore.

Loading…
Cancel
Save