summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest4
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.13.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 5d93e4630094..593972584410 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -14,6 +14,8 @@ DIST genpatches-5.12-12.base.tar.xz 650292 BLAKE2B 81b5a3b95390522c328acdb390fd1
DIST genpatches-5.12-12.extras.tar.xz 3412 BLAKE2B 8fcf6c407be25db368dbb3e6be3907d3431228b5c39819dba7c67d61e5171a7ad9a86f3e117b99b9e0d626219ad9db0938c15c4b96c934b88f693a3e9661d458 SHA512 39750768e4822ea8e3f88540fc8ebad9fd721e2a3a8703102d58e30513b47069cb8a77e15e41d0f90d1d69053007bd476ce0741cd3135a428d039ebd426cdc57
DIST genpatches-5.12-13.base.tar.xz 661044 BLAKE2B f9b14633dd2895fab6d47ccf99d425b4d4c260c58bd2511c8166fc440c1cff337711b805b2ef76f787c6232115df96ec9706a3c1e65e6bc2c8a8b6dd1436dc0f SHA512 8039f529138bcc3b8a485b25a16b1f436b7756d91c018a70a6f6951dc7ce329a1f8441bad90ede66329283ee6ee314c22411e283bb76f46d0ad9e03b0a8e2b24
DIST genpatches-5.12-13.extras.tar.xz 3412 BLAKE2B abef35f4ac38e4b0ab7863376e72534c27d32f3b974f4368be54c0d9ace766749ca4334f7622b2963e1dd51a05f1262d58f7de03ed8d0a73c3f2b68a2b48ab76 SHA512 72bb3380b6382938d9b3957e4f47267616b8dd50d7a4991750b131c844c882b1d67801fd917c89444bde9d875cdfdf9d8e25bda079d5d97f42af7c2655343f61
+DIST genpatches-5.12-16.base.tar.xz 707164 BLAKE2B 05331662b6c219900a5d70aa3f9030e82cff6ca09de9645e178f5976daf8003335ac2a9163e405282096bba6057ca645f81fddda41eb7b10f1125524b4cadcc5 SHA512 dc8efddc386fc5350802edb5f95f62f61a8d3c2033a0efa0fe9450ff0ba84a65cbb4482a0de9fea6f67200fb938f3d73c27124f9bcf706485f32f25cf8e89cd9
+DIST genpatches-5.12-16.extras.tar.xz 3412 BLAKE2B d0e429e2c9e1a2733a216e57c32c73f55285edc74f801017261925f246e44148c58cd8745caa6afc9cafa9c090d01206acc3cb96dc0ab260a834a0b3dd0e8918 SHA512 24a1f8b2f2993c157fa0efe5649b7494084d925f8665a8c0727ad431da00fcc8bfa7e00ac1d2b308b1297c1c202eac687d7539999eed38f44e71a9cb94327ef6
DIST genpatches-5.4-123.base.tar.xz 3488228 BLAKE2B 0fe5c3056c3cb060f4921e3b7a4046e03e4e777d033619f0496eda68c645c6209fb07713a4bc2565000f9c17e6203a8bc5392fc597dd49167bb0348988b53026 SHA512 e71b8f9d622d3ea2fa8165a39a27240ac007d899d7324c60240221d7761c1287f14b631b074536460702922b8daf00bc2714358aaf7f69ac257af7d5d5b18bd1
DIST genpatches-5.4-123.extras.tar.xz 1772 BLAKE2B da9bc0d9513d010364506850d1c23d13e1a1ef8c4cb8d60e3430d12f4cc2ea87a74643ba9fa1a061eabdee9985b1931aab1b2587ee26bec9b2cf165b90fe83e5 SHA512 ff3b417825ba200b32abf888b6cf6e8d754526e57a30c06fbe4f961c84f67cd921b93b9848fc6b49f120b4cf8ddba9284755da73869db35327af7549d63f3cd1
DIST genpatches-5.4-128.base.tar.xz 3571424 BLAKE2B a58c2b8f20730c3357ce30cbc8b24f0609bd7ca2a8f5d37780cfbe4edb560fa49bcf1925ec40dbf61aebfe9a87be0f35ade4b999509420eb0caf5731ce649e89 SHA512 c84d65acdc4274b528306af958b0c72851fdce008c9ed6f78965ea22f09f8668b6075cfda9101b2e7a7bc55ccea64491000b1aede8cffa4ad927c7c1bb003489
@@ -43,6 +45,8 @@ DIST gentoo-kernel-5.12.11-1.x86.xpak 58070750 BLAKE2B 9e5c5e03bde9f2c707c9914d6
DIST gentoo-kernel-5.12.12-1.amd64.xpak 66332975 BLAKE2B c1ff082fa8e12ad8faab5b9a955970b894d213d3398ca41be4031dfce75f51e6e4662928494771a05501ca65cfe7ebb0dbd881f9bd225bbf457612be7dccd508 SHA512 ba42bd62c809cfa4fe7933e269e8e1ddc4c4de8ae4fe18265a262d6d97bfd654df02a4aa3135e160c3720e3bb6620d5d1b8d8b75e37a62cffabcd1e16cb74542
DIST gentoo-kernel-5.12.12-1.arm64.xpak 60233927 BLAKE2B f132efcd02a435b994591d3e1ff277c6d65f9412a0122ef17b808666f11ab97414528f40e61bcecde0b7a40c0f06c5ad5981156c17ab7997865358cd342ac640 SHA512 df7ce3a345a7eb98a2ac9750d6b1d2039886130e514d7f84b4c4f64afc3fdf3a2ccb238c203c73242a4863e7efe5b4f779de66b8054aedbc97bbc1f17e7e1616
DIST gentoo-kernel-5.12.12-1.x86.xpak 58065273 BLAKE2B 7acd669230139ee760f566df9fb94b5e5fb686dc5bd1b854a1c2516fd7f86b58d925ba883c92f27da9e6dc9c72ba219d02b1da8eafae0bcd580be132036c7c41 SHA512 306d5281684d6e16321eaf7f7ceecccdba5b5e3bca47d75298e8a61a4849af8a01dbeee6ec62c1685f2a2c7418e3922ddd0b5d216d54756e70f898b0033caee2
+DIST gentoo-kernel-5.12.13-1.amd64.xpak 66367685 BLAKE2B 5003780ce8ce24b1110a8e78b919fc3b92da0cd94f189d75a6d66f3c8a47b7b52d6943c411a1f2f4dc3f36c4004859af61f3faf0a974cc9ea14a6b2c3376e9d7 SHA512 75f3c38008cf79c789d3c890c8b7d7b00c94f94b8711967d684a7d5cfae088d88935f7fe0815603ce6d0e21f92e956c7afc40cbd7f09675dfdf9bc572a648adf
+DIST gentoo-kernel-5.12.13-1.x86.xpak 58064879 BLAKE2B d249693501238524606aa8c7544888745d45582f0ec94ab23c69c4c75e92e7d7619f7f2c3a2620f68b94d7c9605cd36baf5c927353385cd717f7b1a2acd7be1d SHA512 3b947c243ec8517b32314947b140922f5fc6c80fb75bb5eb96fe84a537baccd096088b3643ec00c25e5f87610705383736b4decf37bc4edd61ddf77b457f750f
DIST gentoo-kernel-5.4.120-1.amd64.xpak 61385726 BLAKE2B 4eda28bcfaaeb8caaa0d74c6fb37b203528ccd9853c775bcd40dc9f4698edc282a5c70602b42945b98840b1ea3d6b0d620b7726c65c83c16363e1c7542822cc1 SHA512 c36c7c5f309dea87df6af0567929f7fe09656ac49e33fd7edca62522aa45656e53d717dca5a9702b246446f25d7c3249ef0fdae8554f71cedf90339bc8b620eb
DIST gentoo-kernel-5.4.120-1.arm64.xpak 56380077 BLAKE2B d9d0a98d00b17925c852b75875ba4eb373624cd1fc35df60aa50796e81facb5067146f3008313b5776aae7b251ae6559118cb36f1480813073341dfa37de01ac SHA512 c207f79b59ae38ab58a2f7341c8d21e3fc388eb949417a033d4dfd9fb0a7acdcac4a1d5ce8528708e7a2dfba1b241f0cf03235b5c2fb9dd1c930a36a8bebd2f5
DIST gentoo-kernel-5.4.120-1.x86.xpak 53191725 BLAKE2B 816d230d0755058eb5ff090977e607b5d077ff5d49766da19416593aafaa529becb742abe6ef59f0212e64affe95e45a313559b5741257c05826be539e9a849f SHA512 86ce9f57c0b14f6edf3403fe2868d7c32f7d55ffa714ffeecd4c3830eb88633aaa71455e8a962a2ace0363981b2b820b4fab50ed10893ccf7470945c6e31a196
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.13.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.13.ebuild
new file mode 100644
index 000000000000..550411ea18c7
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.12.13.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
+}