Skip to content

Commit

Permalink
sys-kernel/gentoo-kernel-bin: Bump to 5.15.130
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Sep 2, 2023
1 parent b6db137 commit d803f15
Show file tree
Hide file tree
Showing 2 changed files with 133 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sys-kernel/gentoo-kernel-bin/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ DIST genpatches-5.15-134.base.tar.xz 5282056 BLAKE2B f973657ec1cafc1e6cfa44b3fb2
DIST genpatches-5.15-134.extras.tar.xz 3932 BLAKE2B e6d0b37360f85c3672cb4f56fcca5f649b3a5f9f81e64c7fca1b1e4691f2de4258fda7a262b44fa4a7b37e6af93d8f6869ad6b3b03d5184df25ed5aab24f2655 SHA512 677b4a0448bb8c618127c3fcd34ea752b788deb26f3e3a843847baf9c3396a3fbf10a8cfe105c825877e02e5fb13e81e6bef0c697180a5ade644b61e7d60e24d
DIST genpatches-5.15-135.base.tar.xz 5311072 BLAKE2B e7ad491771a4602a9f8d6786ba38b76ae7bddf1917a6fa530cae361d9385f19f4779441626d8a2fef93802956ff5db1698a5cffed76c474f609b6567832c4a73 SHA512 a7f4afee966e914c9831555cc0ebf8cc8ba3d2d9929f7b5f8358d4f64d61fe85dc7f637efb889d5529f7b04f8e79a228109e0c0d9a298d04a3718a640bfedc56
DIST genpatches-5.15-135.extras.tar.xz 3932 BLAKE2B fbb46341209dfb76d7a3ed7555de53de48dac947bfc993567afb6d0c2f8e23907d1fbb831a35c274b22ce34a31d6b805d30e727c59fbf63de7095500357ffcae SHA512 796ad4fd5ea1d84b066acff3b56d8df87575a584925c8487e97fb3b056ac46622670e06ce4c5511541c037ae84a566e9fa2304f5555050c96efe97da37126e9d
DIST genpatches-5.15-136.base.tar.xz 5312940 BLAKE2B 3f905e0cc9ea0353f3be1cfff526f849298fec3dc8e7ec66c7283ff3440663cc54b58cf07bc2c62d2bbd9bd335f37a708741188a43807e55b526fbbd465579c6 SHA512 0d8aca792ffc949796905d135abb89ee812271e93946b00cba76bb7b3e9d5cfe05efc29a19c4c3e9933f9b1eea0256caffe85d9936f6cceeb94f3ea51c60f586
DIST genpatches-5.15-136.extras.tar.xz 3932 BLAKE2B c9ea53212a94f1d8cecc51c30d3e7a856ac1f325ecfd5e06f5c61b3b85fec988ff93169d01b7335fd100b329e97bc8806ca02247477b51311956a29efc2d4d6a SHA512 edc8041e65b7129f8abac8351c900d1a8849bcda06d3328c6fefc641af259aad243dddd9267ba0f6532b2cbfe4caa0275c323db392cbd2f3160930e0cbd20017
DIST genpatches-5.4-261.base.tar.xz 6100368 BLAKE2B 1333f1a5aae4faabe031192eee4e491ab80c1e6291e542a99cf308295ed2301c93d74cd41e34fa10e1110710d26edcb9b4b132ee635cde5711b6474557601866 SHA512 4083c69df7ce9aa2e57eb69be4132689d10c95155c7608d6fc52f661abc1f0f9077f546016b3df32b8252777fff78af347af7022d18203aa8416ed83b68ef88b
DIST genpatches-5.4-261.extras.tar.xz 1812 BLAKE2B fcc06d16147422b0ea123b116644539b3527e44bca78d46cf5795d44e42575c7017ec3b5c9dd566c5523e3b23f14b4d817846502d4ef353180c3a3c79caa4c2b SHA512 5cc879a4333aa3e162a5da4bf118a12ae5694c2fb98f11f9e1eee57f91b707974d735c290790942a14b2df5bdf092f58d1cf03f7058aea6f8e588700ec185dbf
DIST genpatches-5.4-262.base.tar.xz 6139068 BLAKE2B 61c2f6a1b307d4e89fd6ddfa57985eefb7b1778ee8ffe346be8967ef528ece98bfbe52c56eff2cf356dc0d2087b59ed353591d508e35e6214130abbd586f1fdc SHA512 c16b5036a6a4a1832a3e95ceda7e77cfdfddb99b92d1091354cdfcc8868a8ac7d4f692ce522e7167d171664b65273c8ea29009fb2911e9f20d3da6ebcb2a9837
Expand Down Expand Up @@ -52,6 +54,10 @@ DIST gentoo-kernel-5.15.129-1.amd64.gpkg.tar 66304000 BLAKE2B a9dd041da1ef554811
DIST gentoo-kernel-5.15.129-1.arm64.gpkg.tar 59392000 BLAKE2B 2dd4ad3e74b18b8dfa0a27d291d2a6fe76ad6cca7c1677ca80ad1100fccd31d8dbd5f497cbda4706c704cd8a62744c72fa28e8622489a1b366a0316d5d01e7c9 SHA512 1120358c30138259537316dca7ef577dfaff318c791bb2be0f798b547bd327894defec9a40379ff459ec05f18de1d1a71b63a6d53854e2983993cccae1214af7
DIST gentoo-kernel-5.15.129-1.ppc64le.gpkg.tar 54917120 BLAKE2B 128e5b6b9981ff67cfae92b3e8279b10eb7dc862f34965332e13e1af8aea2325435e2dd1002a3f1609b1146f4a21327d7c4096e8cd2f5aa41c62dfb6e0850caa SHA512 c14383cd3b8af4aae0f493adb66125c2f543dbb49e0c6bf19914597923c83b69ea40fe982ee5b37ff0e6424c2709f0ee67ad5add6f6dc12d0a41a70403d1dea3
DIST gentoo-kernel-5.15.129-1.x86.gpkg.tar 55961600 BLAKE2B bcb0b4f3692e026d7975e48541766b7581763459ca6464c936cc7e17599495c63a3364ee0906d865a96fcc933f4c997e07b74e0a28c8726fcdf0d1bfe3882671 SHA512 df4b4cd691fc6c8443362096e5127a748c5dd11557feef0ed2059658a3a0b103d8d1580c51369840da0ebc3dc584b280d924d7c69e4bc636662339de7d299d66
DIST gentoo-kernel-5.15.130-1.amd64.gpkg.tar 66263040 BLAKE2B 298a1612b258b8cf7afec7b8e6fa6de6cc824786c5c0df5474218dbdb81301509a5f1831f8fbb9eaedc5c9c1532de3f769f45ebbe75284ec0e29cdad65706d77 SHA512 4e8da82cf00f6788bb9b1102dd552469713cbb7568186176fe6f26ad8608348e6577b6a7d25fd48b625bd5b02f25306209423203ea09dc35d48fe0167c65b80f
DIST gentoo-kernel-5.15.130-1.arm64.gpkg.tar 59392000 BLAKE2B 44804df0fd62600d66f1f32070d87adc5b7e61e52f9b041c8468f2b4815daa3373bbc0b12c7a27681c82e76c73dd0f90d0516ace05fedae956c21eb483b514cc SHA512 a5866f3992bf92bf65a2e27af10353d2f4ea943ad3026401be192b40bd28d4afe9e11da01f77bd6e454bc44ff8984de39a416664d055e95d579a3bc12ca0bc60
DIST gentoo-kernel-5.15.130-1.ppc64le.gpkg.tar 54937600 BLAKE2B d5502cb4d6bd4ad9807f2ae4b8077f1086bcfc4248f93db735c5a308bd830e6dcede3f13dc3985078758ec52db8adb8e00370d6789dbb74a6b3fb398d425a741 SHA512 ec5029ab7959a179c75a9e9fe9e03de66e3de0c1169d914d962694fd54d85b9e5dafb66b6a8a81d5ad74bcb3e7a5ee4bca1b0d0492ad22c8a99e2cecec67cace
DIST gentoo-kernel-5.15.130-1.x86.gpkg.tar 55951360 BLAKE2B be682676a5381fe25d3d326e650f8e61a9e0b4891aa1667f8287674bd2dd115c5d8762ac124c9cb4521966383e05b77b6dfa9b01243c7073f5c08b7c97e2662f SHA512 4fbabb0a5e6f9bae2a3855476cb56c98e8be0baadd4384d5e088b681c7ac560bfcff96ad68913ec9a5566f51ee704850fdb233804ba96bdcc0439b2752877cbf
DIST gentoo-kernel-5.4.254-1.amd64.gpkg.tar 60528640 BLAKE2B 33d0479796b153b5769c16cb0c5626b17596a6e987248e7e91f2e5c9d3d9ca752c625face60b8562a9045cf4318b2c366e8acef39f0bc534ef5d3f816169e76b SHA512 773914a4a4f568d889dafe56103a21893e7037123642be23fcddf49e7050ed414ec359b971b667373fd6184eb58dbec10168cfae6ad933af726feb6d9f89f040
DIST gentoo-kernel-5.4.254-1.arm64.gpkg.tar 56535040 BLAKE2B 86e83e47aec900303f01b94f770106c0a70476604efca854699cf2d7ccd335ed2ff4714f6896153782a64f5a06cf19718ca6271994be936406648fded9f95a59 SHA512 0077acd5556f992f0cd3059cb866d164970a71e9c646467d85b4058a00a15b2089b8d102f0e3f9c17dee64cea4b8bbd1e265a528b91a9428eefbbf5cd9ab8bf8
DIST gentoo-kernel-5.4.254-1.ppc64le.gpkg.tar 54210560 BLAKE2B c8fef1a42e4479c9eef68d492ce5030e0e5cf73abaa2bb42fee008589091f2390227746608b099e0df7db5cdd2734950a66c320156afa302a5283dd21e534d1a SHA512 ef378426c2774ec3911b0fde86a7cb25bd9ca142ad9d3cd33d4dd698344655cf3d7d98c3ade40a2ef4edad7d4c1cad2daa580b1602066e6abe7ff4cbdf5d6bd1
Expand Down
127 changes: 127 additions & 0 deletions sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.130.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit kernel-install toolchain-funcs unpacker

MY_P=linux-${PV%.*}
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 6 ))
BINPKG=${PF/-bin}-1

DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
HOMEPAGE="https://www.kernel.org/"
SRC_URI+="
https://cdn.kernel.org/pub/linux/kernel/v$(ver_cut 1).x/${MY_P}.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.base.tar.xz
https://dev.gentoo.org/~mpagano/dist/genpatches/${GENPATCHES_P}.extras.tar.xz
amd64? (
https://dev.gentoo.org/~mgorny/binpkg/amd64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
-> ${BINPKG}.amd64.gpkg.tar
)
arm64? (
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
-> ${BINPKG}.arm64.gpkg.tar
)
ppc64? (
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
-> ${BINPKG}.ppc64le.gpkg.tar
)
x86? (
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
-> ${BINPKG}.x86.gpkg.tar
)
"
S=${WORKDIR}

LICENSE="GPL-2"
KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"

RDEPEND="
!sys-kernel/gentoo-kernel:${SLOT}
"
PDEPEND="
>=virtual/dist-kernel-${PV}
"
BDEPEND="
sys-devel/bc
sys-devel/flex
virtual/libelf
app-alternatives/yacc
"

QA_PREBUILT='*'

KV_LOCALVERSION='-gentoo-dist'
KPV=${PV}${KV_LOCALVERSION}

src_prepare() {
local PATCHES=(
# meh, genpatches have no directory
"${WORKDIR}"/*.patch
)
cd "${MY_P}" || die
default
}

src_configure() {
# force ld.bfd if we can find it easily
local LD="$(tc-getLD)"
if type -P "${LD}.bfd" &>/dev/null; then
LD+=.bfd
fi

tc-export_build_env
local makeargs=(
V=1

HOSTCC="$(tc-getBUILD_CC)"
HOSTCXX="$(tc-getBUILD_CXX)"
HOSTCFLAGS="${BUILD_CFLAGS}"
HOSTLDFLAGS="${BUILD_LDFLAGS}"

CROSS_COMPILE=${CHOST}-
AS="$(tc-getAS)"
CC="$(tc-getCC)"
LD="${LD}"
AR="$(tc-getAR)"
NM="$(tc-getNM)"
STRIP=":"
OBJCOPY="$(tc-getOBJCOPY)"
OBJDUMP="$(tc-getOBJDUMP)"

# we need to pass it to override colliding Gentoo envvar
ARCH="$(tc-arch-kernel)"

O="${WORKDIR}"/modprep
)

mkdir modprep || die
cp "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
}

src_test() {
kernel-install_test "${KPV}" \
"${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
"${BINPKG}/image/lib/modules/${KPV}"
}

src_install() {
mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die

# FIXME: requires proper mount-boot
if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
mv "${BINPKG}"/image/boot "${ED}"/ || die
fi

# strip out-of-source build stuffs from modprep
# and then copy built files
find modprep -type f '(' \
-name Makefile -o \
-name '*.[ao]' -o \
'(' -name '.*' -a -not -name '.config' ')' \
')' -delete || die
rm modprep/source || die
cp -p -R modprep/. "${ED}/usr/src/linux-${KPV}"/ || die
}

0 comments on commit d803f15

Please sign in to comment.