Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/raspberrypi-firmware/
Date: Sun, 21 Nov 2021 08:21:59
Message-Id: 1637482829.2997054362712ca5ef8481d04b16f4e63cdc6ca3.sam@gentoo
1 commit: 2997054362712ca5ef8481d04b16f4e63cdc6ca3
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 21 08:20:29 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 21 08:20:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29970543
7
8 sys-boot/raspberrypi-firmware: add 1.20211029
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 sys-boot/raspberrypi-firmware/Manifest | 1 +
13 .../raspberrypi-firmware-1.20211029.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 b2ca71d4111b..a7f9eddd5396 100644
18 --- a/sys-boot/raspberrypi-firmware/Manifest
19 +++ b/sys-boot/raspberrypi-firmware/Manifest
20 @@ -2,3 +2,4 @@ DIST raspberrypi-firmware-1.20201022.tar.gz 189827375 BLAKE2B 94c38f60d688c8e3eb
21 DIST raspberrypi-firmware-1.20201201.tar.gz 189332299 BLAKE2B b3ec91f07b4713d26c29be5412d018a220129eef7ddf7c5c09d85e645c2c5754a95f13be7e690ab40648a982e3974cc760aa5b33c76612da836227d38c4ee3a5 SHA512 a7f4591552718956bd7f2d0d377234277e2e6f18cc9714ea30fe13f26d5ae1164b982f39dcf72ae4a18663369ef06d0187d8182713763262371c13107aac4c65
22 DIST raspberrypi-firmware-1.20210108.tar.gz 189334002 BLAKE2B 254e8bf644b2b3773ff5ec9ffb47eeb84e0a149e9a74a18a9c6c39db03610fdd3a42f455a9e8935aa4afa4ee21ed098237d4a4e431c401a919c833372e729fa5 SHA512 3c8759e7d6cce597fcbab80e0cd9fd6d528ed2c956452e902f08509169181d703895298a71b8be76d6734f128f85e36d54a149ff9cd735ca44cf8416917ed172
23 DIST raspberrypi-firmware-1.20210527.tar.gz 192247084 BLAKE2B 329707dfb2905b36926a3f0ecf1a8e3bc2b52e1a376f98ca7cfe9ec7b69d0fb370d8e23907f5bbd9ea75cf7fed5babd6fe54934919995dec6914e888d95e5fbe SHA512 5a48d1fae768c30528359a14371f59564447d2fb8a145cafa89d7d29352095c5b7ac33bfcbc8da494284c9d41e7dbafe4e863e8efd963a17ea6b6b9699b814a7
24 +DIST raspberrypi-firmware-1.20211029.tar.gz 193543221 BLAKE2B 308206d6bdfbe15bfe5f39cd230e6d4857f460744aafcbcc9eee6a74f05a3a9dc861e7c3e36baea46fdb1d1d1dc28b5edebf70bce3a3c085228b2ea321ef7a85 SHA512 7a1fe3b1645006c35fa49e842b9ece53b386ece42b8db99649de8d4bc0c19e34b0807767290e26422528606c5847843533aaa0edd0716e9f9f9dcae340a4dce0
25
26 diff --git a/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20211029.ebuild b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20211029.ebuild
27 new file mode 100644
28 index 000000000000..263276be82c7
29 --- /dev/null
30 +++ b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20211029.ebuild
31 @@ -0,0 +1,72 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
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 +}