Install this version:
emerge -a =sys-firmware/edk2-tools-202305
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-firmware/edk2-tools-202305
Or alternatively:
emerge --autounmask-write -a =sys-firmware/edk2-tools-202305
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 202305 | 8 | -* ~amd64 | 0 |
# Copyright 2023 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="tools for processing UEFI firmware content (EfiRom, GenFfs, ...)"
HOMEPAGE="https://github.com/tianocore/edk2"
SRC_URI="https://github.com/tianocore/edk2/archive/edk2-stable${PV}.tar.gz"
S="${WORKDIR}/edk2-edk2-stable${PV}/BaseTools"
LICENSE="BSD-2 MIT"
SLOT="0"
KEYWORDS="-* ~amd64"
# util-linux for libuuid.so
DEPEND="sys-apps/util-linux"
RDEPEND="${DEPEND}"
# Includes manuals but RTF-formatted
BDEPEND="sys-apps/help2man"
src_prepare() {
default
# Remove brotli which pulls submodules
sed -i -e '/BrotliCompress/d' Source/C/GNUmakefile || die
}
src_compile() {
tc-export CC CXX AS AR LD
emake -C Source/C \
BUILD_CC="${CC}" \
BUILD_CXX="${CXX}" \
BUILD_AS="${AS}" \
BUILD_AR="${AR}" \
BUILD_LD="${LD}"
}
src_install() {
dobin Source/C/bin/*
for bin in Source/C/bin/*; do
help2man -s1 -n "$(basename "$bin")" -N -o "$bin".1 $bin
doman "$bin".1
done
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | edk2-stable202305.tar.gz | 15351015 bytes | https://github.com/tianocore/edk2/archive/edk2-stable202305.tar.gz |