commit: 509357d201fd0aae02b131bffb4e50de6766d9f1 Author: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> AuthorDate: Mon Dec 15 17:34:05 2025 +0000 Commit: Viorel Munteanu <ceamac <AT> gentoo <DOT> org> CommitDate: Mon Dec 15 20:08:27 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=509357d2
sys-kernel/raspberrypi-image: add 6.12.47_p20250915 Closes: https://bugs.gentoo.org/952813 Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org> sys-kernel/raspberrypi-image/Manifest | 1 + .../raspberrypi-image-6.12.47_p20250915.ebuild | 70 ++++++++++++++++++++++ 2 files changed, 71 insertions(+) diff --git a/sys-kernel/raspberrypi-image/Manifest b/sys-kernel/raspberrypi-image/Manifest index a54a5488e885..7d24510797ac 100644 --- a/sys-kernel/raspberrypi-image/Manifest +++ b/sys-kernel/raspberrypi-image/Manifest @@ -8,4 +8,5 @@ DIST raspberrypi-firmware-1.20230405.tar.gz 187674867 BLAKE2B 8f35b2dd906cd2459c DIST raspberrypi-firmware-1.20240424.tar.gz 153632287 BLAKE2B 7718d26ee66751484edd359412bc186d7ef5e68af97abe814b340b4c21fb4d6f7abc2caa8c7d0ec62ac742a9c932a08b4393d32d4ba79480c9648d742bead0b8 SHA512 90ad6872886f3efb004b57e258ba8ec0ef0bf619e251e2f0d259c22ef9cb816f6b0f2d5fb1f3a0ece13bf69fecfe8fe70793b90ea243163b5a585930e554e3d5 DIST raspberrypi-firmware-1.20240529.tar.gz 153776579 BLAKE2B 8348429940056600e9c1a3f63d2575fc285ef379ad1663460620d1b9fb65ef1b32d789a0b525903de90e5ec9886b173c7e3692a87c4ee3c9904c88c1bf85b071 SHA512 1b127924960efe8430250fae7a496805e4285d1b72b180a829be6d5eee6be2ecf325bdf9c81f9806ef9aae0adeb5e8832197e79c281754b87028fcdfe1b0961b DIST raspberrypi-firmware-1.20240902.tar.gz 154483648 BLAKE2B e3d9fabb23246d90948004dde37f2125779a86aa62737b51b03cacea13d1ca715724587b0da106efba19c80a1bafcf1537101ce13ba4374602ca9e4957c81f87 SHA512 b5b1a74e1e9f9760fd19f98a35505b2e127e212c17afbdf08e1b92198f32de73655fb24c16d662318ccf50621ae5e1a6ed5aa877d2d1cc654d26b8ff168c1e82 +DIST raspberrypi-image-1.20250915.tar.gz 199753611 BLAKE2B 0d4297832e24b1faa8c889d5f8574a6d1b400f01ae9b598ef622d5e0772a68c2126ff9b56ab5f6f6047250985e62220b3ac70a64f3a930e75cf1e56d44c89cde SHA512 ce1d4027522e6040ca6307d9f5764e13702e13ede07c3454bd2a286d8bbb504a40a1d03b9e7dcec8d9281a89e72e357383e0f796df75c72a1b40f5478b47c81c DIST raspberrypi-image-4.14.98_p20190215.tar.gz 123074917 BLAKE2B cefedb5c979db7dfd47938aad37a567d91d3ad78247c7a63f789362768ab7a39a1967ac116b4b0475e3b210ab11f6474706df042af85a622e8e7905c85ec7498 SHA512 082f26caf427222d838881e5f1e9fa0136765b3eaf74a84877fc33616fd07e49085db0889226c40c655039a9d41a10566510c7d752cfc48a67b4683616a51193 diff --git a/sys-kernel/raspberrypi-image/raspberrypi-image-6.12.47_p20250915.ebuild b/sys-kernel/raspberrypi-image/raspberrypi-image-6.12.47_p20250915.ebuild new file mode 100644 index 000000000000..36f55e45d50d --- /dev/null +++ b/sys-kernel/raspberrypi-image/raspberrypi-image-6.12.47_p20250915.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit mount-boot + +# Go to e.g. https://github.com/raspberrypi/firmware/tree/1.20211029/modules +# for the latest tag to see which kernel version it corresponds to. + +DESCRIPTION="Raspberry Pi (all versions) kernel and modules" +HOMEPAGE="https://github.com/raspberrypi/firmware" +if [[ ${PV} == 9999 ]]; then + EGIT_REPO_URI="https://github.com/raspberrypi/firmware" + EGIT_CLONE_TYPE="shallow" + inherit git-r3 +else + [[ $(ver_cut 4) == p ]] || die "Unsupported version format, tweak the ebuild." + MY_PV="1.$(ver_cut 5)" + + # This release is bugged; the original archive contains kernel 6.12.25 + # but the release from 2025-09-15 should be 6.12.47 + # so use the commit hash instead. + # The corresponding raspberrypi-sources is also 6.6.47 (timestamped next day, 20250916). + COMMIT="e57538c91b473d23f98bf41fcffdc61b4198a632" + + # Rename to raspberrypi-image- instead of raspberrypi-firmware- to avoid + # overwriting the distfile for sys-boot/raspberrypi-firmware-1.20250915 + # (normally this would use the same upstream filename) + SRC_URI="https://github.com/raspberrypi/firmware/archive/${COMMIT}.tar.gz -> raspberrypi-image-${MY_PV}.tar.gz" + S="${WORKDIR}/firmware-${COMMIT}" + KEYWORDS="-* ~arm ~arm64" +fi + +LICENSE="GPL-2 raspberrypi-videocore-bin" +SLOT="0" +RESTRICT="binchecks strip" + +RDEPEND="sys-boot/raspberrypi-firmware" + +src_prepare() { + default + + local expected_kernel_version="$(ver_cut 1-3)+" + local found_kernel_version=( "${S}"/modules/$(ver_cut 1).*.*+ ) + + found_kernel_version=${found_kernel_version[0]} + found_kernel_version=${found_kernel_version##*/} + + if [[ ${expected_kernel_version} != ${found_kernel_version} ]] ; then + eerror "Expected kernel version: ${expected_kernel_version}" + eerror "Found kernel version: ${found_kernel_version}" + die "Please fix ebuild version to contain ${found_kernel_version}!" + fi + + if [[ ! -d "${S}"/modules/${expected_kernel_version} ]] ; then + eerror "Kernel module directory is missing!" + die "${S}/modules/${expected_kernel_version} not found!" + fi +} + +src_install() { + insinto /lib/modules + doins -r modules/* + insinto /boot + doins boot/*.img + + doins boot/*.dtb + doins -r boot/overlays +}
