Skip to content

Commit

Permalink
sys-kernel/gentoo-kernel-bin: Bump to 6.4.14
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 4376f33 commit bbd76b4
Show file tree
Hide file tree
Showing 2 changed files with 137 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 @@ -28,6 +28,8 @@ DIST genpatches-6.4-14.base.tar.xz 765548 BLAKE2B e1d9bc63a0d8beeeeef9894b264ef4
DIST genpatches-6.4-14.extras.tar.xz 3700 BLAKE2B e72b1378e2c05049a5cb981e7bb09e0d448fd5e1219393d7b552c1c6de2ed557c395a3f341946bd142d8df45b61d12a13ea2424325d5a98045063e0cabe7584f SHA512 62149b4cdce5bf1a0567557790cddc1248dd927f31774b65848f00075bf1a0179939c292c79181af0a39132321f056541919beb30c6a4d46f57286886c95c545
DIST genpatches-6.4-15.base.tar.xz 809064 BLAKE2B 5f931235de8f0d94b1297c4e5c1c5c82dfe51e2e5149551fd053b908f112adb034e399ec3a8eaabf1b07993cb021577b210ccbd55d0f4d3670f87ebfdf34964f SHA512 b5181ddfc2896849cd0a5889c2c1f3009eedbd3c080a253e78c75545d8a57b7671e163b0cd5076d6255c5eb18b42b8cd81f0d47eaeb40397015418c3e212a5b3
DIST genpatches-6.4-15.extras.tar.xz 3700 BLAKE2B 36916108aa768ac8138cfe4e167d1bdbc8413e2c971ce81f531966882ff1d096077c9676298ffcf69461059c62ba69e5ed821187e8a520aa21f0adb7ba119281 SHA512 65f96f5b47fe3ca21c4e7f09c13474c64d932eefe94a523d3197addc8ff8f70fce0b9da59f26e890cdb75cd9a9979dc99386c4815ba8d6e2b419a1d5872fd0d1
DIST genpatches-6.4-16.base.tar.xz 811436 BLAKE2B 1a1f92b35cafd3ee73cc9a04a94d72a11f01d48195c43e881cbca1a776fc5f6abaf582523a6e75a5dbbb04cdfbed7b19e85d77b5541a926f4e6497d72508de87 SHA512 7a4899923c0ff93d8b5dfb3ab1d4a698337cfe19a457affc3d67df41f3ef734064110d55e3cc84e0fa5b458c7919fea14738fc18befa4ed5f6052a5b8b5383bb
DIST genpatches-6.4-16.extras.tar.xz 3700 BLAKE2B a50cf572b21a1e91c2e84f05238f5d0301fd2b6596f98fb48fb962c4c4f2d17f91a95af4c3814d818ef53e1743523aa6ec45ac0b26c41bcb7e122a31f616d59e SHA512 534d7320c07134e41f6bd31547ab55f6e0d305b5bd7cb8c862f0d9454142e3aa273c64f50405a1230da32b9341dfdba0a1ab71121bb4a78819ddd5a9e6f320b2
DIST gentoo-kernel-5.10.191-1.amd64.gpkg.tar 66365440 BLAKE2B f7086ca26f08468b754b0cf9ce715ed763d2866ebc8ea322fb51fa2ab5146f1c7741f68b82d52a7d54442cc36cd5a114132f9ccb0809e8d0ab0da022742a48d2 SHA512 0f4918273c70f06756c19cd2c7738176695aba65eeaa7846aa6773d97e6d3ac4302be0328926f1a217135d21e2660e6e4124ced7f2304c0f1a408ad2561b24a5
DIST gentoo-kernel-5.10.191-1.arm64.gpkg.tar 59392000 BLAKE2B feee11f6bc6148ca0a65077a33cb1736fe2d588037bfada383bff1ca9ca7ea71d6f3248a91cc9b152d87a3fb9580177a68b3748c53e2bb6e0309c7a4b9e39df3 SHA512 bfe38e92e445719daddc4fd87b717c652a0fbc5b3cf3fdaab40c1014229a2bf5b504642c21e5bb478d56742c56100271a7433f113c7c231382d2f226a609f837
DIST gentoo-kernel-5.10.191-1.ppc64le.gpkg.tar 54947840 BLAKE2B eab70963c60d1d668ba562652b73bf47760d326ea2cd3fad8cbf91e75a9329283b9af38ee7391c4bc887c32464a6c8376844135231d155eb11916c926f8c263a SHA512 58a8701b46878dd470a4210f96f65bc85aabb4c8b29aed5d1d61eff2efb1f851c38b648c50afa7cc164406ccdf8ae3bc673f73857903a17c19229f77c8e885f7
Expand Down Expand Up @@ -88,6 +90,10 @@ DIST gentoo-kernel-6.4.13-1.amd64.gpkg.tar 81766400 BLAKE2B c9aa02287758f139c1e6
DIST gentoo-kernel-6.4.13-1.arm64.gpkg.tar 71208960 BLAKE2B d93c3c764edff90ae8b2471b007d19f2dd334b80f8608c1b4c9f2aa922262b1ca5eca46cd2833a9762bca79bd9be4e1894bf3c923963616bb7ced1f245cc6f62 SHA512 f7ccd52ed95aa4b11ea487283b1617ab66f97199503d48ec53948a5722940f05539fe135b4f3f4083ceb5e6fcf31814b8c86b3b4c50af2cf4c870f04fb3353be
DIST gentoo-kernel-6.4.13-1.ppc64le.gpkg.tar 63447040 BLAKE2B 0927759f4a2ca08e2a096eacda7bbfe6de6c64d89f13d2292008702dc1b141d11086f0109567d3c13f152273203f40006f878756765afa5a78bb5867c18bbab1 SHA512 56f882974196b8f14dbf1876aaf1ea4ed02cafc2874f6e0426397cc50a63bd9e50298122da89f9c26d43d550714ebad295f3c3518de9badbf0e258e70db7f676
DIST gentoo-kernel-6.4.13-1.x86.gpkg.tar 65863680 BLAKE2B c00585eeb53f8a6b17d5f1fd2fc8c90dbe641e1f1860698fbf927eaf105d24e9f1448377d1fc603025a26c92a1bc744571b07041852543609370cc30d7800f36 SHA512 ed7b33f0963374a25eee79fd41c1d00bba7e68b09e34da448d36e87a23b6f7b650da424c609695a520ca9c05a8260ccd93401db943bb4b5037ad7ddfa70b0959
DIST gentoo-kernel-6.4.14-1.amd64.gpkg.tar 81745920 BLAKE2B 978adce49a0cd1065a0e894bb427969224339c8efa1500ba5cbb0b02e506a9255a7a71ec8d1a6a007194620bef7cc422bed9e495c3ec389602ad9dd9faccf27a SHA512 4f0969cb0324dff258d6b2523ddeafe3e7f12db9dd9cf11be7c1fbdd69eb590d9ab03b6a8bc7b8e4fdbd138889e451436edc4088a515c4f4a7a6bd3d598e17fe
DIST gentoo-kernel-6.4.14-1.arm64.gpkg.tar 71249920 BLAKE2B 2448002322bbc63dc8b771bbf0cafb5eeb16e714a80133dff1c88a490b4acc07c3a668867a2694821f34d8aed1c2123582b3f8ec65c99e90d3a38ec2df5d786b SHA512 14b2fdfb58808d0e91cbd9846c30b06566a3a368a1172209313d5dd1919ae885120819f57bc4718a67c5921572eeccbad1afe0af07a2b1fc25e72e1a600d5310
DIST gentoo-kernel-6.4.14-1.ppc64le.gpkg.tar 63457280 BLAKE2B 47a9e8b769d2c051b5ddb7295f2bd51b7d5f94fd77f7bb8eccb5a52b46806aa5fe6fee5b65ae57579f1b41ae333414d3a1aa871c25ffb0842503d0f61ad30766 SHA512 5dd7145d9627aa134b7a6df3de4c15d1d39deadd0d92d3bfb9cb6a403183168901b1df1e11e07e4fd35e213bad98a1e912a8f8b33ac39cba0db1a1a141c42975
DIST gentoo-kernel-6.4.14-1.x86.gpkg.tar 65873920 BLAKE2B e0b8ff61a953cea8326660ad9953c68621f7c70ced88af49921929028e0c3b48649c92d9d6919a7ff1c72ed3fc8e5b4cd3bf6c29314c0f861dae1366e086dcde SHA512 680516cbebafeb62c859c5a8ff572727c725ce9e7cad339fd32bfe03e625a3f58e2ef85b13429829fe88b171413b594e66c3a882c0cb1aa0b46b4bb6816b9935
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f
Expand Down
131 changes: 131 additions & 0 deletions sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.4.14.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

KERNEL_IUSE_SECUREBOOT=1
inherit kernel-install toolchain-funcs unpacker

MY_P=linux-${PV%.*}
GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 2 ))
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="$(tc-getSTRIP)"
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

# Modules were already stripped before signing
dostrip -x /lib/modules
}

0 comments on commit bbd76b4

Please sign in to comment.