Diff linux-headers-5.4-r2 with a linux-headers-5.10-r2

/usr/portage/sys-kernel/linux-headers/linux-headers-5.10-r2.ebuild 2023-10-09 14:52:35.532368502 +0300
5 5

  
6 6
ETYPE="headers"
7 7
H_SUPPORTEDARCH="alpha amd64 arc arm arm64 avr32 cris frv hexagon hppa ia64 m68k metag microblaze mips mn10300 nios2 openrisc ppc ppc64 riscv s390 score sh sparc x86 xtensa"
8
inherit kernel-2 toolchain-funcs
8
inherit kernel-2
9 9
detect_version
10 10

  
11 11
PATCH_PV=${PV} # to ease testing new versions against not existing patches
12
PATCH_VER="2"
12
PATCH_VER="1"
13 13
SRC_URI="${KERNEL_URI}
14 14
	${PATCH_VER:+mirror://gentoo/gentoo-headers-${PATCH_PV}-${PATCH_VER}.tar.xz}
15 15
	${PATCH_VER:+https://dev.gentoo.org/~sam/distfiles/gentoo-headers-${PATCH_PV}-${PATCH_VER}.tar.xz}
......
30 30
}
31 31

  
32 32
src_prepare() {
33
	# TODO: May need forward porting to newer versions
34
	use elibc_musl && PATCHES+=(
35
		"${FILESDIR}"/${PN}-5.10-Use-stddefs.h-instead-of-compiler.h.patch
36
	)
37

  
33 38
	# avoid kernel-2_src_prepare
34 39
	default
35 40
}
36 41

  
37 42
src_test() {
38
	emake ARCH="$(tc-arch-kernel)" headers_check
43
	emake headers_check "${KERNEL_MAKEOPTS[@]}"
39 44
}
40 45

  
41 46
src_install() {
Thank you!