diff options
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/Manifest | 4 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.20.ebuild | 117 |
2 files changed, 121 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest index 5981e0d56e93..aa63587bf42e 100644 --- a/sys-kernel/gentoo-kernel-bin/Manifest +++ b/sys-kernel/gentoo-kernel-bin/Manifest @@ -24,6 +24,8 @@ DIST genpatches-5.14-20.base.tar.xz 634440 BLAKE2B 44ad4acf9c899d22a6f02c722ae18 DIST genpatches-5.14-20.extras.tar.xz 3844 BLAKE2B 26b9e372ce744f8a6af8858edbdfc23be85123ba6de3d273d11ce67be3ba2bad1c4c7611039bfb41796bf49de14bd5c2769cbf49bee4cdc0bf5148d34261cd47 SHA512 c51a656e02e5438d61eddfae64c7b62277e30c9d1f8e1d563f812d484c931c37de5a04c4ed23afabde7c39e3e2844aeb25923e7cefc1a948a6617bd9c72277d3 DIST genpatches-5.14-21.base.tar.xz 862764 BLAKE2B 9ac9818d497117fd980cf21959aaa16eba144b7b48d5f5a5f0ad33062b83a6f1a6f15174a2eff71959e31cde4bc68980bc47378b30e6b1b72b2503e4cd7b62d8 SHA512 483f4a6753d56197ab16f7ff4c793d5cc6413d87e04d848ae48c856fcb05adc1499ea0a4358806198841318497f99b49adfde991df6436b646a0106db28ba4bb DIST genpatches-5.14-21.extras.tar.xz 3840 BLAKE2B 32c192fb758d1f9c232bddfc125f2fbaf1ae268c204f1fb1c6ca5651e90b95f9a7cfecc746d7a6a54d02ff7ffd7da3b077d60f9830371c391ac5b8d4b415dfb8 SHA512 3c749cd0c4a19a3c7c26eb7e56a444e56170c5de2205085857fe9df23bdd624220a2fb531b5ce8c58b9636fa3430c6036ab860edd3c34c5ff15329abf042e2b0 +DIST genpatches-5.14-22.base.tar.xz 864000 BLAKE2B 0a2ef4aa3504d23bc2ad1047d76d705ef4fb15e15ccfc59f343bb1f817ba98940d9bcf7151cac74cb02db4e946344e43679ecfd848aca65951764ede5288ad59 SHA512 b597484d880cdcb1e8e7450c48cb5ca6a5902109182ac01725be00c264450e7e0d24e54940d3d55084383725398ee05159dc71ce7c152850a57aabbe5c26b1c7 +DIST genpatches-5.14-22.extras.tar.xz 3844 BLAKE2B d8934cf97acf49434a817afbe3260da98f3bf52c3bb93d09e510d5c90b592af25da702cb1d6cb2c4ca463428bb35b7aba248f13ae48c094544460650c0d7da6f SHA512 d33c4adac4ebdc6a122ec60b37b8e8e1b3f8b47bc6808707c4fba9d2c8d89ded193bfe0cb0929c23fd0fc82ea1cf3d11fa739555606e6313712265e84a7cf033 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 @@ -80,6 +82,8 @@ DIST gentoo-kernel-5.14.18-1.arm64.xpak 63088036 BLAKE2B 49e0b73ba0c6d2e06497b76 DIST gentoo-kernel-5.14.18-1.x86.xpak 59188901 BLAKE2B 130d30b9d22ea59a1dcc78080f03cb195d6474c3b33fa648933db9459001e5ecf1b55406ff2f92d5902238ae627f596890080a769474b5a5406212169d2de68c SHA512 1def84f0cb7e5c2a560ec88a859cf9eaca5fc8c799552cb2d90ab761b52e02a2e7e41334665aa0867187b75cfc6585d730d54b8b9a1dc9424cf4e4eefc3a4f42 DIST gentoo-kernel-5.14.19-1.amd64.xpak 68129075 BLAKE2B c931708e9f8edf2707ed5d98247485a23a8691501546620507154cf023154a4c3eedaea384a91c6dfeda5458a9eaa0a904709d06cb0c65326c3bd0ae45db7f03 SHA512 2a41317d2215c1fcb7ed2a17316a9246ffb9fa1f09d7ec3e5b99ebeb175ef8648f388dbef4fbf75b251439e94179e8373d5deeec82d9550aa9326c661fe72207 DIST gentoo-kernel-5.14.19-1.x86.xpak 59191582 BLAKE2B 3d43805e4b1bcb333e87668ca2b836087a2a51272da19cf65905d9251b7be0b1dd36464c2eba7f6b0ec068e3291a73ea8bb80ccbde3d27ed320f74d55521744a SHA512 a266d1ed04171f09102006177970a7f385cfc5409d2cbde157581e5bec6b64e4532f581c662d12472589e214714e2d7371f9adb7ef7c6d655645d57fe99edc18 +DIST gentoo-kernel-5.14.20-1.amd64.xpak 68144100 BLAKE2B fef36b61841ab6f5bea3f304c10315bfb3afb57910968e1562b5e4dd7c5cda9d1fe7529b3b140cf32ba9cb753753c6216bfb1ae4b1099477cd23a6e312a4c37c SHA512 0eb407bf5e84b132abf238c38c842745ebd3f07cd3fbdcdc35912b47389d6a4595eddaf874a2be7e0204dfe15705e299f8e1cf7a56106631e2331244be30a802 +DIST gentoo-kernel-5.14.20-1.x86.xpak 59196770 BLAKE2B 53d9544223b5a2dff33e46d63c3b02f3f05ab4b1702780d3648d6d6c770069750ab4fc96f07b55cda993bd332a977db562456f591ba2890aea786585d6793c92 SHA512 6d7cf027e366c45cacd014252f9b79ac78cdc18b450746546ebbf8506da5361262795f2921b00485a1659a5ec7bf6498e0b6d4c9c19649cb9a17498687fc73f2 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.20.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.20.ebuild new file mode 100644 index 000000000000..e00d3ebb8dc1 --- /dev/null +++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.14.20.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 +} |