Diff vanilla-kernel-5.10.248 with a vanilla-kernel-5.10.9999

/usr/portage/sys-kernel/vanilla-kernel/vanilla-kernel-5.10.9999.ebuild 2026-01-17 11:18:06.860172819 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit kernel-build toolchain-funcs verify-sig
6
inherit git-r3 kernel-build toolchain-funcs
7 7

  
8
BASE_P=linux-${PV%.*}
9 8
# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
10 9
CONFIG_VER=5.10.12
11 10
CONFIG_HASH=836165dd2dff34e4f2c47ca8f9c803002c1e6530
12 11
GENTOO_CONFIG_VER=g17
13
SHA256SUM_DATE=20260120
14 12

  
15 13
DESCRIPTION="Linux kernel built from vanilla upstream sources"
16 14
HOMEPAGE="
......
18 16
	https://www.kernel.org/
19 17
"
20 18
SRC_URI+="
21
	https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${BASE_P}.tar.xz
22
	https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/patch-${PV}.xz
23 19
	https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
24 20
		-> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
25
	verify-sig? (
26
		https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/sha256sums.asc
27
			-> linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc
28
	)
29 21
	amd64? (
30 22
		https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
31 23
			-> kernel-x86_64-fedora.config.${CONFIG_VER}
......
43 35
			-> kernel-i686-fedora.config.${CONFIG_VER}
44 36
	)
45 37
"
46
S=${WORKDIR}/${BASE_P}
47 38

  
48
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
39
EGIT_REPO_URI=(
40
	https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
41
	https://github.com/gregkh/linux/
42
)
43
EGIT_BRANCH="linux-${PV/.9999/.y}"
44

  
45
LICENSE="GPL-2"
49 46
IUSE="debug hardened"
50
REQUIRED_USE="
51
	arm? ( savedconfig )
52
	hppa? ( savedconfig )
53
	sparc? ( savedconfig )
54
"
47
REQUIRED_USE="arm? ( savedconfig )"
55 48

  
56 49
BDEPEND="
57 50
	debug? ( dev-util/pahole )
58
	verify-sig? ( >=sec-keys/openpgp-keys-kernel-20250702 )
59 51
"
60 52
PDEPEND="
61
	>=virtual/dist-kernel-${PV}
53
	>=virtual/dist-kernel-$(ver_cut 1-2)
62 54
"
63 55

  
64 56
QA_FLAGS_IGNORED="
65 57
	usr/src/linux-.*/scripts/gcc-plugins/.*.so
66 58
	usr/src/linux-.*/vmlinux
67
	usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
68 59
"
69 60

  
70
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/kernel.org.asc
71

  
72 61
src_unpack() {
73
	if use verify-sig; then
74
		cd "${DISTDIR}" || die
75
		verify-sig_verify_signed_checksums \
76
			"linux-$(ver_cut 1).x-sha256sums-${SHA256SUM_DATE}.asc" \
77
			sha256 "${BASE_P}.tar.xz patch-${PV}.xz"
78
		cd "${WORKDIR}" || die
79
	fi
80

  
62
	git-r3_src_unpack
81 63
	default
82 64
}
83 65

  
84 66
src_prepare() {
85
	eapply "${WORKDIR}/patch-${PV}"
86 67
	default
87 68

  
88 69
	local biendian=false
89 70

  
90 71
	# prepare the default config
91 72
	case ${ARCH} in
92
		arm | hppa | sparc)
73
		arm | hppa)
93 74
			> .config || die
94 75
		;;
95 76
		amd64)
......
102 83
		ppc)
103 84
			# assume powermac/powerbook defconfig
104 85
			# we still package.use.force savedconfig
105
			cp "${WORKDIR}/${BASE_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
86
			cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
106 87
			;;
107 88
		ppc64)
108 89
			cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
Thank you!