From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A9FF0158020 for ; Thu, 22 Dec 2022 11:10:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F3823E07D8; Thu, 22 Dec 2022 11:10:39 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D8961E07D8 for ; Thu, 22 Dec 2022 11:10:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 15443341390 for ; Thu, 22 Dec 2022 11:10:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 7341F75 for ; Thu, 22 Dec 2022 11:10:37 +0000 (UTC) From: "Dennis Lamm" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Dennis Lamm" Message-ID: <1671707433.a3a7bf1d5700401f3017d470308c99c0b3f1069e.expeditioneer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-boot/raspberrypi-firmware/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-boot/raspberrypi-firmware/Manifest sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20221104.ebuild X-VCS-Directories: sys-boot/raspberrypi-firmware/ X-VCS-Committer: expeditioneer X-VCS-Committer-Name: Dennis Lamm X-VCS-Revision: a3a7bf1d5700401f3017d470308c99c0b3f1069e X-VCS-Branch: master Date: Thu, 22 Dec 2022 11:10:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 936690bc-4788-4602-933b-d9fa130cf0cf X-Archives-Hash: 74063b35e7f330a67b908a9d2247f1dc commit: a3a7bf1d5700401f3017d470308c99c0b3f1069e Author: Dennis Lamm gentoo org> AuthorDate: Wed Dec 21 12:36:52 2022 +0000 Commit: Dennis Lamm gentoo org> CommitDate: Thu Dec 22 11:10:33 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3a7bf1d sys-boot/raspberrypi-firmware: add 1.20221104 Signed-off-by: Dennis Lamm gentoo.org> sys-boot/raspberrypi-firmware/Manifest | 1 + .../raspberrypi-firmware-1.20221104.ebuild | 72 ++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/sys-boot/raspberrypi-firmware/Manifest b/sys-boot/raspberrypi-firmware/Manifest index 0fad6144ee39..58efb92f5a17 100644 --- a/sys-boot/raspberrypi-firmware/Manifest +++ b/sys-boot/raspberrypi-firmware/Manifest @@ -1,3 +1,4 @@ DIST raspberrypi-firmware-1.20211118.tar.gz 193544570 BLAKE2B db6c7c2e247f668b02210fb181305c3244f3d8a30f923656bf15cf418cb26822844df5b39af62b483e9e49405e13a60e57d6826aa0f3c3698920e8fc568656e2 SHA512 54881fc31ca0c9de8d8ca41ad6418e9d149975fbadbc0409f4136d4a31e70d743d55a16d4c0942305077d463c952edaa48be56d22d015983ab672dcaf5f134e2 DIST raspberrypi-firmware-1.20220328.tar.gz 195699471 BLAKE2B e39ae746b46eb4f63aa2043df9fb60ce23b966d172e2c2c311942425e62896fb8ef171689c420bf2545065514a331e46c3bfb4d028eab8eea251357ee4c947f3 SHA512 b9e8676a94dce4621af25b8ba563a2dbd93f6fad61f5c5fb8b57b0ff5262151ff61598ce56a5f952f99f6e37f7c9ebf801a51849ee45ee328a168ca88e2522f3 DIST raspberrypi-firmware-1.20220830.tar.gz 184738723 BLAKE2B 3675488a4ad9e3e8570eecfb56af2fd77d35dcc0da1cb14892a18e2b8471011411f0ec063c76fe51a72170df4d2f78acec11c0473272d6ba5248785c339fa3bd SHA512 9f5682254bf2596556b8759dd7b6ab1292ba6a28bf582f100682a1f14a03b43ac6ece654392e7a17f27db3940e8073b9e8645bd66aba8504a820fc29a3a1c500 +DIST raspberrypi-firmware-1.20221104.tar.gz 184890613 BLAKE2B 51901015d10f7f06504a1cd4eaf50788065f78d806293e5cb40e930c926ad3f76688684b2333c87fd6528418372ac3b5f8f7ad32595a09d4f896717ebea51d29 SHA512 6662f3fdeffbf98819dd57d1c3d8571d7c8bd7d69a8eb5e38823e4ef2857ebfa4e550735f9488e10719a261a0cdcb99cb7f3fb765d674459d42737f4e2cfd357 diff --git a/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20221104.ebuild b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20221104.ebuild new file mode 100644 index 000000000000..595de0624e7e --- /dev/null +++ b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20221104.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 +}