public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Dennis Lamm" <expeditioneer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/rpi-eeprom/
Date: Wed, 21 Dec 2022 12:07:54 +0000 (UTC)	[thread overview]
Message-ID: <1671624465.9ce33eb9257f0bbc7beb92ad525351d9972620bd.expeditioneer@gentoo> (raw)

commit:     9ce33eb9257f0bbc7beb92ad525351d9972620bd
Author:     Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 28 16:31:56 2022 +0000
Commit:     Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
CommitDate: Wed Dec 21 12:07:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9ce33eb9

dev-embedded/rpi-eeprom: add 13.19_p1

Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/28008
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>

 dev-embedded/rpi-eeprom/Manifest                   |  2 +
 dev-embedded/rpi-eeprom/rpi-eeprom-13.19_p1.ebuild | 94 ++++++++++++++++++++++
 2 files changed, 96 insertions(+)

diff --git a/dev-embedded/rpi-eeprom/Manifest b/dev-embedded/rpi-eeprom/Manifest
index 0f47eba90fb7..06c068fa7080 100644
--- a/dev-embedded/rpi-eeprom/Manifest
+++ b/dev-embedded/rpi-eeprom/Manifest
@@ -1,3 +1,5 @@
+DIST rpi-eeprom_13.19-1.debian.tar.xz 10436 BLAKE2B 671848322ffeeca689b4df6d95fc496cadfa1f92395de6520009d72d0adbe5e03b0188d9c1a46302d933139fa1640b88f3757ad75fd5a23461fcef95000078b5 SHA512 3894c1a81f3d20ea649276d946f8f9a3c92bcc0ae2202c1c195c6b51451e7e802b01eec28f0f58902cc2d223af33348c7bcc04f540baca0e00a844af7e2b2871
+DIST rpi-eeprom_13.19.orig.tar.gz 26425535 BLAKE2B dbba45cc72f2cad6c685416fe94915d904b5d7bd0df369d7eb38573bcc27190cf865ba42a94b1da2b1b0ca3ec9201a94ac6f0917882e3ab1d6613fd5369d7168 SHA512 c70cf6afd30235ada967c3e3294df426a092fce8f7ca50f6ce98105bd7f68fe83f2b96d2ed39715f48f0330887861fcfb76c2eed0cc0d854e9a9e9eddc289e5a
 DIST rpi-eeprom_13.3-1.debian.tar.xz 12768 BLAKE2B 823b1f25cda98cb2888b6b423b6120f5c1474735c58933ac11fe9380fa31fcbef260afb2ebcced423301bee207c171c5ccea3ba9c8cc4dae579c2dba55a60cba SHA512 0b8e15b1c827506dcdf7a6f19acd1ceb32f0901b9c438994af7f1e38a0ced05b7f123225ae8ecca4147ce04e1d7500ddcdfaeddeb90f0342af2dee9e4ffbfe04
 DIST rpi-eeprom_13.3.orig.tar.gz 17497524 BLAKE2B f65fc9b6a98dd3a4d3f4095e03279d832a64d0f12f9edd7e7af2b8afe8b290f4db6ec39e755df9fb5b317930235bf1c7205be4b3f838f6cbbf92e1d80574b342 SHA512 d5885444fd90a5f24c94a3af4f093744f4a63947a119059c851cd6639e572138205a48f7cd126c3deafe104e76985197e1fa36c8aa72a16bb173f11750b85151
 DIST rpi-eeprom_13.8-1.debian.tar.xz 13232 BLAKE2B a5c4a12eca86a5f44c6a18e06c3108a353adca055facd80ced42dfcdd518508358823bd31ef051b29dd47e46c59f056c36dc6628144c192eec26c57fc0658095 SHA512 dba8342af463a9d628a1f71dd30df803699a858873dc618a25aa4be682e5357d090345346ff686cb2c1bde7ad678362bf138f952115f186c841414354066a291

diff --git a/dev-embedded/rpi-eeprom/rpi-eeprom-13.19_p1.ebuild b/dev-embedded/rpi-eeprom/rpi-eeprom-13.19_p1.ebuild
new file mode 100644
index 000000000000..b16bae43e922
--- /dev/null
+++ b/dev-embedded/rpi-eeprom/rpi-eeprom-13.19_p1.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..11} )
+
+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"
+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"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+BDEPEND="sys-apps/help2man"
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${PYTHON_DEPS}
+	sys-apps/flashrom
+	sys-apps/pciutils
+	|| (
+		>=media-libs/raspberrypi-userland-0_pre20201022
+		>=media-libs/raspberrypi-userland-bin-1.20201022
+	)"
+
+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_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 critical stable beta; do
+		insinto /lib/firmware/raspberrypi/bootloader
+		doins -r firmware/${dir}
+	done
+
+	dodoc firmware/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.'
+}


             reply	other threads:[~2022-12-21 12:07 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-21 12:07 Dennis Lamm [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
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-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=1671624465.9ce33eb9257f0bbc7beb92ad525351d9972620bd.expeditioneer@gentoo \
    --to=expeditioneer@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