Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sys-kernel/vanilla-headers/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ DIST linux-6.12.103.tar.xz 148421796 BLAKE2B a306a6039f07aacc820d514b6b44742ec63
DIST linux-6.12.104.tar.xz 148400064 BLAKE2B 39475bc4400d9cf7bc49214e4b174c7eb789f0f5e544746b3fb7f58b13b0a27a12aec72bff4cc7680b580e83584d378789f6bed247071d1d6d335be7d5464b59 SHA512 0471783fa69e5832aabeb076d19eb9d622e8616ff86909392f52ff831c81a9cefb86027a239b7e0c845babbe6390ab96b654d7526935d1b525504d0d200b1669
DIST linux-6.12.107.tar.xz 148412260 BLAKE2B 7ceed78b81cfa2298dd5f315047d30249e508b197aed3ede55cf5eddf079023c93eec96e29af79fc0c5f54a8b80fde386641d339ac07a07872aff86f31df07fc SHA512 7a0442bab12121ee3499d79067f4f84593814906bc22ba0e6fce0403b8640b4bd5a0f0af5ed947ef80e4e659e5abc0bdba54786bfe3be1042e6aff6bec8f0efc
DIST linux-6.12.108.tar.xz 148427096 BLAKE2B bd33c2b019f6d0ef52c8989347b05017982f6c0364eab067e61def3434bb037200fcca1c8167d4a5452198856d4b21223b01384856aaff784abcb63de356c236 SHA512 e2805d4e3afae805a05e9be6dce1020a42f8d0da5f8d74dfa750417ff561398c1f8613c8e862baead2d3251971e11a9ab605ca22a0e96efc43a41413b2a0da60
DIST linux-6.12.109.tar.xz 148461400 BLAKE2B f2d38645878fcc56ced27daca3eee4d3702768e021a40ce708d457b6b9933bfc4b94787f546996629f4ede6b412c4bdfa013e4271922093d165213ded4a85a08 SHA512 5cc60d88ec72228e9f9844786d8feb2cd789de54fc5c9ce51982362a53c3a3aae779567d50a7fb0264e3fee90ebbd8058709d292d3b5b172c01ec06ae00aee47
59 changes: 59 additions & 0 deletions sys-kernel/vanilla-headers/vanilla-headers-6.12.109.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit

EAPI=7
inherit eutils toolchain-funcs

DESCRIPTION="Linux kernel header files"
HOMEPAGE="https://kernel.org"
SRC_URI="https://mirrors.edge.kernel.org/pub/linux/kernel/v6.x/linux-6.12.109.tar.xz -> linux-6.12.109.tar.xz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="*"
PATCHES=(
"${FILESDIR}/00_all_0002-x86-do-not-build-relocs-tool-when-installing-headers.patch"
)
RESTRICT="binchecks strip"
BDEPEND="app-arch/xz-utils
dev-lang/perl
net-misc/rsync
!<sys-kernel/linux-headers-6.12
!!sys-kernel/debian-headers

"
RDEPEND=">=sys-kernel/linux-headers-6.12

"
DEPEND="${RDEPEND}
"
S="${WORKDIR}/linux-${PV}"
pkg_setup() {
export REAL_ARCH="$ARCH"
# will interfere with Makefile if set
unset ARCH; unset LDFLAGS
}
src_prepare() {
default
# drop unused errno.h include
sed -e '/^#include <errno.h>/d' -i ${S}/scripts/unifdef.c
}
src_compile() {
:
}
src_install() {
# fix permissions in source tree
cd "${WORKDIR}"
chown -R 0:0 * >& /dev/null
chmod -R a+r-w+X,u+w *
cd "${OLDPWD}"
[[ -L /usr/include/linux ]] && { rm /usr/include/linux || die; }
[[ -L /usr/include/asm ]] && { rm /usr/include/asm || die; }
emake O="${D}" ARCH="$(tc-arch-kernel)" headers_install \
|| die "could not install headers to image"
# prune non-headers from tree
rm "${D}"/{arch,include,scripts} -r
find "${D}" '(' -name '.install' -o -name '*.cmd' ')' -delete
}


# vim: filetype=ebuild