mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-embedded/rpi-eeprom: add 28.28
- Update to release 28.28.
- Drop the `_p1` from ${PV}, assume it is the default. Keep the
functionality for the rare cases we need a _p2.
- Depend on >=sys-apps/flashrom-1.7.0 according to this comment in
rpi-eeprom-update:
# upstream flashrom 1.4 - 1.6 may incorrectly erase chips when the probe
# reports "Unknown flash chip"
- In case an unpatched flashrom-1.7.0 does not recognize the flash
chip, rpi-eeprom-update reverts to a staged update.
Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
@@ -12,3 +12,5 @@ DIST rpi-eeprom_28.24-1.debian.tar.xz 17044 BLAKE2B e25e3e97ff5bc64097c17dfe2c4a
|
||||
DIST rpi-eeprom_28.24.orig.tar.gz 108102997 BLAKE2B 94639b4a6c563606eb14221d152712f7668f511d024053e419c74227fe6e7046b5621ce27ff3e02211f1fb653977b4e311359f7f70b708df63367f25c0261423 SHA512 db9cb2866d67e64ddd9b1c7277ad5f29883f94849a76d7a44c8fe61f3f495a9ec49a50e90874f63d98901ef3935135bf9f619ca1f0eef7e7698e5b5d8691e057
|
||||
DIST rpi-eeprom_28.27-1.debian.tar.xz 17280 BLAKE2B a1fd05aff9d59edf061f03bea4a4724fb1a26cec8f3e1d6d5e26d4a07a11d5e99cccead0255ea6c47e5e9beede454a4eb6665c3207f35e5d342341bf0889f458 SHA512 2d69e31347330813065a10b4bcafe7c03e73d6940495aacca63f1ba6bdab8dbea79fe03e0fdab19898886cacade2a1778a13669b61c965e475e7219917f09fc8
|
||||
DIST rpi-eeprom_28.27.orig.tar.gz 104231336 BLAKE2B 1ac8d1631adc51f549230372869bc88a8bcb3ceccf360bda7f49125cf1f45f4bb13c7a4f077f79956b05d3658e2089a0bc19cdb9edb2822a90057aa9740b6bd0 SHA512 b53beb928c0e52bee8f2ba10adc27b75d9e7a83a70eb4eddc26fc24f32d174f919ff40074c8d150e241de105899cc528e734a8fa34ac4b62a43224f156a3b303
|
||||
DIST rpi-eeprom_28.28-1.debian.tar.xz 17344 BLAKE2B d4bd51f35c279604bcecc56971c41a1d835dcb8b3173ac836ee73b5a84fdfe264f9636aac68de320dbd390db0e8f174cf7233a56a5cce2551adfaa280e79bc90 SHA512 f5841e9b9a9d943a71e68d5518110424cbdac97d050222a20c48e04b806f3acf88906627e5383fc700c7a47fdfe61a0989b1858eb37f1af6122efc35216450c5
|
||||
DIST rpi-eeprom_28.28.orig.tar.gz 104738394 BLAKE2B 6f7cbcfc5a0a8103f1c03703d5a49a9153ba051bb30a24dec95277e7ef0be09b06cd8271656234933ab9dc5a742dd10c4d0b2cb86c23fd15aa94b07207b38d2e SHA512 e8a54ae1a9aea4b2deb9426c36de3f87ce7bf730f384708bb1d694288d6002b91fb866be14e1b4fe48f2b0f1f3a70593e7e7a3106a38553696673859c44c379d
|
||||
|
||||
105
dev-embedded/rpi-eeprom/rpi-eeprom-28.28.ebuild
Normal file
105
dev-embedded/rpi-eeprom/rpi-eeprom-28.28.ebuild
Normal file
@@ -0,0 +1,105 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{12..14} )
|
||||
|
||||
inherit python-r1 systemd
|
||||
|
||||
# always assume _p1 if missing (use a default 1 for ver_cut 4).
|
||||
MY_P="${PN}-$(ver_cut 1-2)"
|
||||
MY_PATCH_VER="$(ver_cut 4)"
|
||||
MY_BASE_URL="https://archive.raspberrypi.org/debian/pool/main/r/${PN}/${PN}_$(ver_cut 1-2)"
|
||||
DESCRIPTION="Updater for Raspberry Pi 4/5 bootloader and the VL805 USB controller"
|
||||
HOMEPAGE="https://github.com/raspberrypi/rpi-eeprom/"
|
||||
SRC_URI="${MY_BASE_URL}-${MY_PATCH_VER:-1}.debian.tar.xz
|
||||
${MY_BASE_URL}.orig.tar.gz"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="BSD rpi-eeprom"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~arm ~arm64"
|
||||
IUSE="pi4 pi5"
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
^^ ( pi4 pi5 )
|
||||
"
|
||||
|
||||
BDEPEND="sys-apps/help2man"
|
||||
DEPEND="${PYTHON_DEPS}"
|
||||
RDEPEND="${PYTHON_DEPS}
|
||||
dev-embedded/raspberrypi-utils
|
||||
>=sys-apps/flashrom-1.7.0
|
||||
sys-apps/pciutils"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i \
|
||||
-e 's:/etc/default/rpi-eeprom-update:/etc/conf.d/rpi-eeprom-update:' \
|
||||
"${MY_P}/rpi-eeprom-update" || die "Failed sed on rpi-eeprom-update"
|
||||
sed -i \
|
||||
-e 's:/usr/bin/rpi-eeprom-update:/usr/sbin/rpi-eeprom-update:' \
|
||||
"debian/rpi-eeprom.rpi-eeprom-update.service" || die "Failed sed on rpi-eeprom.rpi-eeprom-update.service"
|
||||
sed -i \
|
||||
-e 's:/usr/lib/firmware:/lib/firmware:' \
|
||||
"${MY_P}/rpi-eeprom-update-default" || die "Failed sed on rpi-eeprom-update-default"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
use pi4 && export BROADCOM=2711
|
||||
use pi5 && export BROADCOM=2712
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd "${MY_P}" 1>/dev/null || die "Cannot change into directory ${MY_P}"
|
||||
|
||||
python_scriptinto /usr/sbin
|
||||
python_foreach_impl python_newscript rpi-eeprom-config rpi-eeprom-config
|
||||
|
||||
dosbin rpi-eeprom-update rpi-eeprom-digest rpi-bootloader-version
|
||||
keepdir /var/lib/raspberrypi/bootloader/backup
|
||||
|
||||
for dir in default latest critical stable beta; do
|
||||
insinto /lib/firmware/raspberrypi/bootloader
|
||||
doins -r firmware-$BROADCOM/${dir}
|
||||
done
|
||||
|
||||
dodoc firmware-$BROADCOM/{release-notes.md,versions.txt}
|
||||
|
||||
help2man -N \
|
||||
--version-string="${PV}" --help-option="-h" \
|
||||
--name="Bootloader EEPROM configuration tool for the Raspberry Pi 4B" \
|
||||
--output=rpi-eeprom-config.1 ./rpi-eeprom-config || die "Failed to create manpage for rpi-eeprom-config"
|
||||
|
||||
help2man -N \
|
||||
--version-string="${PV}" --help-option="-h" \
|
||||
--name="Checks whether the Raspberry Pi bootloader EEPROM is \
|
||||
up-to-date and updates the EEPROM" \
|
||||
--output=rpi-eeprom-update.1 ./rpi-eeprom-update || die "Failed to create manpage for rpi-eeprom-update"
|
||||
|
||||
doman rpi-eeprom-update.1 rpi-eeprom-config.1
|
||||
|
||||
newconfd rpi-eeprom-update-default rpi-eeprom-update
|
||||
|
||||
popd 1>/dev/null || die
|
||||
|
||||
pushd debian 1>/dev/null || die "Cannot change into directory debian"
|
||||
|
||||
systemd_newunit rpi-eeprom.rpi-eeprom-update.service rpi-eeprom-update.service
|
||||
newdoc changelog changelog.Debian
|
||||
|
||||
popd 1>/dev/null || die
|
||||
|
||||
newinitd "${FILESDIR}/init.d_rpi-eeprom-update-1" "rpi-eeprom-update"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog 'To have rpi-eeprom-update run at each startup, enable and start either'
|
||||
elog '/etc/init.d/rpi-eeprom-update (for openrc users)'
|
||||
elog 'or'
|
||||
elog 'rpi-eeprom-update.service (for systemd users)'
|
||||
elog '/etc/conf.d/rpi-eeprom-update contains the configuration.'
|
||||
elog 'FIRMWARE_RELEASE_STATUS="critical|stable|beta" determines'
|
||||
elog 'which release track you get. "critical" is recommended and the default.'
|
||||
}
|
||||
Reference in New Issue
Block a user