summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-10-17 20:30:12 +0200
committerMichał Górny <mgorny@gentoo.org>2024-10-17 20:50:10 +0200
commitb1b161bb25ae596ca94bac1962e8652ab614b47e (patch)
treec1538094531fd277d28ea3c1d272304a6adc103e /sys-kernel/gentoo-kernel-bin
parentsys-kernel/gentoo-kernel-bin: Bump to 5.10.227 (diff)
downloadgentoo-b1b161bb25ae596ca94bac1962e8652ab614b47e.tar.gz
gentoo-b1b161bb25ae596ca94bac1962e8652ab614b47e.tar.bz2
gentoo-b1b161bb25ae596ca94bac1962e8652ab614b47e.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.168
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/Manifest6
-rw-r--r--sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.168.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 f40bab62b71b..c74511839c50 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -4,6 +4,8 @@ DIST genpatches-5.10-239.base.tar.xz 7596864 BLAKE2B 987607405ed2de7470b7ba9748d
DIST genpatches-5.10-239.extras.tar.xz 4056 BLAKE2B 65e4e775fb186c7e46b227776dd5fa26ee472b27cb32f76513aa457b7bc85c53fd88c02f594a095ec9aff4c062270359f024f36a7c4e84dc1d2ff91f1d185919 SHA512 394f1fe7d9b0bfd3b7c27d607513bc0656f34efda1fb3a2771d180b47caea2e5c4e6a01738284649afd94c2a7569f1fc52e3f98b6ace78838ac30e4ffe9ead37
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-5.15-178.base.tar.xz 7578036 BLAKE2B 2b8da3b41e178d6362e7dd783ee6a00f14d5f2103ef74f8e791a705dea94fa701b4ca06aec41ea277efa943d759a004b4760f61ec29b45a167b46a4898ba8a25 SHA512 bd29d8b6e4ad66fb5d7beb92b7cc8ea57f07ec1f0d311e345904f23d311b081499641ff5d45bbedc256ac99510cb8011cbcfb43d385b8f7ff059fa4e233e82d3
+DIST genpatches-5.15-178.extras.tar.xz 4060 BLAKE2B e697a3db43b97846bea924160efe1073736db1ca4c0b9634322a18de6e2da7d1b57c07dbcccd167811aa128072e81884b29e5abcee219e9e095457544bcd1149 SHA512 18e3a1a48c4c0dde29fc25e3a4d1aba2a843d3453363d76533918c71033f35f6cea3d325f0724c60227bea74f9b68fa6a2c870afa3230bad7312d1766825bd2e
DIST genpatches-6.1-120.base.tar.xz 6050748 BLAKE2B 8e81d186a9e5618d9f561fd0d49974031baa44ddb9b1885bb3ef6298d49b591e1c1582c306eddba07f3da733dea7ed82ae948838989010ee6471c052f99541c6 SHA512 7ec81a4b97becc07a15fc9e888f2e9c340334fb7ee2b9d0083123f67fdef44f7e155bdf7dd662158ea86d7eed3753017401479a5e50cc16eedde145dc77018c9
DIST genpatches-6.1-120.extras.tar.xz 4056 BLAKE2B 2295b59dea7ee450c0d6b109da2fc341e96030616635800a02847f93c4cd0191229c6d74bd68994ac42d2a96691856315127a060cd3873af34357f12ab54193c SHA512 8e1b92d4ab4cb327868f4e06c7bef5a099339c3cf2331ceff3aa3731632d1f8f7b427da5f892540a64f8afd86d89048100b93c8a08d40a99f5760a35553dca25
DIST genpatches-6.1-121.base.tar.xz 6065048 BLAKE2B ef60651e53c53c2e918da2c9dd4759cde88472e2f6aecf4ed6a86f089a282bbdf7acab040c7660e52ea09e441f6008f17ae3d49afcd339e8b91d50cba48bda18 SHA512 e34af3822f10164dc0729d0803c6f3ea05e57c6ac157567bdec6d8d0a3e78fc72252606f3b3160089e7b4b8167ee76b13088cf1d238cc3db2841e2dde63b82aa
@@ -44,6 +46,10 @@ DIST gentoo-kernel-5.15.167-1.amd64.gpkg.tar 68454400 BLAKE2B 03627247782e524161
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-5.15.168-1.amd64.gpkg.tar 68485120 BLAKE2B ad2eb042db715e24b9bb2d0748fe3db984bdeac32e511997363229d3993927c1bb8757656242ebee789259f3d62d1a83c322db190c12059817e5d15f14e9b320 SHA512 b647c0f4ba68958e4339c6bd99f23d670f929bce1c55b145d5ab1e5d931a6d31ccdfaf9279d9eef8718de6474464c1a5bf10c8c6379e44fb1bd4d6c90f015b74
+DIST gentoo-kernel-5.15.168-1.arm64.gpkg.tar 62433280 BLAKE2B 1472cda7454c884f6765dd7b4532dda53b076ad457f85e1d316239c7af5404b3810c378ebb2689056931abb5656338499bf5569e7399e3c5fb62252952dcdc9e SHA512 fbd0c02bb285daccb73f7fb4bd0f73357cc51501d62a48a7bc1f70d8b5d78e441f9118aebf39c9a352167c5dec9d61b8d93317f1c097bb5b32f49f7e5b41a61b
+DIST gentoo-kernel-5.15.168-1.ppc64le.gpkg.tar 56760320 BLAKE2B f8e3f7c28dd2ea2ab37b3f48af075738a9e3fc63736eaed54cbe8ee4aab002a45056de71108f35e68b07685e9e7ed2e73dd413d0205fee1463b741650b5a0722 SHA512 02e5acd109f904d00849ec881c474dfd0d0be1d9ba3120f7ad64e198fc4935dffe2865f106d9bd95b8ce9f4f3a7afa4957b1c952f385a8b1cc0cb58421acee07
+DIST gentoo-kernel-5.15.168-1.x86.gpkg.tar 58624000 BLAKE2B 3ebd6c502441512499cee99f4da3c7b8a2950d4ec0da8cefb0a4f194a346f7347af11795b4a39026efa3c1c78e388e9a051e2e8bcad3c5675871d8c9fba05e1b SHA512 b0037034a45f6c1fe9e1381051afe4285c578d63bdd9774f97480029f28fa7b7004a950d59736bf794b78629185d3f87a81b9dd1c66e02ceee68735808c68ed1
DIST gentoo-kernel-6.1.110-1.amd64.gpkg.tar 72591360 BLAKE2B 9cf5b83a5d7c1edfc9042d90f19c5b025c845921548f7bcf18176de33fc575d70ffe990a7116549261d51d7f8b8d23388d4f9fd720112895fbc78d9716002f2a SHA512 dfac30054325bc1d38b14e3ed84ef3ee969695c7b899775f6050dcaff37d22d400a9d3b36e22288836bc89a016c65385e8303542998122f01a08b43024e15d45
DIST gentoo-kernel-6.1.110-1.arm64.gpkg.tar 65566720 BLAKE2B 53783496918cae61de0cfddb69b81992a388b1ffb36baa68d0d614805f6a67e5f422aaebc188f16faaecb0558c5d60379db8a4f66c4b843134ace937f7517a51 SHA512 4b0f3802a871e6c73e70a6bc4c856b62748da5a86d4f1b340c472f9238d71d34d89db34106b8565d99873137c9c1849f0732634332f4767a87ba76e593df9494
DIST gentoo-kernel-6.1.110-1.ppc64le.gpkg.tar 59822080 BLAKE2B 8567c0c93616d69b4a464730b09528c789e2e5ea4b1771b4235803c70091b1990a8c6b41e36cbfbce92992277b2afe202b8806437cf4fc68e0ec6f3c3898fc09 SHA512 a8748b00b9e600720966f1ca2bdef5cb9a06fe11010491ef67dbd9f2798af46e859c0c14ff32921a70cd13b83fef763e0d20bc7467dcb7a49b5faa28572371d7
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.168.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.168.ebuild
new file mode 100644
index 000000000000..53b01d5e35e1
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.168.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
+}