summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-11-12 21:00:32 +0100
committerMichał Górny <mgorny@gentoo.org>2021-11-12 21:03:44 +0100
commit94945b5b2d5bc80b4c33d9ba644c6506c76197de (patch)
tree1b302d1a325caa8732b6bf74a195e8a465f274d8 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.15.2 (diff)
downloadgentoo-94945b5b2d5bc80b4c33d9ba644c6506c76197de.tar.gz
gentoo-94945b5b2d5bc80b4c33d9ba644c6506c76197de.tar.bz2
gentoo-94945b5b2d5bc80b4c33d9ba644c6506c76197de.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.14.18
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.14.18.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 52e564c75d86..1531a5a8d2ae 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -18,6 +18,8 @@ DIST genpatches-5.14-17.base.tar.xz 622212 BLAKE2B a0c5bcabe08e292287b57cdbdd573
DIST genpatches-5.14-17.extras.tar.xz 3844 BLAKE2B f50d2d3e47b0e0387c68eff502be6163a167436f6e99a59a56420c1f4215cee35a892b95bcfb2b2f73261db57b52675f080e90a3f69512ba00163bef95cd8e94 SHA512 eaed5b496a124c94093d85cc23d73b345b9bc6b946656fa9e8f3d7eeff719303841f199d9d1312b4d8b69e7f55883a3c8961d3cd568c5ac48390850511c936ad
DIST genpatches-5.14-19.base.tar.xz 626596 BLAKE2B 8edc9633b2344dd484c39e12ca58b7eece9e442ea6440f7db647c9bcb11ffd72d8eca9d770fd70b82ae61bd38f58613b78be84aaefc18d3edfca7a965654aa3e SHA512 7a6b1bbc2d6badd509b1c0c1106a13eea7b76e2d11e52fd8a805d811b1014a68b6a2dafc95c128c20dfb64ac0db2b71f5b404e7392917e997c585ce5af2234f6
DIST genpatches-5.14-19.extras.tar.xz 3844 BLAKE2B 178ac464389a96c166e30e5fd16c33754722c74d7cb63f458719fdcfaa582c21d18c983cdb96747d331c1f1911ea8de16cf812efde0075eb02164201bc077be7 SHA512 132393c3e483a1142e240941439137632ed153e14b9320dcb8cbd41115781ee2874954d87463ae0c6154029f078d4b40e1ab63d52ae2f48a733f86cfce677e13
+DIST genpatches-5.14-20.base.tar.xz 634440 BLAKE2B 44ad4acf9c899d22a6f02c722ae18a21796adca21e62208fa5f70e3b131a5e3cf92ae2343e0ed7b86f6dce99bd52521acb619f6b6c603b7913c438be13f06547 SHA512 03557b7ed31a079d1e8a5cd5a917c517e68c88337d5fa61cb528bd39837cb6cdeb74f9e9648ac3a41f9ade4edb5276c94d9b56fc72131814d5fe3daf3c72f03e
+DIST genpatches-5.14-20.extras.tar.xz 3844 BLAKE2B 26b9e372ce744f8a6af8858edbdfc23be85123ba6de3d273d11ce67be3ba2bad1c4c7611039bfb41796bf49de14bd5c2769cbf49bee4cdc0bf5148d34261cd47 SHA512 c51a656e02e5438d61eddfae64c7b62277e30c9d1f8e1d563f812d484c931c37de5a04c4ed23afabde7c39e3e2844aeb25923e7cefc1a948a6617bd9c72277d3
DIST genpatches-5.15-3.base.tar.xz 9472 BLAKE2B 209b41dbff1afc55ce8a56332805019848e52d736b90806cafdf966d73f278f301ec466078b6b17c3d558e976c8ccf950bc802e365b06e412bf4f08434b7a9e8 SHA512 fc489ceea8f768cdfca365fb821e7234e7e3a9e650170e81e182b96754494f840971acd29c0902cd1ff3d192dc059755212d0618118b63cd1b62a822182bddf5
DIST genpatches-5.15-3.extras.tar.xz 3840 BLAKE2B 9fb781e2ac7afd8c56ec3af5d4dc8ba8c1577716b429b04d81cf070debd3f8762933a8388e836007ce4fff0a10be76f97e9707b6f2893f1767e105169b0a3c41 SHA512 93191bce6b2c6d029b1a703b9edc77f8f9567b791a425ad9e4be108747f398083fa9adf0a4dcc92b5b140f60fdf74ed59260ca7bd630837a88bd4645812dc94b
DIST genpatches-5.15-4.base.tar.xz 20904 BLAKE2B 01add5a35e7eb969a41239254c8a5f3a70f7ff2775e2c3b8e6c3fccf756795a11c5645c0382c03f8225a36231671570cb984382355844c080c7607dc4a5901cf SHA512 6482bbe1af3c60b065541f6cfe1eb44e4aa3ef375533397c58372ef68fd418dd1eac21d2505d78950953c833a28fe2a03105b6ee5f7128e4685d7f4f568a596b
@@ -62,6 +64,8 @@ DIST gentoo-kernel-5.14.16-1.x86.xpak 59189394 BLAKE2B 9ed0a856eeaa5a715dc0161d3
DIST gentoo-kernel-5.14.17-1.amd64.xpak 68122630 BLAKE2B dbb41103b0ae03250cb34a1b267a43068c2d8249a9d4d0637d74687c85be90e95d4841b4f752f2da7cff6f2cd7d9333b17c0e7dd21c17f986495c1803985e53d SHA512 0f0cbc76ce948279bc1d22139d34252f7ce22b9ac318a840458aacdb7f29fc1cc724eca8e7a3d987c69bc3b7387641267b0b8f2077bea0e9a35bbfcb23f8cd82
DIST gentoo-kernel-5.14.17-1.arm64.xpak 63025950 BLAKE2B 63750480efdf04c30f54230907d5f193e031582dd94c199213ccd3ced454359f4ffaf4b514571b1c5908a4b4fc5238d45ba088f4aceef8bb3306424d4f5378b7 SHA512 29dc5b65dcd6e7e688ea6666d7eb61023f8181f485a593511cd27a82211a071ff9c52af38855fb022451c082e1d94e3cc06202685948620666e8be88287bea47
DIST gentoo-kernel-5.14.17-1.x86.xpak 59184354 BLAKE2B d00d9aaf98e69f7d5345074b54f1af2340b78a26042aa09b7cac1da6d2573f553a65a9d72428467b51a2392e678585ca1413172a3facc7260ecd0355f3468e04 SHA512 50889944c47482fe3fd3a65ac2a9b45045d313f4410e4532900b57184122ac8b8494f2bff4b3168b4f6c803a507a09bcbbf7d47892a537dd8c06b795071d7a11
+DIST gentoo-kernel-5.14.18-1.amd64.xpak 68092395 BLAKE2B bfde18b37d493f50858550b84037bf156ecf0a05b1a7e894940ecc0fca5741f95cbaa8ae59ee93cf9a0d37af88a1e42fcd74dec166334148e1025b4fd329ff63 SHA512 c491f7cc5866cd215e1baa61a48aeb463b489f209161284a88289031cba21ae56bcdef0eb54390a09468a29776dc3913522229fa0c62ed8210e56a6648f9568d
+DIST gentoo-kernel-5.14.18-1.x86.xpak 59188901 BLAKE2B 130d30b9d22ea59a1dcc78080f03cb195d6474c3b33fa648933db9459001e5ecf1b55406ff2f92d5902238ae627f596890080a769474b5a5406212169d2de68c SHA512 1def84f0cb7e5c2a560ec88a859cf9eaca5fc8c799552cb2d90ab761b52e02a2e7e41334665aa0867187b75cfc6585d730d54b8b9a1dc9424cf4e4eefc3a4f42
DIST gentoo-kernel-5.15.1-1.amd64.xpak 68887176 BLAKE2B b431ba6e360cb987f6f72ec643762ffa9e77997c9eec3713be51105e362ececcc338410630383070c72b8a41a06b1660e414d41349e3dea0c6a9f2ce80383200 SHA512 80785b528d89c71c6e9ac4af3806c117025e6d21ff6bb5433fcbb1132c83341a9ef3cd6aa7914088a0f2d353f485d681d0311fa46fbdd0faaedb856e0cd03bd7
DIST gentoo-kernel-5.15.1-1.x86.xpak 59745113 BLAKE2B a21641e1d691abbfd6a70b0f1b40d75480c43ba2a9625ce62945eae5685f39da0ef92f164fa443cfd0096bb670b4e7a537f2b566218cd2deb9c41cfc7cf8afc5 SHA512 4bcb87087cc1afdf6a3d8e61546ad03c231d0d24048029b684a307e4b7bae431156f9d46f03c0e35a62e0524dc0f8e4d7146c5c8010d484814e42af3ad3f8e2b
DIST gentoo-kernel-5.15.2-1.amd64.xpak 68886163 BLAKE2B fb8c9bf94fd1560394e6683cf04396f958f1d1463cfb26849ff9fc7a51d93e9e7d2f616b9fe6464eabbc1820e3d0497d5fa4d188c119cf604057381daabf1206 SHA512 1d91f5f05ccf52b0d574583b86a82eeea8626d9c7d6ffb7121ffaf7dc71e475bf2ad4f722a9bcab38580ad315228c335679247e83502de85b8b62100fd14164b
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.18.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.18.ebuild
new file mode 100644
index 000000000000..e00d3ebb8dc1
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.18.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##*.} + 2 ))
+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
+}