kernel/meta/targets/kernel-riscv32.json
2025-04-20 01:58:13 +02:00

58 lines
1.4 KiB
JSON

{
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.target.v1",
"id": "kernel-riscv32",
"type": "target",
"props": {
"toolchain": "clang",
"arch": "riscv32",
"bits": "32",
"sys": "kernel",
"abi": "sysv",
"encoding": "utf8",
"freestanding": true,
"host": false
},
"tools": {
"cc": {
"cmd": "{shell.latest('clang')}",
"args": [
"--target=riscv32",
"-nostdlib",
"-ffreestanding"
]
},
"cxx": {
"cmd": "{shell.latest('clang++')}",
"args": [
"--target=riscv32",
"-nostdlib",
"-ffreestanding"
]
},
"ld": {
"cmd": "{shell.latest('clang')}",
"args": [
"--target=riscv32",
"-nostdlib",
"-ffreestanding",
"-Wl,-Tmeta/targets/kernel-riscv32.ld"
],
"files": [
"meta/targets/kernel-riscv32.ld"
]
},
"ar": {
"cmd": "{shell.latest('llvm-ar')}",
"args": [
"rcs"
]
},
"as": {
"cmd": "{shell.latest('clang')}",
"args": [
"--target=riscv32",
"-c"
]
}
}
}