diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-15 04:04:09 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-15 04:04:09 +0100 |
commit | 45392c898b8ba163e95028bd98896e77f0c73806 (patch) | |
tree | bf6b64dd472acc2960a5c24b26dd0ac036b47d0d /dev-embedded | |
parent | 2916cf6049cf9d3092021e247d56c580df6029a7 (diff) |
gentoo auto-resync : 15:10:2024 - 04:04:09
Diffstat (limited to 'dev-embedded')
-rw-r--r-- | dev-embedded/Manifest.gz | bin | 9392 -> 9389 bytes | |||
-rw-r--r-- | dev-embedded/rpi-eeprom/Manifest | 3 | ||||
-rw-r--r-- | dev-embedded/rpi-eeprom/rpi-eeprom-26.0_p1.ebuild | 100 |
3 files changed, 103 insertions, 0 deletions
diff --git a/dev-embedded/Manifest.gz b/dev-embedded/Manifest.gz Binary files differindex 3f1064a9b549..4dae3b8d1ca4 100644 --- a/dev-embedded/Manifest.gz +++ b/dev-embedded/Manifest.gz diff --git a/dev-embedded/rpi-eeprom/Manifest b/dev-embedded/rpi-eeprom/Manifest index d0bbf30fe75c..4581da302065 100644 --- a/dev-embedded/rpi-eeprom/Manifest +++ b/dev-embedded/rpi-eeprom/Manifest @@ -3,6 +3,9 @@ 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 EBUILD rpi-eeprom-15.0_p1.ebuild 3026 BLAKE2B 0a13aead8a68667d57fb7e1c8c6f56e295bb8af5e9f5192d5c48357ce04eedac1e1436c7152ed97dcebbf63e9aa52ee3c3de25711bdbcdd2788d2280457198aa SHA512 ea55d6f16ba4c41fc911f075236e59bac65080485d4cb39556843fb9f6f928444697b02ce4be5e75b125f69bcf802c1d33ed0e1f49118f1c611fa491ac089c93 EBUILD rpi-eeprom-21.0_p1.ebuild 3105 BLAKE2B 308fc22d5aa2e7dc06fb66808c3855838ac07ecdf8b9fc57889eba923c7f2fa09d132c036d595052ed39426694de590f636110fa74f2e3f65df62d3d81e03d86 SHA512 4f8139feb28efc3f986b028cc05d9a2a9ea45d5bb49772247d1f7f3ed21c967254b868619f27bc6d7786fd590173005622ce289317cb98e6836655614cca0702 +EBUILD rpi-eeprom-26.0_p1.ebuild 3107 BLAKE2B ffa6bc156580ae0e3e3c78143600b2513f043e9b404d1e6ccb9310ebcd0194542c78a867302da337ba8a54cc09b4297df8ef39f8a4b96a3242c46ffd931758c9 SHA512 32338f5c729f1776a8cc10b21f0c8732cf40bc6364eee1106f014f29c07b88bd88e183ee45ed85dc018dad06efd260b081d77a751b378f631640d01606b7c05b MISC metadata.xml 755 BLAKE2B 0bcea14f6e8681c1fa8088fe5097ee68465c77f82c4eb0c0f79483bfe0812a4cd64c52f662bee50a417f43f6504a99cbe9a6c3fc36cc6d2d57616f2357e44a4e SHA512 631b517ffb7db2051544bf725703a3c3274e5e80e10c8a19939934b22ce7ead3a477aa85ac10a9e84dcfbb87242fd1b853be6ae25e2698285c3c687828fb4d80 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.' +} |