sys-kernel/raspberrypi-image: add 6.18.48_p20260907

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu
2026-09-12 17:02:16 +03:00
parent 8b6ea36580
commit 1bef2bb527
2 changed files with 64 additions and 0 deletions

View File

@@ -5,4 +5,5 @@ DIST raspberrypi-firmware-1.20240902.tar.gz 154483648 BLAKE2B e3d9fabb23246d9094
DIST raspberrypi-firmware-1.20260408.tar.gz 199845922 BLAKE2B 2d75fafd594157248e1f5f3e58e7647ca950870df63c0a37be06c5190e67c71378176f70d51df796c2b3c8502c24e57649f792c4c416a9f2c42833fd004f3c96 SHA512 e353f9fe0d23874d5e7d72fca041358a9c9046e9fd071be604c0a840dbc95711ba7b7af39e78159e2e821d2af088ef28a22cb9ccaae70e0d2bd82b7ba2730402
DIST raspberrypi-firmware-1.20260521.tar.gz 179761067 BLAKE2B d64b2a252def19d8d4d47a51e532cbec6c1a3544a9ce07e91963111ad71823ccf4a8a40b18d5556ca34ba616b50a84ea79f8d042518834e4ec73d83916730ab5 SHA512 92e9680a521cfb3b7824ed5a50026414ace49765b568b66cd919eb973a46ecf13743fe2e11145a7d28036591705b36198c3cc2765a132f32caf2fe22206c3818
DIST raspberrypi-firmware-1.20260824.tar.gz 181213667 BLAKE2B 82ea309d7f80c3f768aa44aa8f70572ad11ca544888fe4fb564331a80d99c0a74820edab781be1ee20856d04e0262be45bcc7bb94ec7e8c514650e9c591901fe SHA512 0bbd3d47c8c381301bba24a068d77fa849a138613e5a3ca20159148180e78771ff1f7aed2026cf0474b90485a5b3c2dc6577d404ff108667de74d47c8d7f3ed9
DIST raspberrypi-firmware-1.20260907.tar.gz 181352992 BLAKE2B 7311bb5396d45ff795f124c86149b5fc68a27311e959ed2537988f20867bf66da9ac423d8a4aa52b1fad185bdbd7953bd279af703decabb6bf709086ac098937 SHA512 4bee864e66aba51af26ee7597612d91946e95b02d797796601592e3ce3ee005cbf0f2f8c3025ac16ecbd18a16eb451fa7ab3252a729d10bc7361713fc53f561e
DIST raspberrypi-image-1.20250915.tar.gz 199753611 BLAKE2B 0d4297832e24b1faa8c889d5f8574a6d1b400f01ae9b598ef622d5e0772a68c2126ff9b56ab5f6f6047250985e62220b3ac70a64f3a930e75cf1e56d44c89cde SHA512 ce1d4027522e6040ca6307d9f5764e13702e13ede07c3454bd2a286d8bbb504a40a1d03b9e7dcec8d9281a89e72e357383e0f796df75c72a1b40f5478b47c81c

View File

@@ -0,0 +1,63 @@
# Copyright 1999-2026 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)"
SRC_URI="https://github.com/raspberrypi/firmware/archive/${MY_PV}.tar.gz -> raspberrypi-firmware-${MY_PV}.tar.gz"
S="${WORKDIR}/firmware-${MY_PV}"
KEYWORDS="-* ~arm ~arm64"
fi
LICENSE="GPL-2 raspberrypi-videocore-bin"
SLOT="0"
RESTRICT="binchecks strip"
RDEPEND="sys-boot/raspberrypi-firmware"
src_prepare() {
default
if [[ ${PV} != 9999 ]]; then
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
fi
}
src_install() {
insinto /lib/modules
doins -r modules/*
insinto /boot
doins boot/*.img
doins boot/*.dtb
doins -r boot/overlays
}