things
This commit is contained in:
+34
-6
@@ -15,9 +15,37 @@ deps = [options.libc]
|
||||
|
||||
build_if = options.target_arch in ["x86_64", "aarch64", "riscv64", "loongarch64"]
|
||||
|
||||
configure, build, install = autotools(configure_env = {
|
||||
"TOOLCHAIN_FOR_TARGET": options.target_triple + "-",
|
||||
"LD_FOR_TARGET": options.target_triple + "-" + "ld",
|
||||
"OBJCOPY_FOR_TARGET": options.target_triple + "-" + "objcopy",
|
||||
"OBJDUMP_FOR_TARGET": options.target_triple + "-" + "objdump",
|
||||
})
|
||||
arch_configure_args = {
|
||||
"x86_64": ["--enable-uefi-x86-64", "--enable-uefi-ia32", "--enable-bios", "--enable-bios-cd"],
|
||||
"aarch64": ["--enable-uefi-aarch64"],
|
||||
"riscv64": ["--enable-uefi-riscv64"],
|
||||
"loongarch64": ["--enable-uefi-loongarch64"],
|
||||
}
|
||||
|
||||
configure, build, install = autotools(
|
||||
configure_args = ["--enable-uefi-cd"] + arch_configure_args.get(options.target_arch),
|
||||
configure_env = {"TOOLCHAIN_FOR_TARGET": options.target_triple + "-"},
|
||||
)
|
||||
|
||||
subpackages = [
|
||||
subpackage(
|
||||
"limine-uefi",
|
||||
meta(description = "UEFI files"),
|
||||
[
|
||||
"usr/share/limine/BOOT*.EFI",
|
||||
"usr/share/limine/limine-uefi-*.bin",
|
||||
],
|
||||
),
|
||||
]
|
||||
|
||||
if options.target_arch == "x86_64":
|
||||
subpackages += [
|
||||
subpackage(
|
||||
"limine-bios",
|
||||
meta(description = "BIOS files"),
|
||||
[
|
||||
"usr/share/limine/limine-bios*",
|
||||
],
|
||||
)
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user