summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniella Kicsak <nosqrt@outlook.com>2024-09-29 22:05:49 +1000
committerFlorian Schmaus <flow@gentoo.org>2024-10-14 09:14:01 +0200
commit07ffb9cbe8d3508aa1d21a21f58be437b17cf7b1 (patch)
tree3b1b7ca94ea10298dab47a67afc97b47330a11ad /dev-embedded
parentdev-cpp/gtest: drop 1.14.0 (diff)
downloadgentoo-07ffb9cbe8d3508aa1d21a21f58be437b17cf7b1.tar.gz
gentoo-07ffb9cbe8d3508aa1d21a21f58be437b17cf7b1.tar.bz2
gentoo-07ffb9cbe8d3508aa1d21a21f58be437b17cf7b1.zip
dev-embedded/rpi-eeprom: add 26.0_p1
Closes: https://github.com/gentoo/gentoo/pull/38815 Signed-off-by: Daniella Kicsak <nosqrt@outlook.com> Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-embedded')
-rw-r--r--dev-embedded/rpi-eeprom/Manifest2
-rw-r--r--dev-embedded/rpi-eeprom/rpi-eeprom-26.0_p1.ebuild100
2 files changed, 102 insertions, 0 deletions
diff --git a/dev-embedded/rpi-eeprom/Manifest b/dev-embedded/rpi-eeprom/Manifest
index f89d69a000ab..1aaca0c7627f 100644
--- a/dev-embedded/rpi-eeprom/Manifest
+++ b/dev-embedded/rpi-eeprom/Manifest
@@ -2,3 +2,5 @@ DIST rpi-eeprom_15.0-1.debian.tar.xz 10720 BLAKE2B c8915ebf859ebb1ea3a48af807753
DIST rpi-eeprom_15.0.orig.tar.gz 29800286 BLAKE2B ceda9bdc412a32443d0cb3fa444d1091f0f53215a5be6c546384a11f7fa28592d43bdf23f04a33925601b5e76e510b054b214d262904f03aafa2b959fcb5fc1e SHA512 eddea0c8057e13991e3a6493146c8785607162342321d48048ba5760ecc7f1c6687a03edffcd0be4a5549c333cdbb20e88d407c4212334e18178fb86cc6cd0a4
DIST rpi-eeprom_21.0-1.debian.tar.xz 11876 BLAKE2B 5615237244e259a269f62951402ecf54bf947ff22efee157f664ddc49d4c053081544e05960dd934246fdccdf079d62d1932428718e8ad5ade09d0675af58ff5 SHA512 af347630ea8e3fffb5e86539067ca1005e71aea48b43e009bd6b50c602696e08e27ca931efbbc66f26c9bf30c98abd3853a221e067888597cad01078a1335b26
DIST rpi-eeprom_21.0.orig.tar.gz 41026148 BLAKE2B 5398cf2087b0f5e0d3a2d9f113dbc788f82ff281b36ecbbd1689408db9368083ce77ff88e62a7eaa12dc524debe2f0724f6f00cc23bfb61160ae557bacfae57a SHA512 fc237efa8932a04e44bd47ad6837e5aed7547e3a9e0e03e196df801c83e95618290c04de7ee3458e6465bb273171084c664d6daaa49515e1dcbcd05cb3022f2d
+DIST rpi-eeprom_26.0-1.debian.tar.xz 13208 BLAKE2B 976828f564794379fe907cbab22f77d214c0dbb4bfbd6257e3315b1444fa47035be9c2dfaee79dc7c8123b3b267409d99d8142b649a2163670baa9b8871790ea SHA512 1fdb538b17d75ce2d79b1a000954073233279dd19ee28ad42fcb8238009583f1a5a0a9cb511ab60c7ed978696f203e466fe1bb5f0ca7a736cf90781d66e9c6b3
+DIST rpi-eeprom_26.0.orig.tar.gz 58406186 BLAKE2B ea16e4deb4b331c2f3401731df548f2b11ca9c113da5de3fe5aaeba098a8b0d1d39420261c5d32e04c10a5d38b955ef80133bff585e7d9305cd70261626101d8 SHA512 14dbca5a1e5f3d6d117a0a3978ff2aa14fbf29363b501351d618b6c36f7feb32c6fe1d99952b72286d0a5f8962432ba1056d4d5d758a5e978c4738deab47ddbe
diff --git a/dev-embedded/rpi-eeprom/rpi-eeprom-26.0_p1.ebuild b/dev-embedded/rpi-eeprom/rpi-eeprom-26.0_p1.ebuild
new file mode 100644
index 000000000000..ab12187da238
--- /dev/null
+++ b/dev-embedded/rpi-eeprom/rpi-eeprom-26.0_p1.ebuild
@@ -0,0 +1,100 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..13} )
+
+inherit python-r1 systemd
+
+MY_P="${PN}-$(ver_cut 1-2)"
+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}-$(ver_cut 4).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
+ 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"
+}
+
+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
+ 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
+
+ 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.'
+}