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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4F1551382C5 for ; Wed, 27 Jan 2021 07:31:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7732FE0AC4; Wed, 27 Jan 2021 07:31:04 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4E0E3E0AC4 for ; Wed, 27 Jan 2021 07:31:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B197C340C5B for ; Wed, 27 Jan 2021 07:31:01 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 326534A7 for ; Wed, 27 Jan 2021 07:31:00 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1611732651.1f1e0f2e2ba274ddd6bd27f69cabc7f6606a0f3c.sam@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.20210108.ebuild X-VCS-Directories: sys-boot/raspberrypi-firmware/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 1f1e0f2e2ba274ddd6bd27f69cabc7f6606a0f3c X-VCS-Branch: master Date: Wed, 27 Jan 2021 07:31:00 +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: dbf1bbf7-e550-40e4-aa63-0772a5c85aa8 X-Archives-Hash: 7e00709b919337abee988e53a45b0373 commit: 1f1e0f2e2ba274ddd6bd27f69cabc7f6606a0f3c Author: Sam James gentoo org> AuthorDate: Wed Jan 27 07:30:51 2021 +0000 Commit: Sam James gentoo org> CommitDate: Wed Jan 27 07:30:51 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f1e0f2e sys-boot/raspberrypi-firmware: bump to 1.20210108 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Sam James gentoo.org> sys-boot/raspberrypi-firmware/Manifest | 1 + .../raspberrypi-firmware-1.20210108.ebuild | 72 ++++++++++++++++++++++ 2 files changed, 73 insertions(+) diff --git a/sys-boot/raspberrypi-firmware/Manifest b/sys-boot/raspberrypi-firmware/Manifest index e02e56bbc2f..c96249964a0 100644 --- a/sys-boot/raspberrypi-firmware/Manifest +++ b/sys-boot/raspberrypi-firmware/Manifest @@ -1,2 +1,3 @@ DIST raspberrypi-firmware-1.20201022.tar.gz 189827375 BLAKE2B 94c38f60d688c8e3ebab830912daccbb6c04bdd3d88f6ca0d07d85be0a6b12c53f0266b4c258ed4694f30bad5db30fb6d30feabfd0b7668735a9a806b820d325 SHA512 876758179df27109984b6c3f4849fdcdc6bdcc2769495fcc83c97fc3ff4d07b9f3cd58086be877503f72c9e5417d2be6d6c33bce4cbb3b862055117c9cc26db8 DIST raspberrypi-firmware-1.20201201.tar.gz 189332299 BLAKE2B b3ec91f07b4713d26c29be5412d018a220129eef7ddf7c5c09d85e645c2c5754a95f13be7e690ab40648a982e3974cc760aa5b33c76612da836227d38c4ee3a5 SHA512 a7f4591552718956bd7f2d0d377234277e2e6f18cc9714ea30fe13f26d5ae1164b982f39dcf72ae4a18663369ef06d0187d8182713763262371c13107aac4c65 +DIST raspberrypi-firmware-1.20210108.tar.gz 189334002 BLAKE2B 254e8bf644b2b3773ff5ec9ffb47eeb84e0a149e9a74a18a9c6c39db03610fdd3a42f455a9e8935aa4afa4ee21ed098237d4a4e431c401a919c833372e729fa5 SHA512 3c8759e7d6cce597fcbab80e0cd9fd6d528ed2c956452e902f08509169181d703895298a71b8be76d6734f128f85e36d54a149ff9cd735ca44cf8416917ed172 diff --git a/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20210108.ebuild b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20210108.ebuild new file mode 100644 index 00000000000..263276be82c --- /dev/null +++ b/sys-boot/raspberrypi-firmware/raspberrypi-firmware-1.20210108.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 +}