Skip to content

Commit

Permalink
feat: Using cargo-byteos to build
Browse files Browse the repository at this point in the history
  • Loading branch information
yfblock committed Apr 15, 2024
1 parent 9e632a2 commit 7c0b028
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions byteos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
version = "0.1.0"
arch = ""

[crates]
vfscore = "https://github.com/Byte-OS/vfscore.git"
timestamp = ""

[modules]

# build for riscv64-qemu
[bin.riscv64-qemu]
target = "riscv64imac-unknown-none-elf"
run = "make ARCH=riscv64 justrun"
[bin.riscv64-qemu.configs]
board = "qemu"
driver = "kvirtio,kgoldfish-rtc,ns16550a"

# build for x86_64-qemu
[bin.x86_64-qemu]
target = "x86_64-unknown-none"
run = "make ARCH=x86_64 justrun"
[bin.x86_64-qemu.configs]
board = "qemu"
driver = "kvirtio,kgoldfish-rtc,ns16550a"

# build for aarch64-qemu
[bin.aarch64-qemu]
target = "aarch64-unknown-none-softfloat"
run = "make ARCH=aarch64 justrun"
[bin.aarch64-qemu.configs]
board = "qemu"
driver = "kvirtio,kgoldfish-rtc,ns16550a"

# build for loongarch64-qemu
[bin.loongarch64-qemu]
target = "loongarch64-unknown-none"
run = "make ARCH=loongarch64 justrun"
[bin.loongarch64-qemu.configs]
board = "qemu"
driver = "kramdisk,kgoldfish-rtc,ns16550a"

0 comments on commit 7c0b028

Please sign in to comment.