More stuff
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
name = "limine"
|
||||
version = "12.2.0"
|
||||
revision = 1
|
||||
description = "Modern, secure, portable, multiprotocol bootloader and boot manager"
|
||||
license = "BSD-2-Clause"
|
||||
|
||||
source = {
|
||||
"url": f"https://github.com/Limine-Bootloader/Limine/releases/download/v{version}/limine-{version}.tar.gz",
|
||||
"sha256": "db8a119878cfeead63c0a78236c577c40539c5759496950ea0ed32a6cf567865",
|
||||
"strip_components": 1,
|
||||
}
|
||||
|
||||
host_deps = ["binutils", "gcc"]
|
||||
deps = [OPTIONS.libc]
|
||||
|
||||
def configure(ctx):
|
||||
toolchain = OPTIONS.target_triple + "-"
|
||||
autotools_configure(ctx, extra_env = {
|
||||
"TOOLCHAIN_FOR_TARGET": toolchain,
|
||||
"LD_FOR_TARGET": toolchain + "ld",
|
||||
"OBJCOPY_FOR_TARGET": toolchain + "objcopy",
|
||||
"OBJDUMP_FOR_TARGET": toolchain + "objdump",
|
||||
})
|
||||
|
||||
_, build, install = autotools()
|
||||
@@ -13,13 +13,12 @@ source = {
|
||||
host_deps = ["binutils", "gcc"]
|
||||
|
||||
def _make_args(ctx, *args):
|
||||
triple = ctx.options["target_triple"]
|
||||
result = [
|
||||
"make",
|
||||
"-C", ctx.source_dir,
|
||||
"O=" + ctx.build_dir,
|
||||
"ARCH=x86_64",
|
||||
f"CROSS_COMPILE={triple}-",
|
||||
"CROSS_COMPILE=" + OPTIONS.target_triple + "-",
|
||||
"-j" + str(ctx.jobs),
|
||||
]
|
||||
result.extend(args)
|
||||
|
||||
@@ -13,18 +13,17 @@ source = {
|
||||
host_deps = ["binutils", "gcc"]
|
||||
|
||||
def configure(ctx):
|
||||
triple = ctx.options["target_triple"]
|
||||
ctx.run(
|
||||
[
|
||||
ctx.source_dir + "/configure",
|
||||
"--prefix=/usr",
|
||||
"--syslibdir=/lib",
|
||||
"--target=" + triple,
|
||||
"--target=" + OPTIONS.target_triple,
|
||||
],
|
||||
env = {
|
||||
"CC": triple + "-gcc",
|
||||
"CFLAGS": ctx.options["cflags"],
|
||||
"LDFLAGS": ctx.options["ldflags"],
|
||||
"CC": OPTIONS.target_triple + "-gcc",
|
||||
"CFLAGS": OPTIONS.cflags,
|
||||
"LDFLAGS": OPTIONS.ldflags,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user