summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-05-17 21:14:41 +0200
committerMichał Górny <mgorny@gentoo.org>2023-05-17 21:30:12 +0200
commit5c4f5ce1bd8989f030824df999dff557e16337ec (patch)
treea33d271da84b5df7ed0d6505dfe76f2bad0dc75c /sys-kernel/gentoo-kernel-bin
parentvirtual/dist-kernel: Bump to 5.4.243 (diff)
downloadgentoo-5c4f5ce1bd8989f030824df999dff557e16337ec.tar.gz
gentoo-5c4f5ce1bd8989f030824df999dff557e16337ec.tar.bz2
gentoo-5c4f5ce1bd8989f030824df999dff557e16337ec.zip
sys-kernel/gentoo-kernel-bin: Bump to 6.3.3
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.3.3.ebuild127
2 files changed, 133 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index f90a5eaf2da2..b5f1a7ea70e8 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -16,6 +16,8 @@ DIST genpatches-6.2-18.base.tar.xz 995956 BLAKE2B 402258df823b898522612e18c9d0c5
DIST genpatches-6.2-18.extras.tar.xz 3808 BLAKE2B 4c80c3e537e6ea6ea2a9d720127bd5a661417ec94ddb373d6301334108c9765e985723475c85dd0acadce92811b7bd1a96f68cf657a4e943f8be49bddf641eb6 SHA512 8a63c7432326af46c1d9c5e3170f3cae77a35b3c7ccf4ece155418915ee21b511e7b32e7b377976773a5e188d43eb39dc8f435de269779b5192761f21414db37
DIST genpatches-6.3-4.base.tar.xz 243812 BLAKE2B bcd9f63e6015b075a589becbb6246cb208f214f97f443a27258c103dabc2983de04283bd596c041f5c615dc7bed9d28032b4b9e1887ee4f2840dca3bb8506f9e SHA512 3e6bf8f25f7f5ea54c795cfefea83010dcbc6480a054b69ac90d3187ecdb819d19d26e3df09e8c2b9f166e4ca488062672041e7130ac7c0984c0c34e786f4982
DIST genpatches-6.3-4.extras.tar.xz 3808 BLAKE2B fdc95b7e9b191bc5eb19215cc1a381723242344a47d8e7a6ceb460d49fcbcabff2016a9ee0fde254e2461b54e145b2db2d5add045da1392fc86f1b11d2aa5c68 SHA512 f28b91dd378c42b1f170e29d851d8c7dc78b6b07243231b7b784ec596949abc8ade382025632e2999e395a28c3f38c56e2a439d5e62065af019cb25a21a29104
+DIST genpatches-6.3-5.base.tar.xz 341152 BLAKE2B 19c68c1d0d56049a511ee2d8750d977135ea23190ba6f16f5b75fce668f990f30f7f91058ecb2259e7166796c9a31e52be0e00fc2079b6a28b8b59f5570f165f SHA512 0ab9b37233031faf698a5cde904a3f10f4f0e121090145a625779872c9010f2fbd9b04223ef9ab2456a3caef22e8111fe6be68e7474e73de142609877d063939
+DIST genpatches-6.3-5.extras.tar.xz 3808 BLAKE2B 2ab3f27742dc7af2b9b6d71d4fcedfd9b87ef075e576ce09163a322600ac079475343f4eeea0567a61df3674c4a65abcf386b20f80b12cb6e7d283dcb3ed13b2 SHA512 3a3ad91bb119062538d41552ce97eae8a1f0f1f5c6e3bf1ef40010b6d543a39120d8363ed6918cea9fbbfce4bb133db2bc772c629d15ca60a6c734e332f03603
DIST gentoo-kernel-5.10.179-1.amd64.gpkg.tar 66355200 BLAKE2B 851abe8e1838f98c464c6d9f11a8217d3aa7500b387e62f41026b75e569cc686ce3564015d7d09616e33ae9e52590405715368f116a92d1779d7f0e2247fbdc6 SHA512 faf4215536ecc89c829d85c49b69cd1e31390ecfd6e24271cd53417e8d53e8df7ea2d501dbe72eab7d8ffda339d4fe0c01e479b47b845c8771d0ba672e4c8ca0
DIST gentoo-kernel-5.10.179-1.arm64.gpkg.tar 59351040 BLAKE2B 7677294b03be17da7912a49e2f68f0bd466f4617774fa0460230bd2bb85c174cd0030f37164a30f9701eb5954020d8668198778d0fc224ae6adb558871599a5a SHA512 4c8e27837eeb9f52cf3ae20effde97526689f4c17cebb4f33d6ae3eac98f1f65ee1976978796cf3beec71f6c29abe58492b11ca3de39002cda1840ed732df4ed
DIST gentoo-kernel-5.10.179-1.ppc64le.gpkg.tar 54917120 BLAKE2B 74bb13c92b7af2799e717206338ab23639184136c0e812ca7bcefbb6ba8a3d436a8ac734524fed652c666733ecfcc011382ebc61e53c669a1c5e0b2f6662d7a3 SHA512 1324cb0318de1921f0cdaa4ccf95877205a5bc13af46ce73ecb26665fe6935c89357e3cee1187a177b84f7024fe293607bb3ba79ce36105f4a081add41ea16a7
@@ -52,6 +54,10 @@ DIST gentoo-kernel-6.3.2-1.amd64.gpkg.tar 83456000 BLAKE2B c5ca1eb553ab5aa6bdbde
DIST gentoo-kernel-6.3.2-1.arm64.gpkg.tar 72386560 BLAKE2B e4c5e8b6b9783f788b2bbd7123c901c556d8fc9c9da8f6ae77427945bf1defa479a4ce363f08982cad0e6ea6ec0d001da664592c9dfa2d32dd8f515ec2764e8c SHA512 387f38873ea33be4f2446f31b5fe140537eba3e66b91f5823f06f23951b5ad78b2b6a292abb20b543d41b41e7d73dc6eab334b40da5a4dbcf0aa7ba71d955798
DIST gentoo-kernel-6.3.2-1.ppc64le.gpkg.tar 64276480 BLAKE2B 2f980ae41e25f9c71360d796da2bc70240c2907046eef74b9b5faf7bf69c2297881234ee063abbd6fa5d470ddaca1593dcc941aa95a1786f6363210ee266f0da SHA512 6bd6a413dbbe01f511f2442d93032ac558ec5facb4eefe06ac45b681bbbc2f20764d2f442798eec32e719359f4ac44f6400dfa2d4698ff89c8845db06cc49862
DIST gentoo-kernel-6.3.2-1.x86.gpkg.tar 67020800 BLAKE2B 620a7e5fa0a8b0108b0b59bc520728faad0b45afc6d2f0096fa0afc577162fb282af928736b8c67c5bec41d19ca8049951cd55cd7e37892c62e6c904ef679024 SHA512 283d9e10050661c35baf1e7db9295273a821e5337aed2de2929a35f3c1182872cc72d9b1f762222053031cd39202d0ff867b00bb4736dbc516b04e3c4bea3867
+DIST gentoo-kernel-6.3.3-1.amd64.gpkg.tar 83445760 BLAKE2B 85beefbdf4d4bc281ec03407e65367c57a675751547c9d0bff77219f892d311c72e09befd21d8c1c649c32e9696d50302f46dbe37a4eacd331927473dcd89c49 SHA512 477911263b233e7d3bde7d2d90b1a44c2ec93e440af0680503e8b966e8f1620a40aef1d4aaeec820a9de3da3198451dc4807d4d5587e9ac13f304934385372df
+DIST gentoo-kernel-6.3.3-1.arm64.gpkg.tar 72376320 BLAKE2B 4432c9d4a335db10c3c488b54bd5dfab9028d9a6bfbdeb8301d2a2936dc46ddc6ff8cb78ae63cfc2578a8246a3214475c0aecb3a54d731bfc44afcc192d14f5f SHA512 4e5b05cd60f547f75de0894b914f647c8d29422a6fd838f15c958da0a38d8245a61dc7c6016da4ea13c29925c39ff16a21bac67692580c2e61927b5bfdfe011a
+DIST gentoo-kernel-6.3.3-1.ppc64le.gpkg.tar 64276480 BLAKE2B 4ef9a4ef6bd9e67d73fe569cadf76079f3652612c1f8cb12450ae3582d210fa96d0a804d36d37810a3946936fa7faa69a597091e51795858a0ebc2ad6d18c57e SHA512 01e521ea9cdbf3924208b29a35fc31ed7f5c3c44635077994ad3ee94d98256431b985a77799a05b1581791290c038e837d2e83a12edf0c7aa6980deda9979cca
+DIST gentoo-kernel-6.3.3-1.x86.gpkg.tar 67020800 BLAKE2B 525166faca848992089b5fbde1b70a79a2212f6b2de2e1ef1df7b301cec3d88c92b7d2d3da476a341b9fd770efbf2f9345c3667de26dacff59f93ccb54c91eb6 SHA512 015d719b7ed3ea24654ec4a30ac6348f55e139818d0eed87b95c9a54a0bb183df1aa9054a2d6a41e34caa21eb717a34b15d8f8b54a5131bafe0ceb93b1dd698f
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
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.3.3.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.3.3.ebuild
new file mode 100644
index 000000000000..3cd8c6516903
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-6.3.3.ebuild
@@ -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##*.} + 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=":"
+ 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
+}