limine build llvm deps were ass
This commit is contained in:
parent
14e0bdf235
commit
1633b821e2
3 changed files with 103 additions and 0 deletions
1
sys-boot/limine/Manifest
Normal file
1
sys-boot/limine/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST limine-10.8.4.tar.gz 607662 BLAKE2B e2aed179b9f88750e5829c8c4b7693c64fd296b0a1f3f182340330e750e955306f648cccee649560a9e111ccc8978421b9da9e702e694da24cd62830110943d1 SHA512 4ef18e78b2f483722be23e19870e15217f90e5a6c72b53a925654971fe1cdee8f036aca057821e8d2e9a24e1c9b815fbdd20b639850b08b2c8c7e72dfec4db42
|
||||
54
sys-boot/limine/limine-10.8.4.ebuild
Normal file
54
sys-boot/limine/limine-10.8.4.ebuild
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LLVM_COMPAT=( {19..21} )
|
||||
inherit llvm-r2
|
||||
|
||||
DESCRIPTION="Limine is a modern, advanced, and portable BIOS/UEFI multiprotocol bootloader"
|
||||
HOMEPAGE="https://limine-bootloader.org/"
|
||||
SRC_URI="https://codeberg.org/Limine/Limine/releases/download/v${PV}/limine-${PV}.tar.gz"
|
||||
|
||||
LICENSE="BSD-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
# ~x86
|
||||
IUSE="bios bios-pxe bios-cd uefi-cd uefi-ia32 uefi-x86-64 uefi-aarch64 uefi-riscv64 uefi-loongarch64"
|
||||
|
||||
#MY_LLVM_TARGETS="AArch64 ARM X86 RISCV LoongArch"
|
||||
#MY_LLVM_FLAGS="llvm_targets_${MY_LLVM_TARGETS// /(-),llvm_targets_}(-)"
|
||||
|
||||
BDEPEND="
|
||||
app-alternatives/gzip
|
||||
dev-lang/nasm
|
||||
sys-apps/findutils
|
||||
uefi-cd? ( sys-fs/mtools )
|
||||
uefi-aarch64? ( llvm-core/clang[llvm_targets_AArch64] )
|
||||
uefi-ia32? ( llvm-core/clang[llvm_targets_ARM] )
|
||||
uefi-loongarch64? ( llvm-core/clang[llvm_targets_LoongArch] )
|
||||
uefi-riscv64? ( llvm-core/clang[llvm_targets_RISCV] )
|
||||
uefi-x86-64? ( llvm-core/clang[llvm_targets_X86] )
|
||||
"
|
||||
# $(llvm_gen_dep "
|
||||
# llvm-core/llvm:\${LLVM_SLOT}[${MY_LLVM_FLAGS}]
|
||||
# llvm-core/clang:\${LLVM_SLOT}[${MY_LLVM_FLAGS}]
|
||||
# llvm-core/lld:\${LLVM_SLOT}
|
||||
# ")
|
||||
|
||||
src_configure() {
|
||||
local myconf=(
|
||||
"$(use_enable bios)"
|
||||
"$(use_enable bios-cd)"
|
||||
"$(use_enable bios-pxe)"
|
||||
|
||||
"$(use_enable uefi-ia32)"
|
||||
"$(use_enable uefi-x86-64)"
|
||||
"$(use_enable uefi-aarch64)"
|
||||
"$(use_enable uefi-riscv64)"
|
||||
"$(use_enable uefi-loongarch64)"
|
||||
"$(use_enable uefi-cd)"
|
||||
)
|
||||
|
||||
econf "${myconf[@]}"
|
||||
}
|
||||
48
sys-boot/limine/metadata.xml
Normal file
48
sys-boot/limine/metadata.xml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person" proxied="yes">
|
||||
<email>kacper.slominski72@gmail.com</email>
|
||||
<name>Kacper Słomiński</name>
|
||||
</maintainer>
|
||||
<maintainer type="person" proxied="proxy">
|
||||
<email>sam@gentoo.org</email>
|
||||
<name>Sam James</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">limine-bootloader/limine</remote-id>
|
||||
<remote-id type="codeberg">Limine/Limine</remote-id>
|
||||
<bugs-to>https://codeberg.org/Limine/Limine/issues</bugs-to>
|
||||
<changelog>https://codeberg.org/Limine/Limine/src/branch/trunk/ChangeLog</changelog>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="uefi-ia32">
|
||||
Enable IA32 (32-bit x86) UEFI support.
|
||||
</flag>
|
||||
<flag name="uefi-x86-64">
|
||||
Enable x86-64 UEFI support.
|
||||
</flag>
|
||||
<flag name="uefi-aarch64">
|
||||
Enable AArch64 UEFI support.
|
||||
</flag>
|
||||
<flag name="uefi-riscv64">
|
||||
Enable 64-bit RISC-V UEFI support.
|
||||
</flag>
|
||||
<flag name="uefi-loongarch64">
|
||||
Enable 64-bit LoongArch UEFI support.
|
||||
</flag>
|
||||
<flag name="uefi-cd">
|
||||
Enable building limine-uefi-cd.bin using <pkg>sys-fs/mtools</pkg>.
|
||||
</flag>
|
||||
|
||||
<flag name="bios">
|
||||
Enable legacy x86 BIOS/MBR boot support.
|
||||
</flag>
|
||||
<flag name="bios-pxe">
|
||||
Enables legacy x86 BIOS PXE boot support.
|
||||
</flag>
|
||||
<flag name="bios-cd">
|
||||
Enables legacy x86 BIOS boot support for CDs.
|
||||
</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
Loading…
Add table
Add a link
Reference in a new issue