public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "James Le Cuirot" <chewi@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/rpi-eeprom/
Date: Sun, 14 Jan 2024 14:57:08 +0000 (UTC)	[thread overview]
Message-ID: <1705244214.be8045ae1229b3713b3e5fac495e8ab10dbb46c8.chewi@gentoo> (raw)

commit:     be8045ae1229b3713b3e5fac495e8ab10dbb46c8
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 14 14:48:32 2024 +0000
Commit:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
CommitDate: Sun Jan 14 14:56:54 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be8045ae

dev-embedded/rpi-eeprom: Bump to 21.0_p1 with Pi 5 support

Thanks to Herbert Wantesh for the modifications.

Closes: https://bugs.gentoo.org/916953
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>

 dev-embedded/rpi-eeprom/Manifest                    |  2 ++
 dev-embedded/rpi-eeprom/metadata.xml                |  4 ++++
 ...-15.0_p1-r1.ebuild => rpi-eeprom-21.0_p1.ebuild} | 21 +++++++++++++++------
 3 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/dev-embedded/rpi-eeprom/Manifest b/dev-embedded/rpi-eeprom/Manifest
index 304f3a6739a8..f89d69a000ab 100644
--- a/dev-embedded/rpi-eeprom/Manifest
+++ b/dev-embedded/rpi-eeprom/Manifest
@@ -1,2 +1,4 @@
 DIST rpi-eeprom_15.0-1.debian.tar.xz 10720 BLAKE2B c8915ebf859ebb1ea3a48af8077539a2513151f94b6965641970b717ad5a6693f4aa3867f241ce9cad5f47d371e7bfaaaa1e1fc34bad3e8059c7840bc5d567aa SHA512 92652b52eaf0d56c95ed23fcc5b4afe599e92d9331259d7450766cb53e06598bf3381a8716cf996c48fc2a20187523fc47e63aa365b2221c16284220042be3b8
 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

diff --git a/dev-embedded/rpi-eeprom/metadata.xml b/dev-embedded/rpi-eeprom/metadata.xml
index fe9bc40f6b9f..074fc1d440e5 100644
--- a/dev-embedded/rpi-eeprom/metadata.xml
+++ b/dev-embedded/rpi-eeprom/metadata.xml
@@ -16,4 +16,8 @@
 	<upstream>
 		<remote-id type="github">raspberrypi/rpi-eeprom</remote-id>
 	</upstream>
+	<use>
+		<flag name="pi4">Install firmware files for the Raspberry Pi 4</flag>
+		<flag name="pi5">Install firmware files for the Raspberry Pi 5</flag>
+	</use>
 </pkgmetadata>

diff --git a/dev-embedded/rpi-eeprom/rpi-eeprom-15.0_p1-r1.ebuild b/dev-embedded/rpi-eeprom/rpi-eeprom-21.0_p1.ebuild
similarity index 86%
rename from dev-embedded/rpi-eeprom/rpi-eeprom-15.0_p1-r1.ebuild
rename to dev-embedded/rpi-eeprom/rpi-eeprom-21.0_p1.ebuild
index 529d4fd60577..f6fc4077083e 100644
--- a/dev-embedded/rpi-eeprom/rpi-eeprom-15.0_p1-r1.ebuild
+++ b/dev-embedded/rpi-eeprom/rpi-eeprom-21.0_p1.ebuild
@@ -3,13 +3,13 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{9..11} )
+PYTHON_COMPAT=( python3_{9..12} )
 
 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 bootloader and the VL805 USB controller"
+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"
@@ -18,7 +18,11 @@ S="${WORKDIR}"
 LICENSE="BSD rpi-eeprom"
 SLOT="0"
 KEYWORDS="~arm ~arm64"
-REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+IUSE="pi4 pi5"
+REQUIRED_USE="
+	${PYTHON_REQUIRED_USE}
+	^^ ( pi4 pi5 )
+"
 
 BDEPEND="sys-apps/help2man"
 DEPEND="${PYTHON_DEPS}"
@@ -37,6 +41,11 @@ src_prepare() {
 		"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}"
 
@@ -46,12 +55,12 @@ src_install() {
 	dosbin rpi-eeprom-update rpi-eeprom-digest
 	keepdir /var/lib/raspberrypi/bootloader/backup
 
-	for dir in critical stable beta; do
+	for dir in default latest critical stable beta; do
 		insinto /lib/firmware/raspberrypi/bootloader
-		doins -r firmware/${dir}
+		doins -r firmware-$BROADCOM/${dir}
 	done
 
-	dodoc firmware/release-notes.md
+	dodoc firmware-$BROADCOM/release-notes.md
 
 	help2man -N \
 		--version-string="${PV}" --help-option="-h" \


             reply	other threads:[~2024-01-14 14:57 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-14 14:57 James Le Cuirot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-18 14:37 [gentoo-commits] repo/gentoo:master commit in: dev-embedded/rpi-eeprom/ Sam James
2024-11-15  9:19 Arthur Zamarin
2024-11-14  3:17 Sam James
2024-10-14  7:16 Florian Schmaus
2024-01-14 14:57 James Le Cuirot
2023-03-04 11:15 Arthur Zamarin
2023-01-14 10:05 Dennis Lamm
2023-01-14 10:05 Dennis Lamm
2022-12-21 12:07 Dennis Lamm
2022-04-29 19:06 Sam James
2022-04-17 16:44 Sam James
2022-03-23  9:58 Jakov Smolić
2022-03-22  1:54 Sam James
2022-03-14 12:26 Sam James
2022-03-02  2:19 Sam James
2022-03-02  2:19 Sam James
2022-01-21 19:13 Sam James
2021-12-01 18:48 Sam James
2021-06-21 22:36 Sam James
2021-02-02 15:10 Sam James
2021-01-27  7:31 Sam James
2021-01-25 14:06 Sam James
2020-12-17 17:33 Sam James
2020-12-15  3:06 Sam James
2020-12-10 17:43 Sam James
2020-11-26  5:06 Sam James

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1705244214.be8045ae1229b3713b3e5fac495e8ab10dbb46c8.chewi@gentoo \
    --to=chewi@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox