summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2021-08-12 18:56:10 +0200
committerMichał Górny <mgorny@gentoo.org>2021-08-12 19:04:15 +0200
commit955462191824243d931b98c4e6e91b6efb0c90ee (patch)
tree99b13806e43bc166a6b1294c78d0b7220b0de283 /sys-kernel
parentdistutils-r1.eclass: Require pyproject2setuppy >= 18 (diff)
downloadgentoo-955462191824243d931b98c4e6e91b6efb0c90ee.tar.gz
gentoo-955462191824243d931b98c4e6e91b6efb0c90ee.tar.bz2
gentoo-955462191824243d931b98c4e6e91b6efb0c90ee.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.13.10
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.13.10.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 c2be3b462b3e..5c0f96673fa3 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -16,6 +16,8 @@ DIST genpatches-5.13-10.base.tar.xz 573992 BLAKE2B f3de7462b97e0a2bcd38edd0cd797
DIST genpatches-5.13-10.extras.tar.xz 3436 BLAKE2B 325894702295cd2684027d2512a4f480fd021ea1e7c3af5f87d573ab2828283e371178a0d3d84d42409dfd079f8b77d36deb7360e1bc153b803af18c5303ae45 SHA512 49a8aeeca93b88d727e305c18cde5de517863ffb76ac6c80263697c416509d84dded656b5c2c6625986baa9440081fecaacad22bf9b38fc5c3268c4fc48625e5
DIST genpatches-5.13-11.base.tar.xz 589756 BLAKE2B 0b13c74d913e8e268f8dfaa8e51f99fef28eca19492a49156dc0e76190d22372bf2b4bc50270e3eac5f9e160a32550df1c29cf986a9bd97ea7787774ea0abd59 SHA512 3290b51ed8ecf09b055e1cd5d0cbe8faf729bf38a03626f1a90d7afafe675e3a31b1f370608d8aa34162d71ef1763456763afaf5eba6c622bbec85310e820b1e
DIST genpatches-5.13-11.extras.tar.xz 3436 BLAKE2B 52a2ffba1b76be4f31bc28b803516e07778aceb8687c6d7098dc54faac608e8f76c263d1fb42302db5f32e2554e08d5f0861bac5370ae68e56d9c62ab9b56774 SHA512 206bc1e1bc561574c0e8b75e8c70221751bb47973c90c93c0ea187fd85af951e9ac91f54981e6caf386d47bfd14d0963b6da8a8e14008a37f04c787e6ff6e62c
+DIST genpatches-5.13-12.base.tar.xz 632764 BLAKE2B b3a193373d195c18350ed1298b8bbb6eb82c066881c727f00772e5191f29458f06137c94d621abe8046d457f41c30cb30d64226f160d5a3cb538437c5dbf3ab1 SHA512 b3fadffc0520084b4811e8106cc38da7f2c99555c08ac6178e7865a5336bfa288ea5772823f2c2275c10be8d33adca11b5bb7730489d422c9c62196e4de6f25c
+DIST genpatches-5.13-12.extras.tar.xz 3476 BLAKE2B 4a2fc37b65d3b0be450245f4a69de878ae0fbbef2ae675d1cd5ecc55c9aa9a33f63ebab6492a378f3eef7911e76a83322f878f94f16fa822f186c34bfc89f3ba SHA512 07ca97618f12dc015d0ec478cf90d7cd03f4586aa380e9f6da234c229046dde07a734614d44501b9b8d72e9e2411470ad5eab60f63ae427280465fc0691f8077
DIST genpatches-5.13-6.base.tar.xz 447968 BLAKE2B afcec75958e44f3ef7da0b2ab3e2a3d9574fbacac23d028335ce241838e36355d813fb89944ab4ed45153f5317997f18e153514f877bee6a490969b75242c043 SHA512 05afae24abbd06771ecc88b8bd93e765e7c41e9ea6826510d291cb8b10387be747ac7738e3df8cbef1d7488c96fd3fcba1138a7cbe9dc7348a76b5df51c95a74
DIST genpatches-5.13-6.extras.tar.xz 3420 BLAKE2B 9ad0d2bf1b2621b328d142cd464b6de2676c8a4f0caef8ee4c5d7fa60db56d73b9056917e07ca421b02e6de1564b3d5f900299721b6b412cb145efa9bea8d60c SHA512 a7906d25d02082217bec37c435b316880e1af9922018b88569cdb4cf8c2cf5fd789bdac946100f2b1a9e0e2125a69222fc853ab1496abdd30ca00497afcb8fd8
DIST genpatches-5.13-7.base.tar.xz 481660 BLAKE2B 810b5438e39c8928ec2aca11658cba78666e3384deda7f7ae3c21ed9987fc94b8b1d0c1b802ea454978a226fb6ddc13295097a284d84c95afc060fdbad09b9b8 SHA512 237189cd9f09bf1e83f83f27ea47306881f560fca9a96ce58185bd0dde707a0c46103889bbf798742d9eff9e2c0708c08b27698e659ad1b679d07f0ebcecb061
@@ -57,6 +59,8 @@ DIST gentoo-kernel-5.10.57-1.x86.xpak 57232710 BLAKE2B 61912226342f10ef313ce3355
DIST gentoo-kernel-5.12.19-1.amd64.xpak 66346655 BLAKE2B a03cbcdcd1a90d48d7e11e988d03efa43980f4d5d8af4b74e4c81f195faa01803af45fb38f7dc1f5af7e9b5338a53bc6f34837c37f7e853c088ec6c1dc084e44 SHA512 3d7f78c488ecee2532f8a8ad61e3aa0f5e238e4cd520d29288715a3dc5c488670d7378f3dc5bc110252dff10108dfbda27a54722c6b044151999428d002b34e1
DIST gentoo-kernel-5.12.19-1.arm64.xpak 60043529 BLAKE2B 8746081847a39e1847b8e9f35fcd68565370b116d6418edf803c4cdca9d750ac8ada58c4a7fd377480a1c75b3c805864d419c02ee21675bc77ac195731385a18 SHA512 d1a8a9210a1ab3d3c1894be1fe524e64b859b0a02763feacfed1a24655540ade6c28af751b23e924fcc04fb9abd56e84c43d634ad80bbb4d5de79ed533b5ea50
DIST gentoo-kernel-5.12.19-1.x86.xpak 58076509 BLAKE2B 0e4aca91c834b23fb169bb6fabab13130de811c15f89e6341ad2a36ac230071ced6c6d7bd30be0f0f3860d09968449c1933cd33ed021213c667304070b80f9a7 SHA512 9786f106ed59661546d9f035e25c39f4c7a4a41f51afa96700867e47bab19e148e8a42c79bc3b7780967c2f82f1fef6920f220fb5fccd6f267a2c6e6a3081126
+DIST gentoo-kernel-5.13.10-1.amd64.xpak 67265148 BLAKE2B 834bbccb256b81be3baef78f53a3ab38a228c3090b3fdc93e7b95cd31877cf16f80fe63ad9448f0921cc6d36cc0508daac88b90aa1004304b6cdcd5b17198a5d SHA512 33898bf8a51fa576aa7b39dca494ec191725d5160ef6366df2deb64a11067c6403dfa320b5817b62f35bbc8c76d8bcd8f4a6844b97c27de6b3d756ed4ae05ae3
+DIST gentoo-kernel-5.13.10-1.x86.xpak 58503973 BLAKE2B 8b10972522c16da49313987b08d34a9597cac4cf4218b08e50a899b48f2806f1a3dd7e913cd2a505e415bc7d7c6daf5d0262bcc5e23a1bfc4ef41b674d2b77c2 SHA512 61b1073e12788f9086ba074dfd880695c5a73adeb1e03cb3afd5e50af60d231b107d5618d812ba6bf0158da2953b138b7d5cdedd89c6d4a6d5e116e9b49a82fb
DIST gentoo-kernel-5.13.4-1.arm64.xpak 62698454 BLAKE2B 110da7beab919c6a3c95cae947afa030cb4aa9483fbe39f416a7ef391c70904f99f129089b7b7b5c197b2372cabebe751f5451b7daa7544153e8cb6c7c2dcb3b SHA512 e8b7a6250fbb9b71af6eb58926d7127bf48df1dc1cd669089723c3b9641dc71df15072b3e973a6d75ec053cbe0b7aad4bfa8da67544f564fe095a93fbc35e5c6
DIST gentoo-kernel-5.13.4-2.amd64.xpak 67284746 BLAKE2B 945d5bb6271142f32f421702969ebffe70ca5232f54bd8a1b48a559971510eb623e7a9b803b044cd17273d27606ad37744e8fbd2812cacf46973f3152ee91939 SHA512 af4cb262af32136138754401682de9f7c781929a0a950d2453738300025b06973a3001d1f2c23496e04a3367f12e07ef897ff858ca9325de59309924c04fdc98
DIST gentoo-kernel-5.13.4-2.x86.xpak 58486426 BLAKE2B b27a59ce5344db5dd255c831a0752a6a2489611e134891d04040023dbc90d3c7bb49e27762efd0ded4ab95a35f92abc48d051d8e65dc4b620ef74bdce9a93ef0 SHA512 2375c524589c509a0025a92842497674b79b791280a115c14a85d8ea5ad97e595c83efbe91ccfe3ebec098444ad4f299d889f97edc953f8122e70251da228139
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.13.10.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.13.10.ebuild
new file mode 100644
index 000000000000..e00d3ebb8dc1
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.13.10.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
+}