summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-09-12 20:22:04 +0200
committerMichał Górny <mgorny@gentoo.org>2024-09-12 20:22:04 +0200
commitd89e7fb6e6709eeaed17a66c6f73a421e844c417 (patch)
tree6545e42e1948007596ae03bf315ac1270984a7be /sys-kernel
parentsys-kernel/gentoo-kernel-bin: Bump to 6.1.110 (diff)
downloadgentoo-d89e7fb6e6709eeaed17a66c6f73a421e844c417.tar.gz
gentoo-d89e7fb6e6709eeaed17a66c6f73a421e844c417.tar.bz2
gentoo-d89e7fb6e6709eeaed17a66c6f73a421e844c417.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.167
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.167.ebuild138
2 files changed, 144 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel-bin/Manifest b/sys-kernel/gentoo-kernel-bin/Manifest
index b1ee7ebafa60..7233d0fb6ad3 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.15-175.base.tar.xz 7264676 BLAKE2B 6911fc0fcef31daa55ddeb93e12
DIST genpatches-5.15-175.extras.tar.xz 4060 BLAKE2B 1ff5b5e69f9cb0e243d03d761c430bcb04ef698199c6a68e15c9535cf58b8fc0b12703fced2fd1e884c7c7d7b948b778f633d2a5de619de9a0acee60ef7c20a7 SHA512 8925f59f2d30f07838ca111c45496d7fa0229362065fbe6643dcf6dd0998ee747a8d8ed217a63b6e77b28d8b0775872408fdf8260e6c737db3a4aade0f299041
DIST genpatches-5.15-176.base.tar.xz 7318820 BLAKE2B b7b87fa0ff1bde133cd721f87599163aa4609b3416677850fb30cf2b7afafff316bd50ba7301e658670c1abfbc81c29a0a40dbf1d8d6d2a7bd016f7a27bd9c01 SHA512 d4e5df70d7c28f0f39eea7b88fb27d76d4773ec41c52021b87cd2e84578dfb3421c641fbd212fd2f8961cb0dbb7f1e6237f13c5a3a1c348fd777eedf88b70ea2
DIST genpatches-5.15-176.extras.tar.xz 4060 BLAKE2B dbef39ba2f6c2132b27632ba2dd57f0d33704d19df5c775b2fc8371d64c7b02519443fa847d1d7e16567ae8f27ac6de6f12964b4263c81629d4cffcd77dba1e1 SHA512 850f1fe5bb8d8cbee8cde9e7f84233104955390829e0c95c0c43d27d95a4416dbc3881f590d4475d0921f88d26c98f100195a3731e6d9130d9f9f346d916bf5b
+DIST genpatches-5.15-177.base.tar.xz 7376212 BLAKE2B 4ed8e73ea307a1544b5e6ed04b202c655a2a7352e6e153ab72f70667ed362ab69991823b26f260dde5ee7774749f549953acfdbcb6d13ec1b9c4c1d3708ea8ba SHA512 628aaddbeb9fb39e8d42bc495c14dbc164b07fc023551631433e9778c718651580406d5ed8f2b67280a7c8ff4cf2467bb86eeb2b93cbea03a6fb9e0c78308098
+DIST genpatches-5.15-177.extras.tar.xz 4056 BLAKE2B 95e3b595edbe0f3f927aaf93fe28a0342b0d01bd889df73357c09856c5f937eb33d31e6753b1a4f59d3c472bb1c372a7f5f228c1a791182aa9f25c32e537860a SHA512 36f1ea35379d89f09614a94fe9a64d8de2989e72175ccc110723ee91de4ca2498203a2e6e1605cd06a5fc7469276fbb3b0478a5a17a0409e8acd6b2a053a4d38
DIST genpatches-6.1-116.base.tar.xz 5862440 BLAKE2B 57df84154c9302bfc602035d8b06ec4b8e2089e8529d8a425c6912c46ca5d7f5782e60efc1600b085a1e60f4f029376485aeeafb6890bab20901df152c18bf25 SHA512 7467a3963981f8862a0898f4baabf95d25c4bc13eb5cc41b28307d48150bb263cd34be392f6e0130e053105f385ae963b03d306268c9eec3cc0e807cd3e56a7a
DIST genpatches-6.1-116.extras.tar.xz 4060 BLAKE2B f1c06b3d9f005cf93a317e051104af5a5838dda32e7d480d67655d26afa636741053da4e3c39aae81593cc12708d829d4a8f9e167346d6b038c4b72bf70c9626 SHA512 3ff2f66f10a0158c9890ba629cd0d0bea46fbf5ff899dd4a0dbdb70c5aefb2ab0ce89c316a76441d0dc500e740f79b15568209a4f97b82a1efb0ef088ea00d36
DIST genpatches-6.1-117.base.tar.xz 5955428 BLAKE2B 92c1aeb4d98cbdfe8d83691c76e53f894e5749805bff33676263b19b67eb1315012da7ad5df5cf129406c0a0f1726dc31cdc33941eb2c27db699f04333b2729d SHA512 80fdb4aa7531a7b10bc543d8deaf2b82115f9b74112c53f787f9fcdfbf83c626390c4e81a6811874263753c74b0adc19cde44f6a54c22f6ada7e774e7a2247b1
@@ -52,6 +54,10 @@ DIST gentoo-kernel-5.15.166-1.amd64.gpkg.tar 68454400 BLAKE2B 4bc68fc85266b4e5fd
DIST gentoo-kernel-5.15.166-1.arm64.gpkg.tar 62412800 BLAKE2B 8a178f79f32f96e6a0fec5f26ff743a6c5ce7557498bd0de1bc017331bde503e7ad5fba66df4776dcdbadc11b7277a95fed0968eb1260bf5b0e42f519f3dc3fd SHA512 a6bdc223cd5f4f7cd9e5f5c379ae76bcea44bbd33d0b205a3b231ad06f59c94a474c88e8c676704cc7071fa22b02b16e66f13f6873184772fd546530bfd89024
DIST gentoo-kernel-5.15.166-1.ppc64le.gpkg.tar 56760320 BLAKE2B ed86b1564725f313d7752799c61255a3d12ad52c3bc735ea2833605913e1a8d58431997a25e2fc7644e4d333fdc7b52e43436503ef02c4706aae59b7873691dc SHA512 7c81840fa097da1bbe382d3a68933ebd3b5f0b9af1e0906e9bd97ee8022230ed35d2a6d3b1ee49a269498593850dd72d08a9a4ec8d0f22862c3a26fd2c13b8b4
DIST gentoo-kernel-5.15.166-1.x86.gpkg.tar 58613760 BLAKE2B ab231cde72d50f8831927ca3ebf6867de409a2c09922f53949edea9250fb618ea74c1396de19d741d3453f3daf99added66d69c3115d612869eae9c39c61a963 SHA512 ffb6044df26c101d32ae28dceb73a19945d194f04344af522807b4f298a086808eb2d171e6b9a9ca97e87cbb88ff739525ac7a88bbdc4a39a21d737b125a5686
+DIST gentoo-kernel-5.15.167-1.amd64.gpkg.tar 68454400 BLAKE2B 03627247782e5241614787f80e1e60daa0182545cde0b608e23d7cda8b2f09d6f996a5de7207c35bff5313ec1cca75755ce1313a9f91c87838c8d0aa579e5246 SHA512 424e1c8c51bc9aceb6fd72eedb8a3b69aba631fcf06bfbe3c713e2c5c181fa52975966ce1565811f1f4cb37dd23e4f4c1397ac7d2214ec8bd74a3824197824f1
+DIST gentoo-kernel-5.15.167-1.arm64.gpkg.tar 62402560 BLAKE2B 119d90ee2d96de64dbb0f6164b0f206be20c213db82e468c4cb84f8135995db3398210f60173f9f574372fa662cbe48fc9ef9a78a0e3ba52598717e246fe24a2 SHA512 5474b9ecbcf70ada5fa0109f05d973382003f3350f36a852963d7def00827ddff54c5900803f7c4aeb4aa05b7a4176138da20bfe2786ac39e2eab76c4eeea5e9
+DIST gentoo-kernel-5.15.167-1.ppc64le.gpkg.tar 56750080 BLAKE2B 901833eae687f4894e843a3d23849eb0cc7cd060ecaab09640930fed694feabca8131695edb5f596bf72581deb77bc76dede18181ef9916c2df31670bf93646f SHA512 e618fc5f8eb572b9917e35ae9bc33fac1cb42bb8fee1935817ca03c4b5643779db02d283d1a2095951b8f85ec9cbada5a446d5f5f61c0cd5617eb3cbb5d8647a
+DIST gentoo-kernel-5.15.167-1.x86.gpkg.tar 58613760 BLAKE2B 5e83e2a80e6bcc5bce1e6214064d73524f503ee04ef760ce28b0c7e0dfcbc78b09ed24789a82e000333fcf2e3d33480302812c6fca1f0bf0285894e7e4fd3b31 SHA512 5e3b49331c9baddfadf237579f5168d27f2730ff2f5bcb267346b88ed1de1f23c8a37faf7bbdd4343b6fe05fc37e0f5befe987ad1cbaa58e49f94def5ef03931
DIST gentoo-kernel-6.1.106-1.amd64.gpkg.tar 72611840 BLAKE2B a47dfabcc3c75962fe95ffbfe8ce3da60e24ec7d486a9cb6409b959e20ffdf0f50f87b48869430070768f9864ccacd00cd240a5966ba51809818614ac0007829 SHA512 fe6a2dbe182206daf1846629952313557d701c14376e3f31f733472ce336fe0facc42789df2ff1df2144584784568c7ecdb595d50ee44139b3baf1e3ce885241
DIST gentoo-kernel-6.1.106-1.arm64.gpkg.tar 65546240 BLAKE2B 30848a5013d2fec5ea3ff4dcea21a66db909d66373a98ab15433fc798a3d0f106588123e4439250fbcc61b5dcaf3a71ed9687cda9da55e698ba8f5bd50d00d35 SHA512 fbdbe17606d5e8ecda6edc39784bff757dd1df89bbe4a8eb37ca8c0d94c05d15951a749ebd65351b962c4c0d042ec61bd574ef732fddbe529f47f4bd3cbdd665
DIST gentoo-kernel-6.1.106-1.ppc64le.gpkg.tar 59801600 BLAKE2B 2dfc56a168daa74e90d6608edf0f8ead05fdf6eb94bf551a3da67f9c5c77ed74ab88c94ff47026c11d0d011fde152e40e1cc0876136a3f631d6eb346dc7c22f3 SHA512 8c17f10482a7145592e314af1d1a4fe144885fd8ce339da318d422a458193762f4acc90a027e5483c590db49b57e40c6f9906bb42bd23eb8d91676ce51df4806
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.167.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.167.ebuild
new file mode 100644
index 000000000000..53b01d5e35e1
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.167.ebuild
@@ -0,0 +1,138 @@
+# Copyright 2020-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-install toolchain-funcs unpacker
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 10 ))
+BINPKG=${PF/-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}.gpkg.tar
+ -> ${BINPKG}.amd64.gpkg.tar
+ )
+ arm64? (
+ https://dev.gentoo.org/~mgorny/binpkg/arm64/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.arm64.gpkg.tar
+ )
+ ppc64? (
+ https://dev.gentoo.org/~mgorny/binpkg/ppc64le/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.ppc64le.gpkg.tar
+ )
+ x86? (
+ https://dev.gentoo.org/~mgorny/binpkg/x86/kernel/sys-kernel/gentoo-kernel/${BINPKG}.gpkg.tar
+ -> ${BINPKG}.x86.gpkg.tar
+ )
+"
+S=${WORKDIR}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel:${SLOT}
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+BDEPEND="
+ app-alternatives/bc
+ app-alternatives/lex
+ virtual/libelf
+ app-alternatives/yacc
+"
+
+QA_PREBUILT='*'
+
+KV_LOCALVERSION='-gentoo-dist'
+KPV=${PV}${KV_LOCALVERSION}
+
+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 HOSTLD="$(tc-getBUILD_LD)"
+ if type -P "${HOSTLD}.bfd" &>/dev/null; then
+ HOSTLD+=.bfd
+ fi
+ 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)"
+ HOSTLD="${HOSTLD}"
+ HOSTAR="$(tc-getBUILD_AR)"
+ HOSTCFLAGS="${BUILD_CFLAGS}"
+ HOSTLDFLAGS="${BUILD_LDFLAGS}"
+
+ CROSS_COMPILE=${CHOST}-
+ AS="$(tc-getAS)"
+ CC="$(tc-getCC)"
+ LD="${LD}"
+ AR="$(tc-getAR)"
+ NM="$(tc-getNM)"
+ STRIP="$(tc-getSTRIP)"
+ OBJCOPY="$(tc-getOBJCOPY)"
+ OBJDUMP="$(tc-getOBJDUMP)"
+ READELF="$(tc-getREADELF)"
+
+ # we need to pass it to override colliding Gentoo envvar
+ ARCH="$(tc-arch-kernel)"
+
+ O="${WORKDIR}"/modprep
+ )
+
+ mkdir modprep || die
+ cp "${BINPKG}/image/usr/src/linux-${KPV}/.config" modprep/ || die
+ emake -C "${MY_P}" "${makeargs[@]}" modules_prepare
+}
+
+src_test() {
+ kernel-install_test "${KPV}" \
+ "${WORKDIR}/${BINPKG}/image/usr/src/linux-${KPV}/$(dist-kernel_get_image_path)" \
+ "${BINPKG}/image/lib/modules/${KPV}"
+}
+
+src_install() {
+ local kernel_dir="${BINPKG}/image/usr/src/linux-${KPV}"
+
+ # Overwrite the identifier in the prebuilt package
+ echo "${CATEGORY}/${PF}:${SLOT}" > "${kernel_dir}/dist-kernel" || die
+
+ mv "${BINPKG}"/image/{lib,usr} "${ED}"/ || die
+
+ # FIXME: requires proper mount-boot
+ if [[ -d ${BINPKG}/image/boot/dtbs ]]; then
+ mv "${BINPKG}"/image/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
+}