53 lines
1.2 KiB
Bash
53 lines
1.2 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
ETYPE="headers"
|
|
H_SUPPORTEDARCH="alpha amd64 arm arm64 hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86"
|
|
inherit kernel-2 toolchain-funcs
|
|
detect_version
|
|
|
|
PATCH_COMMIT="b0ead82bea0a0a5392dd065d16dec4e152f427a8"
|
|
PATCH_P="linux-headers-patches-${PATCH_COMMIT}"
|
|
|
|
DESCRIPTION="Linux system headers"
|
|
HOMEPAGE="https://www.kernel.org https://github.com/gentoo/linux-headers-patches"
|
|
SRC_URI="
|
|
https://www.kernel.org/pub/linux/kernel/v2.6/linux-${PV}.tar.xz
|
|
https://github.com/gentoo/linux-headers-patches/archive/${PATCH_COMMIT}.tar.gz -> ${PATCH_P}.tar.gz
|
|
"
|
|
S="${WORKDIR}/linux-${PV}"
|
|
UNIPATCH_LIST_DEFAULT=""
|
|
|
|
KEYWORDS="-* ~amd64 ~x86"
|
|
|
|
BDEPEND="
|
|
app-arch/xz-utils
|
|
dev-lang/perl
|
|
net-misc/rsync
|
|
"
|
|
|
|
src_unpack() {
|
|
default
|
|
}
|
|
|
|
src_prepare() {
|
|
local header_patches=(
|
|
"${WORKDIR}/${PATCH_P}/2.6.39"/*.patch
|
|
)
|
|
|
|
eapply "${header_patches[@]}"
|
|
eapply "${FILESDIR}/${P}-gcc15-unifdef.patch"
|
|
eapply "${FILESDIR}/${P}-gcc15-unifdef-uses.patch"
|
|
eapply "${FILESDIR}/${P}-nf-log-uapi.patch"
|
|
default
|
|
}
|
|
|
|
src_install() {
|
|
kernel-2_src_install
|
|
|
|
find "${ED}" \( -name '.install' -o -name '*.cmd' \) -delete || die
|
|
find "${ED}" -empty -type d -delete || die
|
|
}
|