summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-03-09 17:14:52 +0100
committerMichał Górny <mgorny@gentoo.org>2021-03-09 17:26:01 +0100
commit5eeb21bd8650007418f9081b99151560592243cb (patch)
treef5788e2247373ff4854f08e0c1b9097e62e18024 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.4.104 (diff)
downloadgentoo-5eeb21bd8650007418f9081b99151560592243cb.tar.gz
gentoo-5eeb21bd8650007418f9081b99151560592243cb.tar.bz2
gentoo-5eeb21bd8650007418f9081b99151560592243cb.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.22
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.22.ebuild117
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 4552f5f7b318..c250390cb5f7 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-23.base.tar.xz 721640 BLAKE2B ce1bc52582180682df3a74f5fb03f
DIST genpatches-5.10-23.extras.tar.xz 1772 BLAKE2B 71ccb1fcdb038c28d8e35c5f93a3956cfd277df6cf9ee0b65a1984044bc032fc979066fb1f7cc103f3065d83b72ca2a5f6d7df76a163630127858827e1a34b6b SHA512 3854ebd16b7dc0fc3c2a5aa40bd74bdcc1be1597bd4196b488e40deeed5917c2df162c1b27079f38c3792b30de7f100e90bc9db42fcd12cdc9d3647e12c84182
DIST genpatches-5.10-24.base.tar.xz 754560 BLAKE2B 6d3afe050ca1fc8cdbaa4597249acc0798fadba3a66c14bba3e691d00eccbef3f17eac06113087628a0a973dfb64f79edcd6131a62798a08ceb3f59bbfce81e5 SHA512 b79544a7f6714bfed0368093bf42211a835afe6c2805a5bf30ba1ca046bfab50e58643f5c7d5b4453f7bda28162b6f153b0ebd385244811989db3dd3ec656dcd
DIST genpatches-5.10-24.extras.tar.xz 1772 BLAKE2B c49659f3d785406da04f773fac28fe4159dcc996941a0f9e67ef02381f3d31c548921eac82ad09c512334d2000109820319d8f84beca6ad78ba74a79b15aa82a SHA512 470b81f57a4a25697b272fd4bbdd270dd32010520139e9386bf0f2573383de81dfeeb9cc6cc036c280cb8ad9da444ae3be0306456a4210c409f9bfd4a8c2a84a
+DIST genpatches-5.10-25.base.tar.xz 765788 BLAKE2B c86796b881ee8d4d471372dc405c409e55c15fdf4b19f51ac0837e0663ec98930b85be50f60f665c28793ac8fa38df2db0877fb6152765acd36da3df2e26c182 SHA512 cbe24da6d68eb2bf3190b3559185ec37d54e623b117fa7858fcaa43eabeb001941c0db8a1b3fa817537ba930bf726f350df9ccff8e4a82d368bf8b3125ba1cc3
+DIST genpatches-5.10-25.extras.tar.xz 1772 BLAKE2B deaff4896b8ce8ea5387ea49cde3e0e1aac77f16a1f8fbc673ec3a71a3c46fccf34d65177f00023345355f09adb3bfe33d52aa046686267efb924ea1fde757c1 SHA512 cba0da17f51de2b58c2f369f4eaec3f1f05c88c7e49a12deb392a0542a02337549eb7eb960d09873d1f7fdd1c7b07be7d2fb592d64272d3fb6957ec6e0974658
DIST genpatches-5.11-3.base.tar.xz 11280 BLAKE2B 83a975b07b3e04e19b008e5a5c4f08fa551b3558b68afb800cb3c886f782a21950d5ea1029b631a6caa2658f02e7ae819e8d8c137a076470120d94deab99e524 SHA512 0a8b19f888af853e6a12aff9d6675f7a9977fef92efa19e69c79a6325fc1626efe7aa9fec8c42ee65ba29f0757b166567679a54d0351f19ea502183e92a63ac5
DIST genpatches-5.11-3.extras.tar.xz 1772 BLAKE2B 165d5928e6afc65544392186737efd1df9e1179591ef7edd85a1868971ea76016161a38a615e9e692c4515fe7fc19424a0cfd01420b5ec57a60c8d1d2d223cb7 SHA512 c74015c4e1b824c61db9e9deca6b30a839ae9a8fb5747cb6c46e2af99a9221f11bb971099554107bbfc58ea5389d96e810f9cf8e55d0bcc16a093eef941c6ec8
DIST genpatches-5.11-4.base.tar.xz 247120 BLAKE2B 64e8bb77aa399a797a9dd9726ba51a00ec43d850504680c52b9fe3ebc1277e1e2216a43719bd79b12e3267171f1031feab5adffc35bfffd87f91302b9f8714ee SHA512 9480fa377439c010f6aaae8c5ec6a512070cb30bb6171e31617dbb24ef54687d13bddf4768c5652d8e8c640d4c6b9c85fa0b434d8634d58154ee205db2c1cf28
@@ -32,6 +34,8 @@ DIST gentoo-kernel-5.10.20-1.arm64.xpak 59166505 BLAKE2B b8a591f53961753da42c1d0
DIST gentoo-kernel-5.10.20-1.x86.xpak 56974811 BLAKE2B 8d636a1af81de6f7a77235610459719c046b980103ee2c67122efb27554c20491b1febb05849d4cab97a0ceb5368449031de6b3b3e97f0cb41aca0bf372ae6a0 SHA512 ddd16c0b92bc86ac1f38eb0ed9fdfede66dfb16518e4e4bbe646c5db82a398e2ce86180e228b874cf419cbae895cfb1c2b0b11c22a499670ca516648e7f6f190
DIST gentoo-kernel-5.10.21-1.amd64.xpak 64098921 BLAKE2B 77e28d143903a6930867093d03c98834e4e38abd3bb37fbe4c0a3e57abb7bc9d08937a9128abc4bde189fe3d720796412f5e4fd8510e75adf3bcabe06e40f4a3 SHA512 0bc8efd310e008910f5c08c4faf71249c920b5a9131337e0ad48480c4093888158dba0d8dfa09c5c424b4d81acdf620ce9533bc8b23acab003bd1316f663abd3
DIST gentoo-kernel-5.10.21-1.x86.xpak 57068126 BLAKE2B 4d087cfc6e76f829f510b91fe898b7f3ee1e8e735a3eb08345d92e62c3a91a855fea5f1704c07574e6e8f56d3da499afedc83bb6cf8276abb49a878c8724687d SHA512 a62737b43fbd8607bb5a61025064d5dde7ee41c7ad4e6d017642b26a89eee584fcf8125044ae84fa8b37faf7c839edf99d47d9826611060a2bf3bd2d5d8bcf6d
+DIST gentoo-kernel-5.10.22-1.amd64.xpak 64085208 BLAKE2B 2ad4a5ac3391bf34c15a190a81772d48ca1bad6cae671a26a9dac70550b671f05512e37fa20370fb970a1796444b05c9f26b2846bbf9acb82369bd88d6766b1c SHA512 27722129bdd20babbd2a37b5b7bc0fda446d0726bf881ffddb4c6a4fde7e7427abb4f41a36943ab462416091f0414ae5e1fea5c743a3a701409f936472ab742b
+DIST gentoo-kernel-5.10.22-1.x86.xpak 57048115 BLAKE2B a07ef32fa35da33d9b5d56c66c18465e3ae89edb801763e87a2de543fdaa37722e063f64da42074baf42f26b990dfbf9e1e7d102943dc5edf791727d568d776f SHA512 f9f85ac08c1ca19715ecda74242ceaee600e2ae83aa6dfe5fa862dfceecfb0d1f16bdebbeb96bbf706555e717e4200a7de705017b62788f74bc16561d2372ac6
DIST gentoo-kernel-5.11.2-1.amd64.xpak 64830406 BLAKE2B f9c5d0591a175e497e3ff9f9c12e855e0c7db90aaf28fef5bbc695604c5745e13e3cd16001eb75216c55868497954a58738a7eca2314f077548650ae27b73620 SHA512 9a05cf8ce3218ac7e6b880624cbdc67d7fa221f0440f920de70f883a33978df08297184eeeb7a5b3c420da34ba7cb9ebc38f11c9a4979cf5d8a5c7a33e82b85a
DIST gentoo-kernel-5.11.2-1.arm64.xpak 59866719 BLAKE2B 5c8e59242ac3512488afbc1335845294f6ed6b5f7cf0674c4655689b4e93284b110295da479c14f3bd70111c5f652a2c7c641bd34b06f9d7b21bacdb3965b746 SHA512 978891967b1b2c59ca1d4e77bd7d622585532e39cdaceae087a72c6f72d57764cd9dcdcad918ddb1c2d92a42ddc9859baf532971a280cbbe7c4811acb7cc3f5c
DIST gentoo-kernel-5.11.2-1.x86.xpak 57784553 BLAKE2B 452b7e2bca5f9c83345b14f8a3e9ca54bd18e2b6f89e9d165ee3b59de8b8cd46411858a08d58546cde72180bf78c596f1ab3d595c2e5e818e2df9722101cf0b2 SHA512 9620e721c8c0e474db8861400b3109a2b26af68aafbe94975030a45f620e7f7ca5f9837d8dedfca6e97d5b4cf458ba76d34eee790268ddbcc4677d2b06e220df
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.22.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.22.ebuild
new file mode 100644
index 000000000000..550411ea18c7
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.22.ebuild
@@ -0,0 +1,117 @@
+# 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##*.} + 3 ))
+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
+ )
+ 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 ~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
+}