navy/meta/targets/kernel-x86_64.json

99 lines
2.3 KiB
JSON

{
"$schema": "https://schemas.cute.engineering/stable/cutekit.manifest.target.v1",
"id": "kernel-x86_64",
"type": "target",
"props": {
"toolchain": "clang",
"arch": "x86_64",
"bits": "64",
"sys": "kernel",
"loader": "limine",
"abi": "sysv",
"encoding": "utf8",
"freestanding": true,
"host": false
},
"tools": {
"cc": {
"cmd": [
"@latest",
"clang"
],
"args": [
"-target",
"x86_64-none-elf",
"-ffreestanding",
"-fno-stack-protector",
"-mno-80387",
"-mno-mmx",
"-mno-3dnow",
"-mno-sse",
"-mno-sse2",
"-mno-red-zone",
"-mcmodel=kernel",
"-Dauto=__auto_type",
"-g"
]
},
"cxx": {
"cmd": [
"@latest",
"clang++"
],
"args": [
"-target",
"x86_64-none-elf",
"-ffreestanding",
"-fno-stack-protector",
"-mno-80387",
"-mno-mmx",
"-mno-3dnow",
"-mno-sse",
"-mno-sse2",
"-mno-red-zone",
"-mcmodel=kernel"
]
},
"ld": {
"cmd": [
"@latest",
"ld.lld"
],
"args": [
"-m",
"elf_x86_64",
"-T",
[
"@abspath",
"kernel-x86_64.ld"
],
"-z",
"max-page-size=0x1000"
],
"files": [
"meta/targets/kernel-x86_64.ld"
]
},
"ar": {
"cmd": [
"@latest",
"llvm-ar"
],
"args": [
"rcs"
]
},
"as": {
"cmd": [
"@latest",
"clang"
],
"args": [
"-target",
"x86_64-none-elf",
"-c",
"-g"
]
}
}
}