summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-08-22 10:58:29 +0200
committerMichał Górny <mgorny@gentoo.org>2022-08-22 11:24:06 +0200
commit54654d9527064c01e05405e8a8a7ad84fb518aea (patch)
tree093cb5177418de6650e5986d33b770da1d05c7a0 /sys-kernel/gentoo-kernel-bin
parentvirtual/dist-kernel: Bump to 5.19.3 (diff)
downloadgentoo-54654d9527064c01e05405e8a8a7ad84fb518aea.tar.gz
gentoo-54654d9527064c01e05405e8a8a7ad84fb518aea.tar.bz2
gentoo-54654d9527064c01e05405e8a8a7ad84fb518aea.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.19.3
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/Manifest7
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.3.ebuild135
2 files changed, 142 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 99c938db2295..342feca837d7 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -20,6 +20,8 @@ DIST genpatches-5.18-22.base.tar.xz 1204144 BLAKE2B ba4067fe632a1d27f3ac63c5bccb
DIST genpatches-5.18-22.extras.tar.xz 3924 BLAKE2B 757c3a9db4b9f293a2ba903354e4ff2e922f256107a5b050fc4fdf9a0d04c5597761aa4c8c2e015da0d16af2b577521d17f437d3dd796cd0d2ccc74386141e20 SHA512 526a738627ff17c811250aa18b3e10243c0dd492822db60516bf3ce0430bc276a881548f9c6e424398ebb1da3f44270e092692332322ffa9c04457801439e774
DIST genpatches-5.18-23.base.tar.xz 1206204 BLAKE2B 12a7b9aa7d72f27e64c4cb8f5607529dcc7d535a9375768e065d97d0b70b0726271b70dfa4ea019bb42606ddfd513b70357b2bd5ad95548c9eba9f91041f27b0 SHA512 9a459e3e8cb4a3285f782516fbc176a4a73c151281bea2258f049ec0662b806eefc54cb6e9151cc968e3a9c39789062c207d514920559954db9a10b53a1c2f0e
DIST genpatches-5.18-23.extras.tar.xz 3924 BLAKE2B fad401fd783c72bd695425a106813ce8396c6d15154fc627fb456b16f6ddff1f6326f54e1399c1369b6da5e3f57da89bc9e769bcbb5d4b612465fe187145ea17 SHA512 c25a09e1e2ad091e5f8480419e921e8eede512dcc6aeb46792a92844948eea5890c5ae8d164ae9834356e00216d3978cefe5f07b046cbaa30dfd4af73a1ddaa3
+DIST genpatches-5.19-5.base.tar.xz 481392 BLAKE2B f23c98d0d5a582d29215478076c151a1b823cac82e63d8688a379c26541af78a8211424d4552fc22ae47fb5a0d1f515642237c76c38032bfa1fabf54f102e42e SHA512 a5419c772071a45ba9c6014b65f134c8b4a90305e73348046921d276a3952834b2c4ca7f85066aff0d820f499d798dd63c0ee534706c82a503e16093fd124fb8
+DIST genpatches-5.19-5.extras.tar.xz 3776 BLAKE2B 3a18b348d0048423e5e9151235a8bbc15f9d89b3c4f773072e2ecd6ee0dcb62e1a5a70408620f39a72fec0f0efa2afb7c741a407b776cf878778f87722d90c41 SHA512 5f17a8f809c62324949d495282a01dcf373e4cc2a9aaa04291e5ba253b2bfb5f8f3773d4eedd38d194f143a70af23a1c1f5067e81ab7f9a2ea60dd703df77163
DIST genpatches-5.4-208.base.tar.xz 4869104 BLAKE2B 3e9038248ddcfd22d67248e65199cca89bd2b8b3aa99aafcee63e5c294dc360c01d7d7eda809e1c18b06a9356363c575339197b2425bcafa8676cad68c17f90e SHA512 880fd09492e5cb0fa8a94e2df5fdf912be59210f1f142a456e3f80c31142e92bee3161bd77038b606616442cf3396b3961a24422de3056f72b4556d06262d3a5
DIST genpatches-5.4-208.extras.tar.xz 1812 BLAKE2B 3e5b8cae462a748eb36af66c4ebc393fc09882a1fa23cce6f82a078ea5598c23c2ecbe7029d6e2060735fe342b3a7bb5c235dcf16081bba0f05a6b88501af991 SHA512 b550dce1b6d090959eaacd523ee1be258fbf9db84309054c3cce9beb0bae710ff2e1c23f480310072fb08f7456bdf825b3ba76d57e999fc1597368df93e65677
DIST genpatches-5.4-214.base.tar.xz 4943544 BLAKE2B 5b7d27e1b520cdaff98dc9fe6ddfe102a9c09fb8a5fd36a57d5f36ebbd7639ce1a59dbeb55e71ede1129a3890318b740b24bc654716f81840d6d2e6d8a95de20 SHA512 6494bb7d1b9ef0e46fa31a164b3c807338463dcd4d8108e5a0c5d944196f1b3e1df51192f733861514a302af3eefee530b1e173dec9b6ddd3bb0120e47714fbf
@@ -70,6 +72,10 @@ DIST gentoo-kernel-5.18.19-1.amd64.xpak 72942561 BLAKE2B 0717daf1b59d2104cab1f87
DIST gentoo-kernel-5.18.19-1.arm64.xpak 65272358 BLAKE2B dcd3464d63d93e74ade936979ed4cae9e44edd2607ae252ede6f60980902d9ea222d346ef9007a391ff5f2a856062be8261c8e7480605238925228c467931028 SHA512 eff2578748b3da40320adf59db967778e3e5a31d568436ee119bea390a756c050968f7f60c7cc33c5ae270d98d31cdcc9c39fb5ce0cc1b38eda8671325669b09
DIST gentoo-kernel-5.18.19-1.ppc64le.xpak 59519114 BLAKE2B 9fbe2f5d5f7737901f23ceed8c6124d17ba6fefad96e49b2868030c089822159d857a7dd3c3aaeb4dd15a3f96a8c84afd869bf1da4f06942c7dfdf2dd70337ca SHA512 9c055379dba361cc4433a7972cf49b16f61fa3b35272449e4481e5bba0db6a098a8361b6c4df2c667618c4592da12c39eeebfed81487a4a8fe223a2c4d5ee52a
DIST gentoo-kernel-5.18.19-1.x86.xpak 62836995 BLAKE2B 2f5d390255cc4882235c03c18c706e57f5873ee7d78c92f938ed7d2ed39c024db6c175f8f4f882ecd78ffd89ebbe5652f125267fdcdc0233fb251d78cd6e3cbc SHA512 d6a2f070d57aadbf0e01f5be6b263c6145786d4deda51c1ae15b198c3a868cf0f74f5a75dcac1fada6a8eeec24ae42f0ed9faaf028df96ca22d7b659a688c706
+DIST gentoo-kernel-5.19.3-1.amd64.xpak 73538967 BLAKE2B 8222ca55e473d81423f945ea26011109422f527f1e7075a17ea1d6bf0d99e0e703ccc517b98f191d9a37e9dd32ca83825d95ebdb8a4f75afb6a918fc8ecad7fe SHA512 0d6812f3e1f71fbeefbbfcb2b317d56f6ddec2a6436de8f2b5f5bab540cb343387b288cc42cd532bf92cb67e19affa8882804ccb5d8a54b384d2d617621c7573
+DIST gentoo-kernel-5.19.3-1.arm64.xpak 66391408 BLAKE2B ab5418baa2c3baf0776865f5fc35ad9f1cf47fd2f8bd8fd765740a36ca4d40cbd23c53617a05f3a03d99d03074d792b55f929b9d26ab06d262f1e1f2823207c1 SHA512 e337b59f8bbc1e1bb687e245f7bc4a3cfab186b990cc53ddc41d4fa1dd12e7339814447b0f9d6206545a35695f1f4331c669edb185d8095d7addd3fda2488c85
+DIST gentoo-kernel-5.19.3-1.ppc64le.xpak 60043689 BLAKE2B 3fcf3acea0483b04b4abf4939102cbbf90522982a577c4fa062a28d6ba1027b78875886ae1e101a63a030c9de88b211a916365476aeeec3112bc82ca615839d6 SHA512 c61e8452d433dfe5659066ad28a54a1efcf4e5d3d0339dd321154d635073cf7913a84694d2045da33e3b357810761d650eb9d15a6b638a0fe4281391745a30f2
+DIST gentoo-kernel-5.19.3-1.x86.xpak 63401506 BLAKE2B 0570febe5bc7359eb8630471fb4281096b9fac5a288f8836288bf39fb904d70a840dd49e70f9baef4a9f3e1aa932d0e2fe7b540bd79f9ebdf126a3d03f85cf33 SHA512 2d0937c31f704e0ed81f3df2cb1c01601e9f0ff2a04c5492e1df209c7fea986815b7086fb959b81f18eb8f7697a3171fb481ca6d2c2faa6109f003c950d180a6
DIST gentoo-kernel-5.4.203-1.amd64.xpak 61567440 BLAKE2B 7cb004bf0d90e517a1636e984afb21be3408da74afcd4ccd886007dea5a221b33bde828ee8dad4e8fcf120d737be2d7ff4a0780f36643300209e69f996921112 SHA512 a79fbd6ce459265e4eda827063aee6557208c73094bf937959eb265d100a0533083e35276d6df77a8b8a7a05161b292232ac42b18b8a903232f2eb065192d0c9
DIST gentoo-kernel-5.4.203-1.arm64.xpak 57698276 BLAKE2B 2bc0a4eba7ef829a4e705706b7ce33496b8a36d33f0808bc315df45b9d7a00e6aabda71274956b484d394f3431bb22be118c9b37711bd5cc74d6d1d6dfa0027b SHA512 d4849d69a3a6134d260945721b164d74604a4b2e590d1545f7444fa9cfac4f7d8419b8d77dd586c87a52ef4bad3620810993a7161083370e2438b9723f249d37
DIST gentoo-kernel-5.4.203-1.ppc64le.xpak 55132763 BLAKE2B bfba496c86aeb1c0e0826e8222e60fa96a0c57b0b66af485c619eea277ed64fe590ffe0c7932da36de2c2f180772ec6dd5d1925bbdca3d52ec2c9e0ed0808113 SHA512 e598776a8d6cf90d6a92f12af3899a28eca53fe037906c0de5e57f5b8a128fdde98d9453b06e0796d4c4b8d27b5b211db1aa777a0f1636b4cfe73e26be96d9fc
@@ -85,4 +91,5 @@ DIST gentoo-kernel-5.4.210-1.x86.xpak 53326404 BLAKE2B 76034639128d131774462f70f
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.18.tar.xz 129790264 BLAKE2B e2745a69eb70169e90505a9318a3993046eab3020496eecde7d8352ecda0eb71a25b21becf7ce93fc593507dce7d1cd61b94ddcdf82b3094d79c0d3d48508eeb SHA512 dbbc9d1395898a498fa4947fceda1781344fa5d360240f753810daa4fa88e519833e2186c4e582a8f1836e6413e9e85f6563c7770523b704e8702d67622f98b5
+DIST linux-5.19.tar.xz 131581464 BLAKE2B 4db03a6830a3b3bbf0837e1912182a443d9a4aa8af20a12e6ec814ed708038452d3c0ccee1258cca671c464d76461536363a8adc56e9d098c9a44ae3484a297a SHA512 00313b2f9b82d2dc3fb8294007cf7d7599d254b717ed2de23c81fa7a1bbcbc2798ad286cb94e2f7f5bd54132d1d764facd90d30f79dbcc6616cc7f926adc2623
DIST linux-5.4.tar.xz 109441440 BLAKE2B 193bc4a3147e147d5529956164ec4912fad5d5c6fb07f909ff1056e57235834173194afc686993ccd785c1ff15804de0961b625f3008cca0e27493efc8f27b13 SHA512 9f60f77e8ab972b9438ac648bed17551c8491d6585a5e85f694b2eaa4c623fbc61eb18419b2656b6795eac5deec0edaa04547fc6723fbda52256bd7f3486898f
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.3.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.3.ebuild
new file mode 100644
index 000000000000..0432fc354ea2
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.19.3.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##*.} + 2 ))
+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
+}