Install this version:
emerge -a =sys-apps/opal-utils-7.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-apps/opal-utils-7.1
Or alternatively:
emerge --autounmask-write -a =sys-apps/opal-utils-7.1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 7.1 | 8 | ~ppc64 | 0 |
# Copyright 2019-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{13..14} )
inherit linux-info python-single-r1 systemd toolchain-funcs
DESCRIPTION="OPAL firmware utilities"
HOMEPAGE="https://github.com/open-power/skiboot"
SRC_URI="https://github.com/open-power/skiboot/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/skiboot-${PV}"
LICENSE="Apache-2.0 GPL-2+"
SLOT="0"
KEYWORDS="~ppc64"
IUSE="doc"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}"
BDEPEND="
doc? (
$(python_gen_cond_dep '
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/recommonmark[${PYTHON_USEDEP}]'
)
)
"
CONFIG_CHECK="~MTD_POWERNV_FLASH ~OPAL_PRD ~PPC_DT_CPU_FTRS ~SCOM_DEBUGFS"
ERROR_MTD_POWERND_FLASH="CONFIG_MTD_POWERND_FLASH is required to use pflash and opal-gard"
ERROR_OPAL_PRD="CONFIG_OPAL_PRD is required to run opal-prd daemon"
ERROR_SCOM_DEBUGFS="CONFIG_SCOM_DEBUGFS is required to use xscom-utils"
PATCHES=(
"${FILESDIR}/flags.patch"
)
pkg_setup() {
linux-info_pkg_setup
python-single-r1_pkg_setup
}
src_configure() {
tc-export CC LD
export OPAL_PRD_VERSION="${PV}"
export GARD_VERSION="${PV}"
export PFLASH_VERSION="${PV}"
export XSCOM_VERSION="${PV}"
export FFSPART_VERSION="${PV}"
}
src_compile() {
# Fixes a 1/30 chance of a race condition.
emake -j1 V=1 -C external/opal-prd
# Allows user's set MAKEOPTS again.
emake V=1 -C external/gard
emake V=1 -C external/pflash
emake V=1 -C external/xscom-utils
emake V=1 -C external/ffspart
use doc && emake V=1 -C doc html
}
src_test() {
emake V=1 -C external/opal-prd test
emake V=1 -C external/gard check
# 2 test are fragile and fails because of filename path
rm -v external/pflash/test/tests/01-info || die
rm -v external/pflash/test/tests/06-miscprint || die
emake V=1 -C external/pflash check
emake V=1 -C external/ffspart check
}
src_install() {
emake -C external/opal-prd DESTDIR="${D}" prefix="${EPREFIX}/usr" install
emake -C external/gard DESTDIR="${D}" prefix="${EPREFIX}/usr" install
emake -C external/pflash DESTDIR="${D}" prefix="${EPREFIX}/usr" install
emake -C external/xscom-utils DESTDIR="${D}" prefix="${EPREFIX}/usr" install
dosbin external/ffspart/ffspart
python_domodule external/pci-scripts/ppc.py
python_doscript external/pci-scripts/phberr.py
newinitd "${FILESDIR}"/opal-prd.initd opal-prd
newconfd "${FILESDIR}"/opal-prd.confd opal-prd
systemd_dounit external/opal-prd/opal-prd.service
if use doc; then
rm -r doc/_build/html/_sources || die
local HTML_DOCS=( doc/_build/html/. )
fi
einstalldocs
}
Manage flags for this package:
euse -i <flag> -p sys-apps/opal-utils |
euse -E <flag> -p sys-apps/opal-utils |
euse -D <flag> -p sys-apps/opal-utils
doc? ( $(python_gen_cond_dep ' dev-python/sphinx[${PYTHON_USEDEP}] dev-python/recommonmark[${PYTHON_USEDEP}]' ) )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | opal-utils-7.1.tar.gz | 5425586 bytes | https://github.com/open-power/skiboot/archive/v7.1.tar.gz |