summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-03-19 19:39:10 +0100
committerMichał Górny <mgorny@gentoo.org>2022-03-19 19:49:27 +0100
commit0b966aa15800c1a4b0c91bad1158e140386d4ea6 (patch)
treebd9c594712f810fc514234e3992ee15e9b5be519 /sys-kernel/gentoo-kernel-bin
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.107 (diff)
downloadgentoo-0b966aa15800c1a4b0c91bad1158e140386d4ea6.tar.gz
gentoo-0b966aa15800c1a4b0c91bad1158e140386d4ea6.tar.bz2
gentoo-0b966aa15800c1a4b0c91bad1158e140386d4ea6.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.4.186
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel/gentoo-kernel-bin')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.186.ebuild135
2 files changed, 141 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 8cba50fa72fb..6a44333ab395 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -36,6 +36,8 @@ DIST genpatches-5.4-188.base.tar.xz 4484468 BLAKE2B 9e6b7cc45fb779ebefc977bc3db8
DIST genpatches-5.4-188.extras.tar.xz 1812 BLAKE2B 1260faeb54391bf0fbd3aeb54bc6e551105e13c8d8ef4bc67d385e6340feb5fcdd3fc4ee90e217beb4799c04648dff1e09a311e364e47d58d8f10bf51bd66278 SHA512 5ac560ce4935e7afec19e24fd97d51b9f8574670b9a59254ddb0593234e675bf8ea858813155700599385d91a4e2fc4e5668439f1bbce3d0e35be32d6987a44f
DIST genpatches-5.4-189.base.tar.xz 4492528 BLAKE2B 9fc86ea4e71968c77f4fe705f5e01220545becc1f062a53875e4cc451a880a2482d70c1830b98ba447c77131422cd8305f2636c702737a94cda749f0927b2706 SHA512 f4c9946b88d8b61df0d267d915fa047de8774603c0e98fa6ef2cbd930e5c3d83fe4755327dce54739a580d674260ce45c3cffef9180369821f947170398a5de7
DIST genpatches-5.4-189.extras.tar.xz 1812 BLAKE2B 04e839c3c648cebfa8e15aa956670ecfd1c7a830960e7facff9015ad37c9b8ec0a85f510a559846163a277da9b669a0512d22b45b6ac7c1dfc9fdde99acbe9da SHA512 9357b36b51ffc30e92197affa4e60e0e01180c218cfdd17c91538b2ac12ca79fc534ca0b4f6a019ff3db97c8d41298fbd383d8c4c7fd0d8b1baaaac0494a330e
+DIST genpatches-5.4-190.base.tar.xz 4508904 BLAKE2B 89aa6c02b3f145a6b5efc42fc880c297e1a4f685f622d6554c3a8a3a614c980bbc3d76b7b4e57e54d98db7279cc4a979a441d1ce4a0812380a677dc99aed48db SHA512 b9955dcc6ef00928b0dfd0ee4e13c5646068c488f0b4ded998a47d73532aa6fcb615c34415eefa8f70a2a850b42fc13f0c0b753ddadece6a10737c628238af7b
+DIST genpatches-5.4-190.extras.tar.xz 1816 BLAKE2B 40fb8b5f71a95cc9696b36d49d8d59c22a0408b3ed16e50bc2661cdd65572f2d7f77845c98fac939c7c4e4a768435f16b8fa4a72a26f0e152329e82d9f9a39af SHA512 ce1b57535f747925dac1e117bf6037cd41c5ad984a3e5747baec4f6214debadf084f375742efa763db6b823309e09c6b190c01253fb9d434773ae5a7bc40e191
DIST gentoo-kernel-5.10.102-1.amd64.xpak 65642472 BLAKE2B 57453630e37da093fd7274c1da27cb866df3dbded0540166ac7816993566247c3d28f9863412a35d257a45792912311d58917adf9d4b67b4b03fdb9a2f7a7dc2 SHA512 19da61762e1784d6d122b6d823742a9d74462b3503e74a7557bf7875c20da3547aabee50d22e82477d201b62c74b59d72adf218f9a2e986f24a0116dd910d161
DIST gentoo-kernel-5.10.102-1.arm64.xpak 60930102 BLAKE2B 5807dadf3b57b68047a21245b2a8b1b4f17ec20d083d1143f583c22a1208b4d18cbd6d55526a250890e2dfc2ee512d37b9b1ab87f3a14a73d4d3f03372182a2f SHA512 8d91b3af7555b775c39d519efb27e85dbd4bec28970a7edd6b171f10089b1e1aedcad3b789d7b61985ac3966746bdfa7d71d67dc7d1c130e583b0647c0e09122
DIST gentoo-kernel-5.10.102-1.ppc64le.xpak 55656917 BLAKE2B 2aa458a0ae003394ce468a37d8ee4eca9457132dd7d00458b2b4d98a34a0b80f8147fa8530a3f44180926f2a7653f719522986d0b6d14ee574c2f3eb1fe439ba SHA512 e986ebded6cd18b4591ff05a63b81b34b6adce1d9eb5ab2d5355599cdbe508619f4bfe93a4c1202a46c7ca0ae32270de41304b49c64df88a59abdf2244d9bef9
@@ -112,6 +114,10 @@ DIST gentoo-kernel-5.4.185-1.amd64.xpak 61445114 BLAKE2B 4ebf21c0948b9c962811da8
DIST gentoo-kernel-5.4.185-1.arm64.xpak 57658156 BLAKE2B 1985c2f23353876feb23b9ddd225cc21e1915c7a56135c75b99119201902f0caba318f5507d932a14e023adc547bd05d66cae202eb49070f99aee6d0def7d96f SHA512 0bea18b340d86d7515aa5f5e17d5476d5550c7a0a4c3ff4ae937bf77ccede95f1de0e1afda1fc47d19e2c59b95ad03b678850b58bde2d33f31e981c9859054ad
DIST gentoo-kernel-5.4.185-1.ppc64le.xpak 54842628 BLAKE2B 4b356f2f5aa08ed370c9ab3bad90041018c2be1ad8a26cf25f97d244f868657963a01fb63dd0b560dc4d13cd47cf169ade5a9232a7945854fa3ea6a01d7d9301 SHA512 4043c5e7c7c28073617b10b34b404b56d75d969d32a1bb863f942a3d4dd3d398b8227cf5089f6ebb02fea29e4a687f9fe4c92451c1e2fa4b303fe291822ef1e6
DIST gentoo-kernel-5.4.185-1.x86.xpak 53204077 BLAKE2B 8994100691522a959efb6ae764f351b5635cd9f057a0da0417b6542d62e035e3497657eea6f968197dfad8f8d8179ce6f8ab39bc619db08354c586d77215c26d SHA512 36fc2161b448e6ddb2a48a322c55ecfc1dc737a31415f3c9b4c87bcbbf1d76ce2fcb5d1af38a67e08119900f87bac903a6f663b89ec2679121f9c5897de161b5
+DIST gentoo-kernel-5.4.186-1.amd64.xpak 61533730 BLAKE2B fafffb0d1d06777d3d7ea87cf4033e0dfe17a4d5cfcd48f9fa28ffd49d2ba08b30b7b11c7da8cb17f93d645321623ae87023e4273cfc03805bc2b4674139bea1 SHA512 2c9d62cb19840701d22b1fd5a13d8dd423cec64aa77415c987e53e7a54e687367e9565f92373363853c4a8b3eee0860442927d08f9df275a48483bfc35fdef4a
+DIST gentoo-kernel-5.4.186-1.arm64.xpak 57745508 BLAKE2B cb508355d3885e85a95d149af597314ad63d2b41fa73f5623572a772bf34329dfa9430fa3eaf8f6663c42b060a0aada1b0baa0eeed21c7b2bc5a765475b9e3bc SHA512 7fc0c8b16583f83f990b084ae83394d67b31c8d90a1a68e4693bbb1986c1b4914e9b35985a6e5ef2bf68d6858faee853835427c260d233d22d6475c49f8809e6
+DIST gentoo-kernel-5.4.186-1.ppc64le.xpak 54929587 BLAKE2B db1d8a7a23fa02d36a2a951c7ce3abe9163542a71794eb772aa3b0b4985954f7ffd0a21062a1248c287cec0d05eec36f76b01c7c05a86ab78c4f831c2976624d SHA512 4972e1363ff3e5044b08d57b88fdc24d7042230e616f976c2e117d32d912947560eb5f5db5b67a4f3ac9fb6cb3311131e2dcf1c98f9291a3e4964df1954eaba2
+DIST gentoo-kernel-5.4.186-1.x86.xpak 53251135 BLAKE2B 2c7915fa67a6c3a4ed19228a992508c565175ada34a68f5f8ce2fd54409ae7b686456412f788056bdaf7f2135eb83fcd459ec380bad9c4ad6c7d9be7bc73fc59 SHA512 c1126c0f5f9c64c44546b64b2704d8aa3c0d7f52f9b0cd5611f105d5cc212a01347d02d87e96d63962d6202b29f6123f4dc315f36ada76efe20d1ae18214badc
DIST linux-5.10.tar.xz 116606704 BLAKE2B b923d7b66309224f42f35f8a5fa219421b0a9362d2adacdadd8d96251f61f7230878ea297a269a7f3b3c56830f0b177e068691e1d7f88501a05653b0a13274d1 SHA512 95bc137d0cf9148da6a9d1f1a878698dc27b40f68e22c597544010a6c591ce1b256f083489d3ff45ff77753289b535135590194d88ef9f007d0ddab3d74de70e
DIST linux-5.15.tar.xz 121913744 BLAKE2B 3921274b23f7938abdf3ed9334534b4581e13d7484303d3a5280eddb038999aaa8b836666a487472d9c4a219af0f06b9fecccaf348fb5510ab8762f4ef4b7e83 SHA512 d25ad40b5bcd6a4c6042fd0fd84e196e7a58024734c3e9a484fd0d5d54a0c1d87db8a3c784eff55e43b6f021709dc685eb0efa18d2aec327e4f88a79f405705a
DIST linux-5.16.tar.xz 123114100 BLAKE2B 07a90cc640ff89e1359c06cee8c38abd33e51f9b9a89833e31a1d2750526fda4a59e8884db3c1ea63df0a37f0d3de6b5a922b014b7313d8abce20d90ac08adcb SHA512 7a257dd576bc8493595ec7d6f3c9cb6e22c772a8b2dbe735d2485c4f5c56e26a08695546e7e0f1f1cd04a533f25e829361958d4da0b98bf0ba8094dd57a85aaf
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.186.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.186.ebuild
new file mode 100644
index 000000000000..394e48bdc613
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.4.186.ebuild
@@ -0,0 +1,135 @@
+# Copyright 2020-2022 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##*.} + 4 ))
+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
+ )
+ arm64? (
+ https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.arm64.xpak
+ )
+ ppc64? (
+ https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.xpak
+ -> ${BINPKG}.ppc64le.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 ~arm64 ~ppc64 ~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
+ # ARCH=ppc64, but tarball is ppc64le. Update if we ever introduce ppc64be binpkg.
+ ebegin "Unpacking ${BINPKG}.${ARCH/%ppc64/ppc64le}.xpak"
+ tar -x < <(xz -c -d --single-stream "${DISTDIR}/${BINPKG}.${ARCH/%ppc64/ppc64le}.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
+
+ # FIXME: requires proper mount-boot
+ if [[ -d boot/dtbs ]]; then
+ mv boot "${ED}"/ || die
+ fi
+
+ # 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
+}