[build] Refactor build options definitions

Split out build definition YAML files to allow different options based
on config, target, kind of module, and target/kind combination.
This commit is contained in:
Justin C. Miller
2023-07-30 23:44:04 -06:00
parent 778e766f6b
commit 21916ab869
14 changed files with 261 additions and 234 deletions

View File

@@ -0,0 +1,41 @@
---
asflags: [ "-I${source_root}/src/kernel/" ]
ccflags: [
"--target=x86_64-jsix-elf",
"-fno-omit-frame-pointer",
"-fno-stack-protector",
"-fpic",
"-fpie",
"-g3",
"-ggdb",
"-fvisibility=hidden",
"-fvisibility-inlines-hidden",
"-D__ELF__",
"-D__jsix__",
"-U__linux",
"-U__linux__",
"--sysroot='${source_root}/sysroot'" ]
cxxflags: [
"-fno-exceptions",
"-fno-rtti",
]
ldflags: [
"-g",
"-m", "elf_x86_64",
"--sysroot='${source_root}/sysroot'",
"--no-eh-frame-hdr",
"-L", "${source_root}/sysroot/lib",
"-z", "separate-code",
"-lc++", "-lc++abi", "-lunwind",
"--no-dependent-libraries",
"--dynamic-linker", "/tools/ld.so",
]