Skip to content

Commit

Permalink
sys-kernel/gentoo-kernel-bin: Bump to 5.4.168
Browse files Browse the repository at this point in the history
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
mgorny committed Dec 23, 2021
1 parent 1b5d52d commit b2d1005
Show file tree
Hide file tree
Showing 2 changed files with 131 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 @@ -14,6 +14,8 @@ DIST genpatches-5.4-170.base.tar.xz 4264172 BLAKE2B e0c911b0f78caf914d204f3925ca
DIST genpatches-5.4-170.extras.tar.xz 1788 BLAKE2B fc12d252ce429b286a59f815c7fe95a3e7910717e8782ba732c387b3916235e79d817c506927965cc9090a948a0206dd627f770750fa688e122eeddcc62d68f2 SHA512 0536a4fa513fe4d4c7f90697cf27e501605087eb6c32eb3ef6d0888d84d227c2fa0345dbec790ec273583abb4cb4d7f878ec569ebc88455fab689aedc4d53b24
DIST genpatches-5.4-171.base.tar.xz 4266980 BLAKE2B fbe50a31c7bdaa077c8f6d63884b2b2f3124d1d14d54d2aa169a48e06a6f9cf03bfbe85ee43708b078ae91190331493433e42a01ff87c5a791bee4afc2c12299 SHA512 e8e2e28f84676e9a1456480e742123e514df5716d29a9ee5d68e7992f860068e9f27367caef7118e013a5fb8b1b30f6db6ad4361397c9c55b20fa23738f77792
DIST genpatches-5.4-171.extras.tar.xz 1788 BLAKE2B af90cfac89188a1811ba38fde5f636de693e11fcab2ccbb493d74943cb6eb2f1bcacc9fc02611983abb8bc27db97096a029d4857f6ab5ec59ee1e1a2d320a95c SHA512 798e5cb1459369c8ded84f8ac993b8e60ccafd4b2e31be5a20f9c772bc2166c021713517f18a337075f7e9f3fa6c54e25be038d3f289ae334a6f868a5bf71197
DIST genpatches-5.4-172.base.tar.xz 4281140 BLAKE2B 438ad10331e709a85f1ee2a8907a982cd545579940431220f763b1f68280d007d344627b0d1cf4406e2a439b76d20497e1f4aa6d103bb5569f119bc5174c545f SHA512 faa28b056e48873b41b78b540afe7db3200020f85f1ae516f7949f3cef453eccae9b6b8631d594ba8b1dc1b4d6b55b1e9c9379c4880eb4697bed956b0217bef4
DIST genpatches-5.4-172.extras.tar.xz 1784 BLAKE2B 9d185d1ff33c56417bf9cfbe33efc6ce4b743a0ab9bdf419dbee14cde34d7c2d6d17884ace56880f75cc28a16b7e18a5e7b87f110c64bc7c84ceb81c7df85831 SHA512 cee6e49804ebc200dd7e308d2a59bfa0e381428caf69678bb6d406357a86398327a354bc2900096f82a77b47beea7fca7e5709cb390fbc1e0b7575c01d062024
DIST gentoo-kernel-5.10.85-1.amd64.xpak 65547854 BLAKE2B 4561be684b767885546ad63a7f224f8708cad3f8487d47c9aed60aa3a556276ed2b61d8783db7b45ad3ae73044c05fa360be5acd8a13f5c21e10fc37d300c814 SHA512 9103534420c493563fbd65fbbb1bbc006e0ad0e5203c6097f57e9fbf5e86046004270a3375403413e7cfc7e5dc0767949bb08e6cb6b0db1d42af9dfd577b4618
DIST gentoo-kernel-5.10.85-1.arm64.xpak 60926138 BLAKE2B a393398e4c8a27f9c62cf94d0c21fe2f61d08edb5f3a0f3514ea1be43a338785344f103fdb429feb5d2ff5772bdcd8ea88620fd762d51e2429d7995e2d6953ea SHA512 89f969392875df4f83cbb5e09061c5360d4dbe718f38d6571b71e8fc970b29ba95ae11c808e9666a632b3d3dbc3f1a3d0030b67ad60ff0661a53b81e0aa2403b
DIST gentoo-kernel-5.10.85-1.ppc64le.xpak 55898761 BLAKE2B 155df695b2894a34f9f4f571480677847b6b8214a809910fe989d5831035b2615cef60d5d3aae6d05d162a1023edb03c4182ff1a2492c8f7a2758d1c2f07e7c5 SHA512 0dbc52a568718be2245e0895730a01d21dc6f9e693df559e9c4cf21eb5a13279d5b1fa519d0580b7a113af94a1845965710f09dd5e61ab1b9ccd12afc52819af
Expand Down Expand Up @@ -45,6 +47,10 @@ DIST gentoo-kernel-5.4.167-1.amd64.xpak 61395961 BLAKE2B dac8425f781aa5e787a5192
DIST gentoo-kernel-5.4.167-1.arm64.xpak 57640524 BLAKE2B ad44513dcecafeaafb61f4b91d0ad8f8a4abe1dffb69623e7d714f89c77b68eb916d99858d67a1346138982c30484b22f7411d6be713650e9c9819e640c59b63 SHA512 dea26d146c62e480e8b4db3783492c3fbd5f2a840310402a0e86cc290d5ef930d8ad9d97e286b2ee7fe724d9c762b72b616421c92a613e075a9281ad53bc37ce
DIST gentoo-kernel-5.4.167-1.ppc64le.xpak 54938268 BLAKE2B df2d9467853a291b3ae8f2147d3afad0635f83b02d67be388072ac48a863e0bd1972ce205c54ce9a2c116d4ad27357c3fef026ec7f23df276242ec3bff3c9832 SHA512 567d6d4973f18d6e8d1e537dbb3ded57e8cd32c24c4172831855b44b7ad68bed6e4d6e91a8381738a275de758b3d1d6893eb1722d37e49aade273b67d8b24cc3
DIST gentoo-kernel-5.4.167-1.x86.xpak 53185889 BLAKE2B 116cfd0338a2e9918345704d74a10bb1ece2eaf862dc6fb6463bb7720828f462efdb8a04e41f930f7c53836a3d12b5b102a966c467b48135da75afbbc78172c2 SHA512 e1070f5056ab86b50633aeeff71e09f92be1c56c646e164dbc011b0f6f31c58c717b585ac720783bc3c188c7b5050fe67f559eca13c642c24737c743371fa040
DIST gentoo-kernel-5.4.168-1.amd64.xpak 61384671 BLAKE2B 8097b6fde83c1e607a04ad2deb91af06a29fed92a0262dcac3cff54a0f46677664a7e5eaedadc2b56b8aec58baf037c4afe2e89d9235a9325bed2177b1d16784 SHA512 a954a1dbbd5f4f600be6a9540d3de48c5ede39fe1216e278ed43180edbeab648ef62a230711912b3f4d756ec31c4b6f20c8642ff0749a8e3c70071e35983ecb4
DIST gentoo-kernel-5.4.168-1.arm64.xpak 57633627 BLAKE2B f5e6f9a4105b358b01040d947ffd32f56b7a8ee7cb121be22ca1785bfc3ebca3a75a396093f1b7e1a560931e8c8d9c15dd63f73cd8a78c9b6658360390ee6217 SHA512 707148a9f1395482d5752c1dca293056f989415ab277cd7e33bd540c75df71b42cae97c238a40dd411a168e60cbad340ac48ecb037985b3d465f1dbaaaf3b57b
DIST gentoo-kernel-5.4.168-1.ppc64le.xpak 54973828 BLAKE2B 825973a2c3e2ba373ec3085bc7dfc8a84ed2f8e8950a5a9307c9f732d1fe2defe0a9152b51334b87e36ff43ab95af9158b38d1e008fe7a34f2bf5cb1e4f05a9d SHA512 a6eabb0b08d3309d6ea0133048d6fa9d988fdf2e5e0ff2beebbc40df5c6b76256331862b499e079d3f550b0f8bd9539592cd6fb4c16a01efeaeb6aa9e8e3a7e5
DIST gentoo-kernel-5.4.168-1.x86.xpak 53207931 BLAKE2B ed769f20e40eda1b7db078d4975f7357c9fdf0efe11932527a25482351ebcde9cfd97199c20c8569463efebb52ae462e3e7304ed2e733736e1f85865391e6b58 SHA512 3284613281dee31331557c8173138f2087b76db7961df44ab48f328456a39ecb517d1cad174bfccadd741d546e4633f7d37c188ae738e024ffa68380ff021f9b
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.14.tar.xz 120669872 BLAKE2B 0047f5aaa3940dff97f4055ef544faafbbb5282128e6afe21d2f47d8dc8c395806a17016febfa050117d16f59e74b882cb8b9c5011d68f119c230d0a4d120524 SHA512 8e4f3ec3d36f774280f75dc7b004a43e09417af58f12e9c9f8348976659d4cfda7ad905f306f43fed66a27922e5c45db22e46bbfa7a0b9f365012380de3b6f64
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
Expand Down
125 changes: 125 additions & 0 deletions sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.168.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# Copyright 2020-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit kernel-install toolchain-funcs

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

DESCRIPTION="Pre-built Linux kernel with genpatches"
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}.xpak
-> ${BINPKG}.amd64.xpak
)
arm64? (
https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
-> ${BINPKG}.arm64.xpak
)
ppc64? (
https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
-> ${BINPKG}.ppc64le.xpak
)
x86? (
https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
-> ${BINPKG}.x86.xpak
)"
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
virtual/yacc"

QA_PREBUILT='*'

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

src_unpack() {
default
ebegin "Unpacking ${BINPKG}.${ARCH}.xpak"
tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH}.xpak")
eend ${?} || die "Unpacking ${BINPKG} failed"
}

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 "usr/src/linux-${KPV}/.config" modprep/ || die
emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
}

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

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

# 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 b2d1005

Please sign in to comment.