Gentoo Archives: gentoo-commits

From: Dennis Lamm <expeditioneer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/raspberrypi-firmware/
Date: Thu, 02 Feb 2023 20:05:22
Message-Id: 1675368304.70f4ae5f45c3e91bb5d8774ef74d43f7d0ceae79.expeditioneer@gentoo
1 commit: 70f4ae5f45c3e91bb5d8774ef74d43f7d0ceae79
2 Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 2 19:50:04 2023 +0000
4 Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 2 20:05:04 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70f4ae5f
7
8 sys-boot/raspberrypi-firmware: add 1.20230106
9
10 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
11
12 sys-boot/raspberrypi-firmware/Manifest | 1 +
13 .../raspberrypi-firmware-1.20230106.ebuild | 72 ++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/sys-boot/raspberrypi-firmware/Manifest b/sys-boot/raspberrypi-firmware/Manifest
17 index 42a29e516416..f199cfac96f4 100644
18 --- a/sys-boot/raspberrypi-firmware/Manifest
19 +++ b/sys-boot/raspberrypi-firmware/Manifest
20 @@ -1,3 +1,4 @@
21 DIST raspberrypi-firmware-1.20211118.tar.gz 193544570 BLAKE2B db6c7c2e247f668b02210fb181305c3244f3d8a30f923656bf15cf418cb26822844df5b39af62b483e9e49405e13a60e57d6826aa0f3c3698920e8fc568656e2 SHA512 54881fc31ca0c9de8d8ca41ad6418e9d149975fbadbc0409f4136d4a31e70d743d55a16d4c0942305077d463c952edaa48be56d22d015983ab672dcaf5f134e2
22 DIST raspberrypi-firmware-1.20220830.tar.gz 184738723 BLAKE2B 3675488a4ad9e3e8570eecfb56af2fd77d35dcc0da1cb14892a18e2b8471011411f0ec063c76fe51a72170df4d2f78acec11c0473272d6ba5248785c339fa3bd SHA512 9f5682254bf2596556b8759dd7b6ab1292ba6a28bf582f100682a1f14a03b43ac6ece654392e7a17f27db3940e8073b9e8645bd66aba8504a820fc29a3a1c500
23 DIST raspberrypi-firmware-1.20221104.tar.gz 184890613 BLAKE2B 51901015d10f7f06504a1cd4eaf50788065f78d806293e5cb40e930c926ad3f76688684b2333c87fd6528418372ac3b5f8f7ad32595a09d4f896717ebea51d29 SHA512 6662f3fdeffbf98819dd57d1c3d8571d7c8bd7d69a8eb5e38823e4ef2857ebfa4e550735f9488e10719a261a0cdcb99cb7f3fb765d674459d42737f4e2cfd357
24 +DIST raspberrypi-firmware-1.20230106.tar.gz 185087907 BLAKE2B 656cc8325aa96d11f44419e871141beba95172b5c0c96e4b0a4cccca51127040328dc9f6c70cbba0248f8404ce0cf390e4bf937db7e0506c286db5adc4e56eef SHA512 41492a90da91d29e1025deeaad452c6b485f5412ff375b2fc144c2630afcdfef99ecbf701ca5e1afc5bb41bd6f2413b239257f1734dfe17084210e96b28eda7a
25
26 diff --git a/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20230106.ebuild b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20230106.ebuild
27 new file mode 100644
28 index 000000000000..a05c8e096ec2
29 --- /dev/null
30 +++ b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20230106.ebuild
31 @@ -0,0 +1,72 @@
32 +# Copyright 1999-2023 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit mount-boot readme.gentoo-r1
38 +
39 +if [[ "${PV}" == 9999 ]]; then
40 + inherit git-r3
41 + EGIT_REPO_URI="https://github.com/raspberrypi/firmware"
42 + EGIT_CLONE_TYPE="shallow"
43 +else
44 + SRC_URI="https://github.com/raspberrypi/firmware/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 + KEYWORDS="-* ~arm ~arm64"
46 + S="${WORKDIR}/firmware-${PV}"
47 +fi
48 +
49 +DESCRIPTION="Raspberry Pi (all versions) bootloader and GPU firmware"
50 +HOMEPAGE="https://github.com/raspberrypi/firmware"
51 +
52 +LICENSE="GPL-2 raspberrypi-videocore-bin"
53 +SLOT="0"
54 +RESTRICT="binchecks strip"
55 +
56 +DOC_CONTENTS="Please configure your ram setup by editing /boot/config.txt"
57 +
58 +src_prepare() {
59 + default
60 +
61 + cp "${FILESDIR}"/${PN}-1.20201022-config.txt "${WORKDIR}" || die
62 +
63 + if use arm64; then
64 + # Force selection of the 64-bit kernel8.img to match our userland
65 + echo "arm_64bit=1" >> "${WORKDIR}"/${PN}-1.20201022-config.txt || die
66 + fi
67 +}
68 +
69 +src_install() {
70 + insinto /boot
71 + cd boot || die
72 + doins bootcode.bin fixup*.dat start*elf
73 + newins "${WORKDIR}"/${PN}-1.20201022-config.txt config.txt
74 + newins "${FILESDIR}"/${PN}-1.20201022-cmdline.txt cmdline.txt
75 + newenvd "${FILESDIR}"/${PN}-0_p20130711-envd 90${PN}
76 + readme.gentoo_create_doc
77 +}
78 +
79 +pkg_preinst() {
80 + if [[ -z "${REPLACING_VERSIONS}" ]] ; then
81 + local msg=""
82 +
83 + if [[ -e "${ED}"/boot/cmdline.txt ]] && [[ -e /boot/cmdline.txt ]] ; then
84 + msg+="/boot/cmdline.txt "
85 + fi
86 +
87 + if [[ -e "${ED}"/boot/config.txt ]] && [[ -e /boot/config.txt ]] ; then
88 + msg+="/boot/config.txt "
89 + fi
90 +
91 + if [[ -n "${msg}" ]] ; then
92 + msg="This package installs following files: ${msg}."
93 + msg="${msg} Please remove (backup) your copies during install"
94 + msg="${msg} and merge settings afterwards."
95 + msg="${msg} Further updates will be CONFIG_PROTECTed."
96 + die "${msg}"
97 + fi
98 + fi
99 +}
100 +
101 +pkg_postinst() {
102 + readme.gentoo_print_elog
103 +}