summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-05-25 21:18:56 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-25 21:24:12 +0200
commit552fb3f40d1962f489bc0b0c0261dd7e7c69b83e (patch)
tree0cbda9dc2db2e72dfec2efe270ddb3b8e62ac5fe /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.4.196 (diff)
downloadgentoo-552fb3f40d1962f489bc0b0c0261dd7e7c69b83e.tar.gz
gentoo-552fb3f40d1962f489bc0b0c0261dd7e7c69b83e.tar.bz2
gentoo-552fb3f40d1962f489bc0b0c0261dd7e7c69b83e.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.118
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel-bin/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.118.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 2736f27fe2e7..51f9974020ba 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -1,5 +1,7 @@
DIST genpatches-5.10-126.base.tar.xz 3445148 BLAKE2B f21381f177a1c3de8e9be21c3fbf2b5ffd43dd12a7726fbcbec2e259a44e353fe63a98cc29b3e207d67cdf2642aaf142a69f438c395b0e928b13159e8fcc9fa0 SHA512 fce3451abb11c22afc8ab0ccfa6483ef2ba23916e2ebcd3191af775f1286716f90167a0bb835ecc0738d4e8a13326bd0644f46fbff19edbaa9df6c33fa5bafd0
DIST genpatches-5.10-126.extras.tar.xz 3868 BLAKE2B b08b05b945fef23421cf8a0f18c7b6c23e86edd4717ad80b24f4109d199373477c0bb16cb2a370a540c2d97bc99c1bb4d9feb7a9c964e9e80b9505cf51ae0ab6 SHA512 57e81535f7cbbeba031c03d0bf634035789266d1be7c7254d44a6777e554b5b6b14649c04e2a910ecc16f8e53f122b6bd0c9657cb5c9bb1fca56ab4d73f1f259
+DIST genpatches-5.10-127.base.tar.xz 3469464 BLAKE2B e14c637285530bec0187c71aedbc10d20f685f1da6a93dff79e68a5c485e67d59d67ab7e5a26931ee31ea1a9f9c79b006a7c4943a6ce04951d74872387146996 SHA512 6df4bf911eebb05b2102e3f636bca18b17181efefb0891db2734ae65b87ba3b20ea63a313368aa4752cd9fa2483263b85ef8dd2438ba50ac2cbcf681b2ff203f
+DIST genpatches-5.10-127.extras.tar.xz 3868 BLAKE2B 6a7c16cab44182ebb5262a7e419d68daa265a55ee51b3ad6a8d30ce20299090250e00bf295c30551d07bdd935acfad6753128cb0dd5f975b11fc3c31b1537689 SHA512 8bddbd6ac07595d76efce9ec9595b0da1ea1cf49735ab22ceac6d312d59a72304ea7557eca349896c6936dec060dcac3cf2a877e213e4d4d5964e330f37a05f1
DIST genpatches-5.15-45.base.tar.xz 1826632 BLAKE2B 77bb4d997b63723f677f82b91b33afd0f35367d9304051999a0daa84da26feb99fc76a61af77a5e477a5a8ded1a5c12316450563cd56b6c93a93e6df6421b107 SHA512 9435803d4dd65fa78d8e14e992681aeb016d3672b81d589b293d1cbacc024605e18429529803ba344ecae1610bb77150a7b2405cd43f00fc905e9c6babef04c1
DIST genpatches-5.15-45.extras.tar.xz 3932 BLAKE2B e2c4132995b7b39c9d135e17cd21315013cfa8b9de9b222206d9ff9a5780c4f35be294eb6d71130a9f4b9fbd9c2f31ded41c1c6dfecb2fdc4401118411a7485a SHA512 5b1cf3281df2fe24eac3827b0753c83305dd956b23351899be1dd37a89d00917c771475e3df3f9980f6b0fd210420b479c6196c7d1ea2ea9a0d711fab50cfb64
DIST genpatches-5.17-13.base.tar.xz 713196 BLAKE2B ecba47430d0aeaae2d09d586a9ea016b0b602e2005ae7bf04ffaea7967a7542660dd4bed6cbd5268f187416896c046fdcb7e1aeeccbf293012d11c7473c4d6aa SHA512 fad3e0c53a5bf450dd9dec4146233e322553e110c8b3bd93c53cdb664859aeeb3e5c861f5e04cfbd550014288b7dda9b5740e5d970c443c140c8bfe0559ab82c
@@ -12,6 +14,10 @@ DIST gentoo-kernel-5.10.117-1.amd64.xpak 65753983 BLAKE2B 1545c71484a187bc84f8bc
DIST gentoo-kernel-5.10.117-1.arm64.xpak 61048114 BLAKE2B 08e37c8b83d635b1ae888545a461ea594e2c3dddb41749b6c5a95712908900a09ba882ed6fd4c506cbffe144d14b8aad31f8e3875fd425cac28bc82b55548cac SHA512 a5b3f6fd37d3ae286fb352b125589c56dd2cc32eb92c8e4898189a717fad72725c625ae8eaf17c256fe1bfcce2243687c71f65eb5504853045be4486980cb00f
DIST gentoo-kernel-5.10.117-1.ppc64le.xpak 55790781 BLAKE2B 6ca8b20f665b9d459524ac468fdde6f270d51c0148765d4adf194529323254e3813a9914bed797e6c4e33f110682f9a65bb3eb353dc391e4d8b23c49c71858a1 SHA512 db9e26a582bb14611b19aa867cfbbfe974df076107a11833e72a9c2c4ad6e3fe33c32d5b4d26c823a1ff4fe42382c5b4e0f139341b6d3fc030d048d8cdd39c8c
DIST gentoo-kernel-5.10.117-1.x86.xpak 57398780 BLAKE2B 68ae90f9354cc4e4c3aab93a9df55b2abfc239cd8fce4f345584b2784e57d8d1fa43560eb6f4e25fc7c51750dc3eff5f7a4e95cc974f8bbf01d15ee3f7d9892a SHA512 a2c1610acbb1346cb69bac9119400f8d45a1d84b5c12c68134bb5277fc67f9a100ba6e45ddf8a28335a9177f6141120c57a9e3d409adf9f3b3260c3ca18ee291
+DIST gentoo-kernel-5.10.118-1.amd64.xpak 65760199 BLAKE2B cd034b1a1e4b78b9b0ad52f2968a0461ad1f18317c398cdfb87a0528fac9f6980c129653103012a56f352d3253349fc6cdfbf234de404720f822eb7ddf532d48 SHA512 e95bf5b5153bca77f4d2c9e31a7f471133ece93230d9f196fc27a6d0700b669b72a4fe53392928aa5a673e188c32cadaa80b328a483dd6c5c9918a2fd743d077
+DIST gentoo-kernel-5.10.118-1.arm64.xpak 61094230 BLAKE2B ba60fa527b67ee2d0d93b408dbf38cfc6b51b921b38ce1be150bad48d60fa03c801e73059df302a017602f1809bdc77f6cd73b2f530486a9c524b50946db10a7 SHA512 bf3895e4cc5ad9ba054a8a12ca0afe3c69d63fe048d8f73ccb6672d705a633e7e55c78f94a31bb43a37ceab5f053f57783fb65a2786bb9358963cb004e1ad77f
+DIST gentoo-kernel-5.10.118-1.ppc64le.xpak 55780294 BLAKE2B a032cd3bab92d582ce8c169361603059acf1d5dca059dfa565560295a15b70e3479fa3f16db31d31d6bf3e7ac0f78b560a6d82439ad8365529e4c46de6ee5810 SHA512 d2bee46bc0fa73f907648c40ffbff70559892054c35f7a0095729bc4c08000411ba84faa5ad67651ecffd2d8363823e7a99832e5fb75c8635e294725cf6e2c78
+DIST gentoo-kernel-5.10.118-1.x86.xpak 57399760 BLAKE2B 0fc7db31961e45812f0aefa670d902c0b8a8329c98326b1c2108144dc180d495d8dff5ae2496146b8cc715a9dff4d0e3d0739defefc21346a41e56c55b6a5e40 SHA512 1833dad4b3f8c2d57a69a80b5148ba4a3be239d29fec2f333ce587e0c1594c7487268baffc7f3e6e8de88e722b970e49eefd1c2e73183ea0f2153c6f0514de4f
DIST gentoo-kernel-5.15.41-1.amd64.xpak 69349403 BLAKE2B 37462257c705fdf3600bc45d4b6b5564346457105ae7f7ba4fb655a8a2b7ff91422063052ccf1047cf0883977d4e3407b11d0cc604b68cc9ffd500503dc1f017 SHA512 f480c67532576e5dac934aac7418e3eae3b23b9ff73645ba9243d67412897307ebbd798edc1b195112cbc5f84545915dcc8a9004754e70c4ff56b9ff94f9716c
DIST gentoo-kernel-5.15.41-1.arm64.xpak 64219270 BLAKE2B 0daf5fb63aabd71a4e37c1c8ac0f101957366ada93143355fbc4924bd67611f6c6c02cbf37eefa4524f5957c5374ce548bf754f701bdd8543112e3ae25a58c90 SHA512 d1cd5f83f7a759dc4263f3fc524e1cb01f2ac025eaa22c18ff803491a5a599c3f67ca8e06610fe1d7dff11b48f95abd599d729f53f77107b7560b2a1b4d67221
DIST gentoo-kernel-5.15.41-1.ppc64le.xpak 57887862 BLAKE2B 6311a4bcb222baeb0a9d0a4d52ee33c6b06098119e0b154ba2829fb88fe12a1085b753738ff0adaf7b4d4bda9aa119e3fa599eb2be85d3a8a3ae6da2bdf29b4d SHA512 fb2a8e31f39c7282b7b01161ba6823ed96a8662bd741e8960bdef2940302bd8354973185406f10d20df3f3a9dbb1b8b04e44d6d6ae3cf85351654c34fda3d273
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.118.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.118.ebuild
new file mode 100644
index 000000000000..da84e07f808e
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.118.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##*.} + 9 ))
+BINPKG=${P/-bin/}-1
+
+DESCRIPTION="Pre-built Linux kernel with Gentoo patches"
+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
+}