commit:     9e557d52ecb1af2fd7574f15d783f6687b84d7e6
Author:     Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
AuthorDate: Fri Apr  1 06:36:03 2022 +0000
Commit:     Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
CommitDate: Wed Apr  6 06:57:46 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9e557d52

sys-boot/raspberrypi-firmware: version bump

Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>

 sys-boot/raspberrypi-firmware/Manifest             |  1 +
 sys-boot/raspberrypi-firmware/metadata.xml         |  5 ++
 .../raspberrypi-firmware-1.20220328.ebuild         | 72 ++++++++++++++++++++++
 3 files changed, 78 insertions(+)

diff --git a/sys-boot/raspberrypi-firmware/Manifest 
b/sys-boot/raspberrypi-firmware/Manifest
index 5459cfbedfec..a0b30a6025ae 100644
--- a/sys-boot/raspberrypi-firmware/Manifest
+++ b/sys-boot/raspberrypi-firmware/Manifest
@@ -1,3 +1,4 @@
 DIST raspberrypi-firmware-1.20210527.tar.gz 192247084 BLAKE2B 
329707dfb2905b36926a3f0ecf1a8e3bc2b52e1a376f98ca7cfe9ec7b69d0fb370d8e23907f5bbd9ea75cf7fed5babd6fe54934919995dec6914e888d95e5fbe
 SHA512 
5a48d1fae768c30528359a14371f59564447d2fb8a145cafa89d7d29352095c5b7ac33bfcbc8da494284c9d41e7dbafe4e863e8efd963a17ea6b6b9699b814a7
 DIST raspberrypi-firmware-1.20211029.tar.gz 193543221 BLAKE2B 
308206d6bdfbe15bfe5f39cd230e6d4857f460744aafcbcc9eee6a74f05a3a9dc861e7c3e36baea46fdb1d1d1dc28b5edebf70bce3a3c085228b2ea321ef7a85
 SHA512 
7a1fe3b1645006c35fa49e842b9ece53b386ece42b8db99649de8d4bc0c19e34b0807767290e26422528606c5847843533aaa0edd0716e9f9f9dcae340a4dce0
 DIST raspberrypi-firmware-1.20211118.tar.gz 193544570 BLAKE2B 
db6c7c2e247f668b02210fb181305c3244f3d8a30f923656bf15cf418cb26822844df5b39af62b483e9e49405e13a60e57d6826aa0f3c3698920e8fc568656e2
 SHA512 
54881fc31ca0c9de8d8ca41ad6418e9d149975fbadbc0409f4136d4a31e70d743d55a16d4c0942305077d463c952edaa48be56d22d015983ab672dcaf5f134e2
+DIST raspberrypi-firmware-1.20220328.tar.gz 195699471 BLAKE2B 
e39ae746b46eb4f63aa2043df9fb60ce23b966d172e2c2c311942425e62896fb8ef171689c420bf2545065514a331e46c3bfb4d028eab8eea251357ee4c947f3
 SHA512 
b9e8676a94dce4621af25b8ba563a2dbd93f6fad61f5c5fb8b57b0ff5262151ff61598ce56a5f952f99f6e37f7c9ebf801a51849ee45ee328a168ca88e2522f3

diff --git a/sys-boot/raspberrypi-firmware/metadata.xml 
b/sys-boot/raspberrypi-firmware/metadata.xml
index ec9b51cbe4e3..8dc8059c3a3d 100644
--- a/sys-boot/raspberrypi-firmware/metadata.xml
+++ b/sys-boot/raspberrypi-firmware/metadata.xml
@@ -5,7 +5,12 @@
                <email>[email protected]</email>
                <name>Sam James</name>
        </maintainer>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Dennis Lamm</name>
+       </maintainer>
        <upstream>
+               
<bugs-to>https://github.com/raspberrypi/firmware/issues</bugs-to>
                <remote-id type="github">raspberrypi/firmware</remote-id>
        </upstream>
 </pkgmetadata>

diff --git 
a/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20220328.ebuild 
b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20220328.ebuild
new file mode 100644
index 000000000000..595de0624e7e
--- /dev/null
+++ b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20220328.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit mount-boot readme.gentoo-r1
+
+if [[ "${PV}" == 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/raspberrypi/firmware";
+       EGIT_CLONE_TYPE="shallow"
+else
+       SRC_URI="https://github.com/raspberrypi/firmware/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
+       KEYWORDS="-* ~arm ~arm64"
+       S="${WORKDIR}/firmware-${PV}"
+fi
+
+DESCRIPTION="Raspberry Pi (all versions) bootloader and GPU firmware"
+HOMEPAGE="https://github.com/raspberrypi/firmware";
+
+LICENSE="GPL-2 raspberrypi-videocore-bin"
+SLOT="0"
+RESTRICT="binchecks strip"
+
+DOC_CONTENTS="Please configure your ram setup by editing /boot/config.txt"
+
+src_prepare() {
+       default
+
+       cp "${FILESDIR}"/${PN}-1.20201022-config.txt "${WORKDIR}" || die
+
+       if use arm64; then
+               # Force selection of the 64-bit kernel8.img to match our 
userland
+               echo "arm_64bit=1" >> "${WORKDIR}"/${PN}-1.20201022-config.txt 
|| die
+       fi
+}
+
+src_install() {
+       insinto /boot
+       cd boot || die
+       doins bootcode.bin fixup*.dat start*elf
+       newins "${WORKDIR}"/${PN}-1.20201022-config.txt config.txt
+       newins "${FILESDIR}"/${PN}-1.20201022-cmdline.txt cmdline.txt
+       newenvd "${FILESDIR}"/${PN}-0_p20130711-envd 90${PN}
+       readme.gentoo_create_doc
+}
+
+pkg_preinst() {
+       if [[ -z "${REPLACING_VERSIONS}" ]] ; then
+               local msg=""
+
+               if [[ -e "${ED}"/boot/cmdline.txt ]] && [[ -e /boot/cmdline.txt 
]] ; then
+                       msg+="/boot/cmdline.txt "
+               fi
+
+               if [[ -e "${ED}"/boot/config.txt ]] && [[ -e /boot/config.txt 
]] ; then
+                       msg+="/boot/config.txt "
+               fi
+
+               if [[ -n "${msg}" ]] ; then
+                       msg="This package installs following files: ${msg}."
+                       msg="${msg} Please remove (backup) your copies during 
install"
+                       msg="${msg} and merge settings afterwards."
+                       msg="${msg} Further updates will be CONFIG_PROTECTed."
+                       die "${msg}"
+               fi
+       fi
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
+}

Reply via email to