Skip to content

Commit

Permalink
sys-kernel/gentoo-kernel-bin: Bump to 5.10.194
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 d803f15 commit 2ae4d91
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 @@ -2,6 +2,8 @@ DIST genpatches-5.10-201.base.tar.xz 5812032 BLAKE2B 17e4a8b463e258f0548e3ccea5c
DIST genpatches-5.10-201.extras.tar.xz 3868 BLAKE2B e2420ee9cfb3e2a928ca1cc5a87bb832f436c3fedb0f4f001975a48a058c69cedcd58f97e5c76758ab737681ced55fc214a537fdab9400b839673bdba6c697c4 SHA512 c719a63005ea809d9bdc5d4b01f1400db0419a28bd629843f2d339a6f08684b4876fdc0eaa09133b7853ed80201517439e04580618ceabb40484e952efe796a3
DIST genpatches-5.10-203.base.tar.xz 5898100 BLAKE2B 9a167c9fd5d73f8aa20db8c1fee7a8b2293ede05e6beab6f4a312b3b5b0714da661908d9cfa0f981b6f544fa9572617c54e5fd595a6023686dd0616d20fb74c7 SHA512 7f04f20e1d7c90c55d24bf3c8b4eb40477df85440d433ae68ecb7acadb42496360df48baee378528f87b575a51bc4805d644a8f40044a6cc071c1f7975692fb0
DIST genpatches-5.10-203.extras.tar.xz 3872 BLAKE2B f5578b93215a3a4109468a46747ef70504668d5de7b7e9562e83cf6d5268633f676b534ab08dd97208c545baad48f680d2bd1e5acc80fc41b68f3aea7f9fe28b SHA512 e075f72e641e21abc91a6d648005d7479be70352b44034091d8cdf8a0c20f8caa75f268ef0591c01eb2ce8819fd2fe99fd176535c40b6fe2dfcf9708c48ca8b2
DIST genpatches-5.10-204.base.tar.xz 5899804 BLAKE2B 5bf19ded87f3178252259d863bfb22f4d2e5ff68d97edd7b9fa0ac74d803951a7db57c0bfa33f5645ada4b7f5f19d33825eb2f2f1c283b6d5cb16279186f4f0b SHA512 267d325ed9bbcd0b21dbc5c537aefe73eca22152082e515855a7ea17acffb8ca57d7a9c599467c73534375ba487d85e8362dc61b9226541fe728fef61483d3bb
DIST genpatches-5.10-204.extras.tar.xz 3868 BLAKE2B 150f953d75e2e051124f44253272a5b62822a19cc9226d82d44439595a4b0f5eb0b1a97f92a07f5d766f0cd5458ded1833ed878e03023f1a74d45162d24cdf51 SHA512 812e6d24f19c3df5998a921261c60e2515811bcf4b4295c16a2fea02fc535d6e944b7a498b142ec65bdbf75d8dd585adbbffe8b80d373c4094ea0a7f1c6d5eaa
DIST genpatches-5.15-133.base.tar.xz 5249652 BLAKE2B 309acc807e07bfcbb34e0ae87618d6dbb76e6481699fc017f449e61a2518e96e1abaf43ffe32bb9f76786fbe8bad5607407be4a40dd8d26be484943d5b4afee1 SHA512 f0c689a808a7724cb4f30d697c22a0a089df3e0f837440b22b6c32672355b79898c8097810fa1e420e0f8c364f5a33b6c373db58b7c8caac8b67be763a820cea
DIST genpatches-5.15-133.extras.tar.xz 3932 BLAKE2B b99e279af41ad1d19a58e8f9b1bbf392c805a46c371d7a022a65c0090b5824c6ce26280525a0c21feda2a5a5cfffcafc690a2194d29af6a44e10a9d4c923db8b SHA512 7cd772a6feed01543305417ff03b834bb002821ccf254e7f5481623a7f16b0b54da5fc72c21f4ae3481308eaab08fcca8fc5103ffbed58dc4355cfb661f04f8e
DIST genpatches-5.15-134.base.tar.xz 5282056 BLAKE2B f973657ec1cafc1e6cfa44b3fb2d8d07b33dedf7118811ff44afcd369991864667635aaaffd9d4abc9cfde5308bc32dcbf44097c1989511a9cd4ae4bd4392190 SHA512 e6d2fba989cc1d67a0d77526b9498f9d1214b2b3fa2210b17c58d7a4d47630a7d1ef1788d255082acd17e475997c12a007d8411ae5478f2cb2a34c7d4e2ffc60
Expand Down Expand Up @@ -42,6 +44,10 @@ DIST gentoo-kernel-5.10.193-1.amd64.gpkg.tar 63221760 BLAKE2B 54bfee53cff7a7440a
DIST gentoo-kernel-5.10.193-1.arm64.gpkg.tar 56412160 BLAKE2B 504f573d2cfcc47fac3a3ccf80c88e9743fb31366950189d7543dd3495cf5dcce919cf18d15e5e788cd925c0cb779cafdd6451bdbf6a2b3ccf0fbac2671d5261 SHA512 b915c2a6a285e5c82613741b42e36e02b9409fbf10f29d86dd53d5b4db33afb855c43faa67a6f4d6878c3a5651e84940edde5763c5ea45741abdec1dafb0ee06
DIST gentoo-kernel-5.10.193-1.ppc64le.gpkg.tar 52828160 BLAKE2B a8133d7e8d1bb84dd95ad41b19bd27f270879cecd86f6c457251851efa571efd7b9f8046463bf7f5b7c29af30d4e8272cb4933ddb375994b4775cd36e4d534d3 SHA512 4a2ead3e54adfeae5d6d7a884aa65c76cc60d3a8917c2158d66b3652ab5fa1c69faaba42fd9ded4e7301d29ef1a25b85fbc51aafe521cdec8f72932d2bffac04
DIST gentoo-kernel-5.10.193-1.x86.gpkg.tar 53463040 BLAKE2B 02d109b2c8e129a396cf471e8f90da02905b53f2dd53a3978967b9dbdad58ff339a289c4d70b464660be17494dee2253fc870a86a8ad375c99b8bde5dac31c26 SHA512 c1a4fc00d168797325cde7161e8e230ce06e7386e781d9d332806c50b7316188248082dfa2b7d7223d2d74dc63ce6bb0114e8801d68703a560c07478112ce2a3
DIST gentoo-kernel-5.10.194-1.amd64.gpkg.tar 63211520 BLAKE2B d5306e4c98d69c104f86a258fb1b0125415c07a055b6e90e7d54ca382a361b10898d142ec7fc9dab8632219cefa772f497215c59944bf6557535e80d9187e5f2 SHA512 7ad72be7a47592aa9b911c711b8a43d8b15ff3c56cad04b8e3471d307429005b8ba16633fef73f6b4ae16310065a2dd6f3c8855b42e98eab774b125ce3a28798
DIST gentoo-kernel-5.10.194-1.arm64.gpkg.tar 56422400 BLAKE2B bffee9fe5787d119b80d510de9caccf1cdeec64786ec9b3c57e93b464e75067f84a88c3eadba7568252acbb67caee35f6bda3c2de344238ee9ae1c3d04eb3fe4 SHA512 5eccc9853585260a36e36774dd2a1484baa3598177717e6a7c89f835a1bcbb80f7b1891a64f3617da3cbed65f15dc5e5ad83414a8a98ac722c2bf47848ead400
DIST gentoo-kernel-5.10.194-1.ppc64le.gpkg.tar 52838400 BLAKE2B 4d17bda0e148c6af8d222ffda023a31e700b6ef7e0acb65fb81acd01f5caf5cf516171d65f9daf03eb768be391c0818d551e9d13bce7bc7ebb0d1fb30bd23514 SHA512 af9a60b58089c77bd5e3ad72d7c8b2d0a716c6fe9346f6c98ef10e5f47e51dc6ecdea913a4e824893ee0c9d2dcec452d51fa79f8a59f44193af0fbf4274fba05
DIST gentoo-kernel-5.10.194-1.x86.gpkg.tar 53483520 BLAKE2B cff44fb57ba482e2ac358e436da2e45bc52712bcc179e0b69c53a1569c2f437d9e9b590f87b7d65392ed2071802fd3ca55ffb44eccd16d15cffe7649ed1b9213 SHA512 4a52e4a7a5b13bc1f40f76ea1a0bc348c0a2564fafe3b22e2a194b6dcf4bedd09b96d4d6b1dc0e5bc976310f0cf32b5286be0b3cb776d6cf542e172a7931cd48
DIST gentoo-kernel-5.15.127-1.amd64.gpkg.tar 69560320 BLAKE2B 3d7cd889e605f383667d3b121f50fa7a80ec7924cc07d6c5e23cc703d485f6be5d1bf79f245f4804de95c9603932e2c6bb575a7f98b6ad2573688961b75e2391 SHA512 2e1ddc7e3dc121534f6e11732bd570e0cf92580deeaf78aacd715e266e0b3dddd62494540582441376d7e037d6b8d735c7ece915aa5d112812c668ef3c4b28c3
DIST gentoo-kernel-5.15.127-1.arm64.gpkg.tar 62525440 BLAKE2B d98dad69fbb250ee49a5f41f69cc091c3fa1fa6968f7575e9b381a9437b98f09bcbe3f28b1497575aa9b0416bbcc2740c5b030582203cecf1e84d72658022dc0 SHA512 815c53bca0542e04436166fcd33e202a4edcf35d85add66d2ffb435918623c6b4e17b2ebd3bef302b7509c2c1ac71cf89f81408b52b722ce16e9c445fbd747c1
DIST gentoo-kernel-5.15.127-1.ppc64le.gpkg.tar 57108480 BLAKE2B b8dc7368a0599f1f20c177bc6a9d4df2f3f0989cec52ae00212abd9cab7582f1530be1760e25590b8670e4fc12454b19e24d2edf3cbe855ae812b6ad932a443e SHA512 36fd01948f6004817d83661a9bb39139945118c31668fa8aaa4fe2474dde588983b3f3a401a66025a91ca811cc1bc33c15b947d61e6b6c41189c18b4bf76a08b
Expand Down
127 changes: 127 additions & 0 deletions sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.194.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##*.} + 10 ))
BINPKG=${P/-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 2ae4d91

Please sign in to comment.