Сравнение raspberrypi-image-5.10.63_p20211029 с raspberrypi-image-5.15.32_p20220331

/usr/portage/sys-kernel/raspberrypi-image/raspberrypi-image-5.15.32_p20220331.ebuild 2023-10-09 14:52:35.536368503 +0300
1 1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5 5

  
6 6
inherit mount-boot
7 7

  
......
10 10

  
11 11
DESCRIPTION="Raspberry Pi (all versions) kernel and modules"
12 12
HOMEPAGE="https://github.com/raspberrypi/firmware"
13
if [[ ${PV} == 9999 ]]; then
14
	EGIT_REPO_URI="https://github.com/raspberrypi/firmware"
15
	EGIT_CLONE_TYPE="shallow"
16
	inherit git-r3
17
else
18
	[[ $(ver_cut 4) == p ]] || die "Unsupported version format, tweak the ebuild."
19
	MY_PV="1.$(ver_cut 5)"
20

  
21
	SRC_URI="https://github.com/raspberrypi/firmware/archive/${MY_PV}.tar.gz -> raspberrypi-firmware-${MY_PV}.tar.gz"
22
	S="${WORKDIR}/firmware-${MY_PV}"
23
	KEYWORDS="-* ~arm ~arm64"
24
fi
25

  
13 26
LICENSE="GPL-2 raspberrypi-videocore-bin"
14 27
SLOT="0"
15 28
RESTRICT="binchecks strip"
......
21 34
# and all older ones are deleted.
22 35
RDEPEND=">sys-boot/raspberrypi-firmware-1.20190709"
23 36

  
24
if [[ "${PV}" == 9999 ]]; then
25
	inherit git-r3
26
	EGIT_REPO_URI="https://github.com/raspberrypi/firmware"
27
	EGIT_CLONE_TYPE="shallow"
28
else
29
	[[ "$(ver_cut 4)" == 'p' ]] || die "Unsupported version format, tweak the ebuild."
30
	MY_PV="1.$(ver_cut 5)"
31
	SRC_URI="https://github.com/raspberrypi/firmware/archive/${MY_PV}.tar.gz -> raspberrypi-firmware-${MY_PV}.tar.gz"
32
	S="${WORKDIR}/firmware-${MY_PV}"
33
	KEYWORDS="-* arm arm64"
34
fi
37
src_prepare() {
38
	default
39

  
40
	local expected_kernel_version="$(ver_cut 1-3)+"
41
	local found_kernel_version=( "${S}"/modules/$(ver_cut 1).*.*+ )
42

  
43
	found_kernel_version=${found_kernel_version[0]}
44
	found_kernel_version=${found_kernel_version##*/}
45

  
46
	if [[ ${expected_kernel_version} != ${found_kernel_version} ]] ; then
47
		eerror "Expected kernel version: ${expected_kernel_version}"
48
		eerror "Found kernel version: ${found_kernel_version}"
49
		die "Please fix ebuild version to contain ${found_kernel_version}!"
50
	fi
51

  
52
	if [[ ! -d "${S}"/modules/${expected_kernel_version} ]] ; then
53
		eerror "Kernel module directory is missing!"
54
		die "${S}/modules/${expected_kernel_version} not found!"
55
	fi
56
}
35 57

  
36 58
src_install() {
37 59
	insinto /lib/modules
Спасибо!