summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.8.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 b9831cc5d24d..b68099d7c2e1 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-5.12-7.base.tar.xz 447756 BLAKE2B c7d1f923bf45adba7a60ae56eab5e6
DIST genpatches-5.12-7.extras.tar.xz 1772 BLAKE2B 3f593739f9330a6dab17be9307c163d6ca4e39e821d79db2b6a3f88b3af8c973c713be26ebd11d155d18336f9613fa5b0c9c44e43c0674bfc4f9e0c5d7519874 SHA512 e273b619d284246670381a6a6bc5f9835a6ed7023bfae14b31783242ce504d6909a5dfb47e6a5cb5d81cb499fb897daaeb8e5d0306359a47ba22e0818d499d25
DIST genpatches-5.12-8.base.tar.xz 486256 BLAKE2B 55607b8e42132706dd6d5b2716ec252fdae5b7b2d0e4c7874aa4d9f558172f207d7597eb77030651a5c490b86eedeaf1174e9908277e989e06a4cc048b1ceecd SHA512 3651b48fd077624d7e9b9471bddfa3ed0b5d4656374b73b92192de26925a12b3c4923dba9764ff12c1fad94047b404c61f23cd2eb4d4383775eaaa0ded3e7907
DIST genpatches-5.12-8.extras.tar.xz 1772 BLAKE2B f8d4e1f2152ffa0fa46f592051faee455f0319ac11911c79d34f393109bac49d74d5c938f38037871ef777183b124066f4dfc46381c51a337fdef54589c981a0 SHA512 13ce1243c7f4b30a24c70cac04bdbe6ca29fa608638e5c47036ba4fa3e839dd0b7dd5d6cf2c628a7d86418c7eb5c520334d84b2b33e5db206c947fc5d4c6a8eb
+DIST genpatches-5.12-9.base.tar.xz 488148 BLAKE2B 9109501b6334e1856f13f4f4e82d34a3804cc00f58e7ddede2d005b27a5de419c8fe973dea126917213b223712089746f493e0600ccd6e528af8ad34b6d2248d SHA512 6db027554a275335ab74c2a59eaf5baef4d05735421e2aeacef1c4027020e60052cd4404fb2cc0d1c7be820064c98e9bc40363d6d86203823b5db10a34d81da9
+DIST genpatches-5.12-9.extras.tar.xz 1772 BLAKE2B 127b452d6bca348b7ef8b501b6a2b619cd35d3f9a02b23430e273471f1f3512edd85ad9b015af74d500cd261225bf40a2c333dd5a54fe5182f83c159e13cc9c2 SHA512 edc9edaea4db7e5b31ba565af9026f171f1f6292bc5be4589a8b61b3cd6bb4b86f304543f2e51e4279ae3391b2b5751e13c68dea94e50a2dbcb9192b79fe55c4
DIST genpatches-5.4-118.base.tar.xz 3359396 BLAKE2B 5617e29367808fd5be4d7cd95bbfa2680f07fcdf0c4b02f3a5750f715a0e728ba3c1cba82254495cf1496a53a174c6209821d57984c0810c7665ce325aad90ee SHA512 496d33188a6fa440cee3997b4367c57f46e398b35799a2f4a349f34f5947884e7c28df56c4990a48ae1c8cf46932bc86c7c1fcc9593ba7e1e786943b55373bf6
DIST genpatches-5.4-118.extras.tar.xz 1772 BLAKE2B 0da077edfd1be718e67ea06824f29b86c645597be80c9b7fd99fbab25b1638bb3e95d2a0ba3b0c6c31beddee7d6dd3fcc89c640139ff787ecdff1e7d0b5eff72 SHA512 9b99f9f6ae84f10db1dc3b75df6c4d095e6624286bd1de888efe3d063e06c9ff44dd51f18ed4d153c935ec6be48d045f8286db1a49ead4abe120e20620ac2307
DIST genpatches-5.4-123.base.tar.xz 3488228 BLAKE2B 0fe5c3056c3cb060f4921e3b7a4046e03e4e777d033619f0496eda68c645c6209fb07713a4bc2565000f9c17e6203a8bc5392fc597dd49167bb0348988b53026 SHA512 e71b8f9d622d3ea2fa8165a39a27240ac007d899d7324c60240221d7761c1287f14b631b074536460702922b8daf00bc2714358aaf7f69ac257af7d5d5b18bd1
@@ -47,6 +49,8 @@ DIST gentoo-kernel-5.12.6-1.x86.xpak 58097790 BLAKE2B 588237bb48bca688f49548b216
DIST gentoo-kernel-5.12.7-1.amd64.xpak 66367675 BLAKE2B bd18556dd73a9eaf2f73737641cc61b0833e70699da43d600ee13ad438563c475244c213618c051d90f589927dfbca43fe92c3ed6e47d87809e968282e98da83 SHA512 27696b01bb74b10af8059c0516eac4b30265358f1300baf27038298bba66779ab12a26ff03e56cffe63ea7207fa81d6bbfa9fe8302b2d5e489a51f364581853b
DIST gentoo-kernel-5.12.7-1.arm64.xpak 60178910 BLAKE2B 602a7ee863d43a0d9d40fac9a34f0a5506f154fca66e4749fae1abb380c8b841986af40cf120d6cd0f01804b6fe9f45954b3d4b884e4eedc15e60a2e8b9ad136 SHA512 c673db22709b7fbebb02aee347a71e534a1df97e324345dd9418fe687eeaca61a672740b84eda7e0531a5a3eb6d42310ff78681cb1670d9d6918b83cc82b43e6
DIST gentoo-kernel-5.12.7-1.x86.xpak 58091403 BLAKE2B d4648d72e421aa8a2e85529e83394b8ac788a17eaef70d0e19f29c3f3d2272c3dbc914f4ab66c3137c9ff6c84b76b59711670eaec9f46cc93ca932335c8b6c23 SHA512 315bfe67d1aecbd16d91364eae039598f1d7886be4e42a1808fec3668372dcbfdfdbe3ed445c20035d0a799e83e03fc0f03e43f9855e1f87c79c8be0d41ba3d9
+DIST gentoo-kernel-5.12.8-1.amd64.xpak 66367297 BLAKE2B adadd41d205de9376e4f2c7c1354e692f04050940dc2d98d0b0381c8d45b2bb6b63a79c797dc31c9b9374f6d6d1533a5e2c30a3a9c2d0a389179ae75ed732ab8 SHA512 6b9bc14c4ebf757f14cbcba1c1190fb6329891af4558c5d9705a946aa36adc514bdcbd352f044c57c2026f4619def0720106dbb0e7aaec545e894cd1bc25697a
+DIST gentoo-kernel-5.12.8-1.x86.xpak 58087343 BLAKE2B 11d7693cf474bf9b736e2c347831da8208475c1ecc09a9a974fb4512f941c98108379bbca25011a2f2dfb7a229a69a39c69e5687947744edf20e3e6d7193b0c3 SHA512 409aeefe20ed363b7b7bf944707c884c963afb7054767ba6793ad889ac3edfc698234d8b8bef2e7ab708c529178905ce7aec877e3c35e3976545b4aa0e5ab838
DIST gentoo-kernel-5.4.115-1.amd64.xpak 61381562 BLAKE2B e36468cb61a73daffd9709bc8e13eb1c11a0ec1e8f68df55c07eaa50e7538337534ca48342b019b308c99c121628f55c868a5577b2c1a5a4a67cdd72a6fea8ef SHA512 5bb1836cfd7b746aa5d8e947d6fe63c368f86a0d439e56106a77b3f3c3999d3761f238bfd76b5785035ff68869da271a2c3a4dfb5f09fb16b343e0d296ad9d60
DIST gentoo-kernel-5.4.115-1.arm64.xpak 56473345 BLAKE2B ba662f7d08629dc4fd8978de1db9f0f4400cde21802590a168f9737da03013e27c09a5ecbadcc99f482c935f20db61f9395bc006390b46bea45af305f1677620 SHA512 2ee5adf31d0a8c2bfa76cfadd5c56e818cf31cea3323c91517cd752ce4c87256c2a4f33583119977e37538669d5e2046f77fdd0b9c6adf15ccc498e7179a2088
DIST gentoo-kernel-5.4.115-1.x86.xpak 53174038 BLAKE2B 497eafe82f52493f8fb9c9703be26f6df39a8e7f5d123c8e26f46b53c6d13531674da658d965d50159e52275c1c91490136372bc14828a90164bb21aa8ccbf32 SHA512 c10f98b0160f5809aa734c9e74f189e9d55ea5e4b568a9fa6d1d269606d683dd117c193cea412d61ac9899b2690ac364a2f57a16582c58ed512386e78d029b8b
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.8.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.8.ebuild
new file mode 100644
index 000000000000..f6712def1088
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.8.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##*.} + 1 ))
+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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+ https://dev.gentoo.org/~alicef/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
+}