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.10.29.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 03bac3fbdf6c..7e7b87711ed3 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.10-30.base.tar.xz 991908 BLAKE2B 524e7e66358b3bf311f1347e6a8c8
DIST genpatches-5.10-30.extras.tar.xz 1772 BLAKE2B 7fd98f16922f7a3ea703a5dd2622152b761a47fb7da8a108281e4a9ecb37f9295347a23081b2859039b8b47049ac530d74a05358b7fdb4a8c9a97fffd8103c44 SHA512 ca23be16f47ebea149496eafb0ce9c6068a3a46be01abf9d95b5e693e5a5063e7692003bc23658269d55f923233f1124854515a3f35a94dc385410c6978e25ac
DIST genpatches-5.10-31.base.tar.xz 1031500 BLAKE2B fe484cfb72e01fc14720b118ade769fb6f74c04a8abffe1a7da73cf57a895395db7249fac2276ddd2b53bb9e087214c814547133ee84887ee889169970e9964b SHA512 749a725e9d8b942f316501151c10146ab1d8f25aca08b56d07c1096fd2d66f537b513f3b41a3f562bd2a78ff0bcdba13a453d377412d1e72dd4ca2af8c2c050d
DIST genpatches-5.10-31.extras.tar.xz 1768 BLAKE2B b81ec73dbe1aa7da5ad15985b6a753db57095233f112ce323c291862ae85641dd9d8bfe4262dc7e4e6fea701369cbfbca1df213452627d79d0e7279e26f6e426 SHA512 a01e49ea3bfd689c23ee063d6f35ef7f8ea1dc67551d1443fbc2e7bc4c2e6cb265a153c881fdf87cb8a881bee911fbd815d7509167363fadbe9d158f74d84940
+DIST genpatches-5.10-32.base.tar.xz 1038952 BLAKE2B 0414cd3c9ebb99fda1eb70204a83388d2f1439dfd0cadb2e08bfceb002a9ff34685329ea1108646cf08f8a1a1469165444baab72bede69724d2ae32f1b1c1f9c SHA512 6aa75e5481d038b8e2196c6841c88ad6f3801ceac0f5adec68e2f461d48ceaa9f6a964508adf4a8fc8720f46b71164ed5344b546677fe32f7c5e6f69dd30541d
+DIST genpatches-5.10-32.extras.tar.xz 1768 BLAKE2B 3177bae554ac8e5ff49ef98fb594ebab849be1e2b639e22bc4412140f12cbe93177553a0ed404c176891a67314db3c468852237ad7f7b7fbaf8039263a51f483 SHA512 f13419f37e72f3eefdf2d3c18ae68060c45a5f561dc4e493e331566bf718d40cb89f1a30f88d6563c8d834b781d256977a383befc0b0b397008421010aad6ad7
DIST genpatches-5.11-10.base.tar.xz 410388 BLAKE2B cd23030c9a62c45f3d59e7d071698ba00c5de7d958eac2969538c2ce3e0956a610abc6135157a60555ff8cc958be125aa43568b7d8d3f11138880c3ec1e5e0c9 SHA512 430c8f3d19b435c72207593fc748be93c4bbcc56f7662859f229a46a31f346ee89612357fd7d7657e4a6863e823221c210695cf94bbb1774cb6c596abc83c4cf
DIST genpatches-5.11-10.extras.tar.xz 1772 BLAKE2B 1b1bbea48041fe9188a2d8983d2bfb37eb98cbd45ace7e9870b03f30a5e5f5a5c5dde9b505dd4a1885408366b7a499df3ac6f46b1aa55d2861ed32c5dc69f325 SHA512 71163faa9bd807340009e65c752b29ff9848d0af7a9f77ee794de2e9db2d8d004155b0626f41953e9b25b7250bdc355a5fb2ff5dbcf947bcc48993ad4d39d67b
DIST genpatches-5.11-11.base.tar.xz 410528 BLAKE2B cdc71103e3cf40231cddb71f320c10cb2f948636fd48d1d1df66d6cd535b2f291f22a7da0db9b8fea40e64ad503abe4542506cd928409cf1ac0c8e0944a44435 SHA512 451628c197f3544438f41fd5a604d451981c4e352ea40a53b60492b6f1b57438281c00b0209064cd7a46b57a70ae307a2108549cebef8574955fe0b66d277fc9
@@ -48,6 +50,8 @@ DIST gentoo-kernel-5.10.27-1.x86.xpak 57074563 BLAKE2B ec113b1cd361f46d948004f58
DIST gentoo-kernel-5.10.28-1.amd64.xpak 64327405 BLAKE2B 85bfbebe3f8c8aa7e26559c452ac965a14405808ead2c7e622d217e4bb1f216460f82286131e4f263841451d4df4c2cc6d38867dddce3ccb4e25d230c46f0048 SHA512 9d32c7e93802b795ae95b219aa715711c6427a3013cc77c4e50494f6c7c42ab6a13ebd1e205a84834da70e02fdd31301a2f409b88f3bdcf7d89cb5f24976bbe5
DIST gentoo-kernel-5.10.28-1.arm64.xpak 59318052 BLAKE2B 3de4e208154880d34af7b8cd583a154d68606e41c9ee498e56f549928ee07a0576eb9883b7c7dfd3c786e5d55d5265f00a256686bb1a4047b4fe4ab4e5b6e697 SHA512 6397018c98d163f23b4a90489f1be74851a2e1729403d198116aa677bb7a61cbdab153ca58963203722ed90b5915be956431e27a8793580a7599f73d5fe9f90e
DIST gentoo-kernel-5.10.28-1.x86.xpak 57242375 BLAKE2B b2b67edb4057141558f15cf4a36c36805c0e4d0831627b3dc2757c2354adf1432460ea196194c89c3412f772aeb20c547d1e800e297a19422d31c23d52bbca14 SHA512 6a6fc6252a901675807c5639c5030774c3ce86f5bf9caef3f9a9154bb6dd313e4d0c43e8a11096a843fb80c714fb618f49635d2398af0ea788624de2f65539e1
+DIST gentoo-kernel-5.10.29-1.amd64.xpak 64314691 BLAKE2B dd51b610e9229390188e000a96eba3a736360ee601d5089b100f6d497bbb2bd7518ae666c8c2d45ac163a3de272f6d4168f3176a8e34f26a1258f304e20ba56d SHA512 9f81e808e66eab49d4bacde5d660ab7fe6f949270c04f136a0a337fe71bb024b73e8090ad55ebc34e8a47399d7bf01d56bb54f0cc967cfade050d83d030123f9
+DIST gentoo-kernel-5.10.29-1.x86.xpak 57248683 BLAKE2B 4b803e88b396e16b80dad57bd50fd2b4ff952a5a353992f9da69001a6356a6bf4d5e32d4a2d469338d1f9694c42b2b8fc3191a85a9e61c3d3e85e138b79e37f7 SHA512 29cfd3db63221efdf962a4387a8d27f61ce4980d582462d6238c84fea751c2196537d0bfc763daed889a89067f0b0db8b6014e343c3b2d18ac8363a29b36078b
DIST gentoo-kernel-5.11.10-1.amd64.xpak 64501303 BLAKE2B d1bd941d62520fe0a2b7156a56ba43f2123ae758804c361d3953f88ed01079a8d9925770d9f3a7485326fce555824c31fd1ac1e646f8134565228c04e36c94e9 SHA512 b54e2f095933d34c795e4a3d239c77db09fa0392db89252775d4ce7b04fc4f0e1129a45ff65f5de352dfdcb7439659ec17893d9891be69ce127858ea112b0b38
DIST gentoo-kernel-5.11.10-1.arm64.xpak 59801228 BLAKE2B 1ce4d7955ad3d32abe57ac01f008d7dd8b811fad2658c09b03069bad693d9b653262e0c69abfa65ff1ee2a2117cfc92427c644de53971fa70ce4b99fd360a28e SHA512 2375505cf7ff4ddeed3f352049fd6b041b3449e9cf021fdd8bd59d7661ac17434a75e5e3aef85134185a50ec5832b11a260ad4f4e395ab3d6db4b95664b041ab
DIST gentoo-kernel-5.11.10-1.x86.xpak 57456795 BLAKE2B 8245a1da8c783456bcaff4a5ca2ded9ffadf03d2cf858a689ee9a5003ab495461f3640bd5ac9c16bdd5f7e7dda1dacb73b512e065b2c5c7038f5422ca9df599b SHA512 af4b8126200b45faa5173bbe325469e6c0f233ff70f2da476d059ef2f92f21d2e6931313fb6d43b4cf6c47570f54b305b47595067ca3fc083b98864959f5acf1
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.29.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.29.ebuild
new file mode 100644
index 000000000000..6208453ad7c9
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.29.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/~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
+}