summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-07-22 07:29:20 +0200
committerMichał Górny <mgorny@gentoo.org>2022-07-22 07:29:48 +0200
commit324f6723ff47c6094d5da08feee4d9866a3c3e8e (patch)
treef9b8161cebdddb6e5f0bbdfe4389306c04271bc6 /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 5.4.207 (diff)
downloadgentoo-324f6723ff47c6094d5da08feee4d9866a3c3e8e.tar.gz
gentoo-324f6723ff47c6094d5da08feee4d9866a3c3e8e.tar.bz2
gentoo-324f6723ff47c6094d5da08feee4d9866a3c3e8e.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.10.132
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.132.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 4a8df586b09d..ae9f2c35163e 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.10-139.base.tar.xz 3775368 BLAKE2B 5ac003f1346c1e9130511cdfb7e
DIST genpatches-5.10-139.extras.tar.xz 3868 BLAKE2B d755c5346ea1fdc709f830a2a61e1b2c13fd5e5d180c9c7631e62e362db9610ce741d1358dc2b8a0104a83413bef919455390fbd0464db21b6bdd24701c8e62d SHA512 89152c2be3383630b6f69715f9ffd298015dbd3f46662d0ae079017d73e49e1bd7e5256e59fd688c3b5e9a30de95a82cf885866e40e4154b4e843a87017ab7b1
DIST genpatches-5.10-140.base.tar.xz 3775232 BLAKE2B 1ea0b94e5acece92add1bfa728fab6f4252dea9bdf75696dc52afb4b9422a404fff906dceb31e3a21f6712eaca6ec61ff296d3619e257183db40e52c500e8551 SHA512 568c171f612ff5c59b8b56c2fec29fec36e05c7d35050b687d9a9d7b862d1899bff2fd505094b46969569921aeb69605fda5911883c6583f28405bae96348ad2
DIST genpatches-5.10-140.extras.tar.xz 3868 BLAKE2B c5f78c7a2c3eb68695c6e2b0810addf286c66f94f53d1953efce2f12e69b04c4b0a43932d5114dec915342594750f0c40ad74a277f198c91c6ba6e5e5c1a6544 SHA512 98af36f68c8eff7432b4969d06c0a2a0d1ea00a18d18b0dc86f360d69bba2ecb08bf59eddde1534341cfe0a5e0de09fdacfae3816d7df1f431b70fe871eea8f6
+DIST genpatches-5.10-141.base.tar.xz 3795548 BLAKE2B 42dcff42a0c56c0a16028e289c134d60b1d16c86468e2d3012a020ffdcff9ab93fc64898390cf224fa335d34e33c15526b21b6a36f756afa32e3399b540f133c SHA512 f9203a6fa905e6d79e1263df70a68cdb9541d2313dd7576eec54ba46f24d0d791639ea7d5b25fadd0d13b63b25ea499270fe84c694ec556ecf9a5e37919f8026
+DIST genpatches-5.10-141.extras.tar.xz 3868 BLAKE2B 2f2dc5299a10634e3c011457d1c40c70a8e6ffd64b38e4567193b5be25f66a8687b2fd850192adca24b938b003fe0569c8519eb6e36b557f58b775bf542d311b SHA512 a93b152ecf75984ecf0d0b56e73c19aa11df09a4b27042255c6ce771dabecffc2e3504e394478be6738cd70912f626120bde430af65acd77f17464d2e0b8fb6a
DIST genpatches-5.15-56.base.tar.xz 2245780 BLAKE2B 0f5e5d7c8a29f590598f4721307e3b1a316342cc31b8e5ab5496ed58b65470d19bed59ff40cf7b26bd4970eee04581ee8ac544eebe63c54063c161a55c828cea SHA512 0a1c4edd8f863f2c77a14cf48d79c35868ba8b2f02fb2436e1913e97c8285046ecbedc33e6faddf02a0c813e677492be0fc972e3731c733e488006602eb6119f
DIST genpatches-5.15-56.extras.tar.xz 3932 BLAKE2B 2b167a35d9dfe16a18b22318ac4597147fb25bef53a66108c2f2e4d6e6d3df1c9d4b1fd6d63ba4a8078f94f8cd69d14b359123355ba266ef72b44f7d9addca9b SHA512 ce91556981720f3718921993eb15f5af623cad8dc40a36bec6cbb0d52153fd1288bf97927daab1b1e3ccd1451d4295b109ead0160c657a00c62c2d6f25fbc09f
DIST genpatches-5.15-57.base.tar.xz 2275504 BLAKE2B 23dad9d2e9dfc1f77f6e39f8d9e68a6e3168d581136d50d53b3503278bb5e4abfc25e2f9fdab63eeed674e370bee8ae7cc5c54058f6942abaa4eeac49258d765 SHA512 b675437c320b28f4b4ee979fff5c32ea607fd795b090206b49d66fdb95fc2ca1b959fffd33b9e5241a160c2f19902efc8218f2c39eaaa312a5b4149282e08b99
@@ -48,6 +50,10 @@ DIST gentoo-kernel-5.10.131-1.amd64.xpak 65735286 BLAKE2B f04cb8efd990da345a00b0
DIST gentoo-kernel-5.10.131-1.arm64.xpak 60985988 BLAKE2B 9823058dbe704e41a4bf30419ca2bcdb8d48ef1c6195fe1fa411e47aabc03c5bbccf02c92cd1918cfd41f74a10b2a464a506a0b6c8487d3ccaa3e6281c00c2dc SHA512 741394605b86d6e002ac7d3810ba68ef6e3b18a7e05cc6bafcfa696970e5e460deb1b0ddf9137651d9f92963b0ec2f3b6bc25d41cfc643fdcac473598e3e09e6
DIST gentoo-kernel-5.10.131-1.ppc64le.xpak 55919919 BLAKE2B f6cb914f8353fa9d2515c3a05cf174c1946041bfbb57715b6e50cae633f7a9be7ea8e24dc2c6d55bee54b3f2b117df4b39c018b01815f07951be3cda94f25aeb SHA512 a77257f48fb33eab8f9256cd66e2a659d22456bc55e7b1548af5852099a53edbc76921f6eaff830ea8dd3ecad17e43d9d6c745897ca46c64b7dbb09f2f395e60
DIST gentoo-kernel-5.10.131-1.x86.xpak 57415135 BLAKE2B 069e6ca03b5a1b4abc73be71e1e4104a930be14a5ee6af6e8bfc2272b3893796ceea6ef5f67d19fbe6269f5e5d50b13c28370e9b8ae96c061029505d1928a2d9 SHA512 6a9b2dd4c0ac1654a278ee41cda8585adcb06984822f90dd08eb3fad471d22495c8abe329a151c0bc5e6eb1e20a0eea9a37cc2daa92b1b53451ba2c515fca86c
+DIST gentoo-kernel-5.10.132-1.amd64.xpak 65720757 BLAKE2B 8f8830e38f5069364fa9b6567d38c1b905d505cbb752c5a0d7faa06ddf46c90d5388dd74351b1424f8c7273fc0fd345a99e20ddd70834c696b1e4aca98a85fad SHA512 5fa6edbd8a7bf167b78cd72bb0d490d01673725fe54f22dab365cc4093d2b6e06c541a0f887e38bf37a4d681e4c5eda0afe2fb478a2b5c04c17958d74913a540
+DIST gentoo-kernel-5.10.132-1.arm64.xpak 60975546 BLAKE2B 326afe0051c1baa6cecad2a31e4573cf2b766c9e35ffa06362fec5805a8930e29ae98ed671fa2675d9df0a5db4ae78759209b7fe92cce2bbb44cf355b2df7289 SHA512 c0174ca3880881ec34c94640aa93d574cb424c1e9917071c5c9fea29700e088ea291ea4fbaef8b3734563cb1ae635dd8e31d2ec396a4ecb4c9e2fef328505cb0
+DIST gentoo-kernel-5.10.132-1.ppc64le.xpak 55945551 BLAKE2B ade557e831b4ad70a61655266804bb3da06c885f11fa61c77662564f8e3228df5877d7931f625b94bb3953ad4a68ac0714aeeda8b47d16e39c4071b3f1dfa061 SHA512 a0fc484db55bd1a91ea55f39fed363847f8d954b5bf1e4c3d2b6d272a72fe2151dc9ff42bd415b887ad9818f80516d9dc50a851f1de443ca8817a978fabbe0f5
+DIST gentoo-kernel-5.10.132-1.x86.xpak 57460765 BLAKE2B 37564772de08a9da8aeb15e4a876da003e01874f6e5ae54d576fff50768ecdd892354ef509e6bc62021fc6c524d04a79183e79396430cc69d16533b2b66957f3 SHA512 bcf8686821b8d2d48042aabc9b8e2367b937077edc718322f4bea3801a4d9f02264b5361dcb006da0b15308d7229b5819619eec4bfbfd5a84840a40c6c1bdd3c
DIST gentoo-kernel-5.15.52-1.amd64.xpak 69378739 BLAKE2B 410ce229e5392547374c5554ae09447869e7101aa4b71d95fe2fee95e4637e529c43c784d35d6e1297d1d8b0a6747f14e977480f907154b1d23ee3f571e4a9d5 SHA512 cf8c27e0ba2d7feeeb20c90f3247ea6334775bff8560c385924b7949d8f34da33d53b35d75b5978515882caea0151a30bbc43c6130320221332103ddddf4e4e7
DIST gentoo-kernel-5.15.52-1.arm64.xpak 64180081 BLAKE2B f0c4f0991e106bd70b81962b3ef2b2e4fb2bce26f80f5cfe3563c2277bb87236e7d4a2eb7685f0cfe4f7400f0e541cc8b86b7d722d5d72e8ee9afad031b36a9c SHA512 a2bc5409f92f7665350f44307c310b03beb0a2928e390d01408708b12802a9833ad7a732874d71114cb50640b31c633ba8a0de030e6ebe205f2f0bd707ad4c90
DIST gentoo-kernel-5.15.52-1.ppc64le.xpak 58183126 BLAKE2B 8fbc979f03617ee0146fd891662d244f109976c2fa142364e6ee48095072c442be2c4f46e859209fe688c6def9f7829884c1ba0db654befc4bc4f78c06771f9d SHA512 7038984aa9d4f556cdf322476b29b61ce497017291789eaf99d8b2f03d95d9c3e0899608dcc93053524f2a9415297ea89c4c6738b6add722eba8e25c375e3893
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.132.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.132.ebuild
new file mode 100644
index 000000000000..da84e07f808e
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.10.132.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
+}