summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-02-01 23:01:59 +0100
committerMichał Górny <mgorny@gentoo.org>2022-02-01 23:03:22 +0100
commita2b744e7eb8ce3f56b8340f2266f5db5f748f755 (patch)
treed35e56011d9565c59dcb37fb857da0fd6816e2db /sys-kernel
parentdev-python/fonttools: Bump to 4.29.1 (diff)
downloadgentoo-a2b744e7eb8ce3f56b8340f2266f5db5f748f755.tar.gz
gentoo-a2b744e7eb8ce3f56b8340f2266f5db5f748f755.tar.bz2
gentoo-a2b744e7eb8ce3f56b8340f2266f5db5f748f755.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.19
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.15.19.ebuild131
2 files changed, 137 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index 8a68a7988549..5a7e41edc3cf 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -10,6 +10,8 @@ DIST genpatches-5.15-19.base.tar.xz 925776 BLAKE2B 040a1cabc9217a91e8bae89ef7878
DIST genpatches-5.15-19.extras.tar.xz 3852 BLAKE2B 9ae7ef921212fb3b67dedf9647e0ca3091382410a5bf9c7ae67539f9cac0b97f54eef1bb63279481722184bf0e64d4208928d9485f670e47f0c60e62a0bc036e SHA512 462cc99b18a41f5dc2265732d63349c17696d5ca4e360e23e50ecfe56f3b08ce7d5bb0dc1505011cd5336c16057d1f9d97c3faecb551f4eeffe4d8ca95938998
DIST genpatches-5.15-20.base.tar.xz 934800 BLAKE2B 6134e0fb2d9810d96809e5f0994361183c0a1bd188ab24ecf83f76914efba3d9341dda8ee0ba3ef4d02f2cd7c93959aa2b59aaeddb4fff6807faf2ac623e7d56 SHA512 43281972c4eadc5299bf16270021531f9c56943a907331e7c1ee270b2e26f745693d0d312c5c2487de82f4d8df164dcd1e2e132a3d3fd86866467ccfe1776703
DIST genpatches-5.15-20.extras.tar.xz 3852 BLAKE2B 277432195bcb89cffe0fcb0ab0b2f00b889fa7c39c6178d81eb7426405f1bf5b85bc2d6bf5a69e6a0e2c18431eb768d3cae116fd8523de25f720479cc860d6d6 SHA512 e565d94865328b2296fbab040a7bb70444410d478a0b361c1b3502a0d8263ee868fbb446adb5f680716bbd189ecb42519c63849d92690c7e504975a5ff43ffe5
+DIST genpatches-5.15-21.base.tar.xz 979868 BLAKE2B 217af3325d15020a43cc661746272b7756aa030d7e4e66d014f68e421b83f20fd6ad16cc036cf676b3719c118d4532b174a9f7b05aad730f22a13803fd621702 SHA512 5946fa7783d48d25b4f350815e645078e1629d3678aab048de1ec5c62066180de8db940b1b0e8db2062838fc2e06820a354278c20f60ec8da71f2ea686255c58
+DIST genpatches-5.15-21.extras.tar.xz 3876 BLAKE2B 4c07b166a474bc11502de000f1bb00d8f0c25914a7877b2a94db844c694e0e7a4c757e8a10880eff40438b97214326ba50e716070d79ce1ef7f68c65d876da39 SHA512 384a2111655d8fd78a2f6165e99be0c74b36cf90333a465a4bb4cb6cda5ba32e1d435958987094a2d1407f02df7331ff2bd4fccace4f0a6ebe0c300692598f41
DIST genpatches-5.4-177.base.tar.xz 4317444 BLAKE2B e7ad5f0a561dc50a11aa3720c3096230d8209c58a523da7f6f0fb1b0c8ed903780d74c48edc2791f8d8ba7fdc946ef0fc506d73ff3f86e9e2bfb4c05609d4456 SHA512 0e04707f1f5e85b53f425d54c74d9483d33280769d1cdd5122e34d19dfea1fcf0cf258d84579f3f169a1f620d9107a7d454970da313806c5edbad8a6d8632c9d
DIST genpatches-5.4-177.extras.tar.xz 1784 BLAKE2B e840ca0c6b2dd9399ff4f0d03e828bbb42f53528e1c13b2825c5439cbccdc36577f029caccf91690857cd6e4901cebd98cc27e2ad2d0644c7503822563f38d0c SHA512 a17abf06bb76236986b9a86f671dc60544b39fc47736aca69359e6d68699a52a3e72b1a2ebd57f78602114e9d1f5a201f37121bd6917f50c9d06e385b194cb20
DIST genpatches-5.4-178.base.tar.xz 4382260 BLAKE2B f43573bed5925ddad264a150c6bf7e769771cbb89ec56c0c07f73375c19386ebd15b538b12b89c9e18ad3592b1be038288f8bc4e8ee4365fe92c118d81e3a5a7 SHA512 26fec31e23bb0758ec4a5c5542868795172d7717dcb1323cb9a930cb9b60c860cd033836d9ef80ab327a85656f4a70a46a597ffdb8e9ad27f7431d1bd1944b31
@@ -40,6 +42,10 @@ DIST gentoo-kernel-5.15.18-1.amd64.xpak 69132656 BLAKE2B 5e94ab481497164deed411e
DIST gentoo-kernel-5.15.18-1.arm64.xpak 64082286 BLAKE2B 89b8c281c46eb0bf2a5161011fa9a6d3874be5553aa3fc659af45fba4a61a5bb02d608b3b70d3c7ebd41881dcb88ecb11fd9858d39503cba351e063aa5c35226 SHA512 c050e965c4f785bae4517f75c7e4c601bf7aa2c655ec33803ca4838b57d0169703033f2c57cacd5b5618e7a86678130ea3f73b5256a796a58bf22287f94299ca
DIST gentoo-kernel-5.15.18-1.ppc64le.xpak 57937156 BLAKE2B 36e0a5aa9c2151edaca6543ea589fbb41648d2517642299ec4f4dba8629425a4fa0c85b042865ef85b006fc3e85406ad7ddd12278bce694db6641be47727ccf2 SHA512 54812ab67c1869b01dea64891e7950b53f859fa7d24d1c63661b6c7da206376a616c77b5364b0ea7a2f46b7fb1ab98e80ab2438c7fa42dfc42beba42c63ded26
DIST gentoo-kernel-5.15.18-1.x86.xpak 59923665 BLAKE2B f574ea558955cc2b6ebf2b1e547e205becc787116b7767f21357c8af8c61370db7bbea6731c24288f8923c74603665b05c0bf29f5dbe38a106b50e590e0a5426 SHA512 a26ccdf1b97c2342422177309f27206da56d1633bdcebde2dabbe02654c594bca2ddb15ba90008897af35aac6c3b0719d1111a448bb02bc60c7ad3e3f959af30
+DIST gentoo-kernel-5.15.19-1.amd64.xpak 69117444 BLAKE2B d9ad649c62d485451faa472fcbf6f85c50af457e269cefe84d2cedc4419f0cc9582d0f538388b3653e8ea048000e8f606fc18da23ccabce34f178bf534aa5723 SHA512 2e88f25fbd8839a08df0c4c4299f24ae441783a00b2021913345fa4a04bb3888d19c4ee374a8ac6b3cf86b7c0d83a716ee52fbbf9065c168e9e98b63d61cc66e
+DIST gentoo-kernel-5.15.19-1.arm64.xpak 64076344 BLAKE2B 5778bb6d94f2f92d11c94fc5334e4150442fd52e76a3d4aba89dbfe987a8f9da9300a8e496721a922e6cfa08d5365b78586cd9a41da482bb1cb422e2f5833252 SHA512 d43c6e92a0828b15d780cfb721b52a4c767e896bfe1d8129b7fe7912cb46b14b2c8483b555771f396f6f4942cff7c980e968ee011367b2966876ea01080a4342
+DIST gentoo-kernel-5.15.19-1.ppc64le.xpak 57741601 BLAKE2B 8f1c6eddc18d0dd95bbdf81510bb15e6613b68c0e8dcdd8f77348e84a2934daed0a41ac015d6cceb2c102d0a94a57ba2a062c712a1aa69dd02ca379267f0da96 SHA512 c15b3d2feed720bde8f65d6ea58d78499618704b1e222d506eca5ff3c28ab664927ce121de4cb3b82fad862416d1c75f99b929d4f0052bec9cb39f07bfcd35a3
+DIST gentoo-kernel-5.15.19-1.x86.xpak 59902854 BLAKE2B b42961bf6daf1f3f2963d66ed3ea328c5f2ac98894d75891842dd1d4973e123c0a5d769e3370a2bef70341270381fd711cddddd84899cbf10470a0d80741c025 SHA512 efe1815c64841345dffb94a71b5b474a216ddb23041c44b26a6a909103c6e183ff57da1f32e4a125b6b95d7e7955e368088f3e32548e92d1046a58a186825442
DIST gentoo-kernel-5.4.173-1.amd64.xpak 61491991 BLAKE2B 3f675236bf895b44d790d0d57f66398a6a887b2131c456b9d9919749d239d0eb64ad3f5455b55c5292aeb2345c651d32e86ddd06f4910df585b13c3eb2e4acdf SHA512 9365ba5ad810bdacdfa9f027f366dff44ee3ea293d7106d877229c485234fc76982cc046888c83cff699261129ba1a4aca2de15ccfbd86bae0b3d44e800b9bde
DIST gentoo-kernel-5.4.173-1.arm64.xpak 57634871 BLAKE2B 2a8f8b5a9e5d7050ca931591f5d922ec34018784237fb678de9c4b365822b17eb85da9a3f4725dc36ba6550afa9720ece0c9c4ad29ad3ab475b7770f7e0d3cca SHA512 887e4bc46b2de5affd6cd318330774c9a4802053e21c4430bba205cadbd3c49083d63fb9685ddb82c24e93d55b3de8f43ebcf00d76b8a8966fd61170bc6a7459
DIST gentoo-kernel-5.4.173-1.ppc64le.xpak 54968644 BLAKE2B 3b23f23aa63b8bc0235cfb3e169a27f9226c8ccbf785361accf7906d3b1963cffbf71b5ad05146f9ba676daf8bc4ccb3d32f86c0d27ed8aa7b2fe1bd43836eaf SHA512 7312d2f633cc410d4af4fdc2706de3cd971bf012484bb226f1e47fbfec84b642293145be5d92c11f30485f38458ef81bc50147d393e1a145ebdbf0c602a55e9b
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.19.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.19.ebuild
new file mode 100644
index 000000000000..fc9dbc62cb30
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.19.ebuild
@@ -0,0 +1,131 @@
+# 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 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
+}