summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-12-15 19:20:51 +0100
committerMichał Górny <mgorny@gentoo.org>2024-12-15 19:38:07 +0100
commitaeef2cd4f684303bfa22890be0a76e09494b5854 (patch)
tree86b052b7632359970834c5b1fa576ac1788fc744 /sys-kernel/gentoo-kernel-bin
parentsys-kernel/gentoo-kernel-bin: Bump to 6.1.120 (diff)
downloadgentoo-aeef2cd4f684303bfa22890be0a76e09494b5854.tar.gz
gentoo-aeef2cd4f684303bfa22890be0a76e09494b5854.tar.bz2
gentoo-aeef2cd4f684303bfa22890be0a76e09494b5854.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.174
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.174.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 0cad1854c26d..fcbcda9f40bc 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -2,6 +2,8 @@ DIST genpatches-5.10-242.base.tar.xz 7643240 BLAKE2B 53f852e2bb9c745051b4aa72764
DIST genpatches-5.10-242.extras.tar.xz 4060 BLAKE2B 9e52b0061daaa25a31b6a80fb9ef0a27b7113c324dc9a16cea15b2f5d9b8c1de68544b6e499a5e5397c93a8353f4ea15cfc71ee5a0e3b9d45c5bc5da0ecf8767 SHA512 042fefb3ae1d7ce342c8667c3a415d260d5638d0b5758b4e00d65af33a343701a540f253459f0043fc859a8bfb0d6f6ef2f7a551c4868e347e395dc0a9316323
DIST genpatches-5.15-183.base.tar.xz 7657948 BLAKE2B f54aea57a40b7af56cfdf8a754d126651a7378e4d00bd3123f3ec6545bb9bf46e83d66a8e57fbde8d9c719fae161700b4be5bb0d66c3ec767423da1536de2bc2 SHA512 05f4208568518d0c993a4a39dcfbac705878addf328403df20f907274be8bae118ddc61fb31d21a18c9e0dc129848d95494014bed7f50f439b2b377dcc01f578
DIST genpatches-5.15-183.extras.tar.xz 4060 BLAKE2B 34c8c3466fabebc63d7dcff661305bd8fcf57c4b3404adf6bafeab5d602ca86aa5afb28385aab9e755df2d5a0f71adf72c11a7ba97f93d9698b9368f492afe23 SHA512 094c5a55bdad6eb5a7b4aaa24bf3d7aa1ddb8138078e9bedb225b0863c7a2572bc0824c844930adc20a0f2fdb53771f66382dcf0f3e54ff7825697b61e0fb1d8
+DIST genpatches-5.15-184.base.tar.xz 7799348 BLAKE2B ac6470d6e8e6908ccc7d2f22c7b61a20988a8774f9923cd7ffb9e3fd70ba75c9e515f553641de1a155c059f46cacc3f64c2b3f464b2e03243be2aeeda14bd638 SHA512 74973c07981492df289dda643c70c3b616e272a43d6098d5cd7d8a8be003b71d83f7f4b4ac4f1358da1147b9e75e9e1cb1487b0e7d2d00b14a630836de616562
+DIST genpatches-5.15-184.extras.tar.xz 4056 BLAKE2B d78a2b6c176a91a0eb33f7b8dd7bfe286e6aabde27cee8f591574ec6392763b1db9b15c062f8acf46d3a9aaf4b442f43fdc83ed2f8dadc008146e7d72827c531 SHA512 ebc2c8e2cb4e341e28eb2e8a522ea0680f786a232b84d8bad4027dea9bf977f8d3f81b1af6c2d68747288c0b30b0bef08330e0a6417e5ae8cfdba0215dc554d0
DIST genpatches-6.1-128.base.tar.xz 6459108 BLAKE2B f27a537be69a26717ac1e251d7530b97f5f4498a088d80cfccc343b4d50bc7404e59ae9285bc06e4991e166121d52b8a84054ef8b8f707f242626a49ac202a5b SHA512 53277c695af046fd4f8c6362141317270022a4c18764b3563b47375f08f775644dec0929086108c5ddb1f8de8bdf8bdc244084fe0ea4a93fad1677013ea1c42c
DIST genpatches-6.1-128.extras.tar.xz 4060 BLAKE2B a4f0e9f0b87dfaad00ff0b702b85c6e78c9543bd45887d6f8c550e487f60c744b2912374e972f1bdcff8de6a434d09dd0550579171764afd9a5c741a4468d743 SHA512 b20dfc8580a640d0c9ea07b7b21b38e9632df4705b3a5ae9cfd7d7cad0554b3159ca6cea91280e2a6232d2a2e26bc485bc23616c23e24bb87c5dcd60f8325558
DIST genpatches-6.1-129.base.tar.xz 6480240 BLAKE2B 4b33131d21859d29c47c54913e878bdb2e1bc5b8f8333a016690a2153d13a14d49af1b0130bd1a9be64dd9accfb042f5284eb7a9c85c83b2cc661ba5e1c21777 SHA512 4884c72ee2037ee0f7edb9f59de6ea3f6650edc1ce514544da542310029bb95560c38e3ec1f86197109946fce445f150a022b620ee6adf55601bc0b897a928e0
@@ -38,6 +40,10 @@ DIST gentoo-kernel-5.15.173-1.amd64.gpkg.tar 68485120 BLAKE2B 117828fce66835d8c8
DIST gentoo-kernel-5.15.173-1.arm64.gpkg.tar 62443520 BLAKE2B 8e66815c4b94e7b402750a7b925f7a56711668a849304aa43acf49cadfd4fafc5338df7794704c21957758921111aefa43d5c864fc10af91e4a4353f52cbcd7e SHA512 f759246629db1a721b3136c98ac7b361237619f9fed2d247e049b8b4e39d9b8048c1bfbe14bedb74e6ac1696c73cb899ea6024985fe16489ce23397c0111dd71
DIST gentoo-kernel-5.15.173-1.ppc64le.gpkg.tar 56780800 BLAKE2B d1af82e7cd746bd16ce77a3c5c1364a071329759128d59e2960b58a52408ebf524ab244ee06bbfab181500120d8a5bf272a6eba4a7bd253e79b3c48eef587865 SHA512 f71b45f9f60d77d148eaaac52a1d5108c0a076299f1903db60ef50ac64a85b48b847516feef274de3c595e0af7d6113a6d47fffb253590a5d402665c4f0dec49
DIST gentoo-kernel-5.15.173-1.x86.gpkg.tar 58644480 BLAKE2B cbf652391346c519be81b67c4c8251f546141a7152964340c52f032757e80fb8baf535b482f93eea10fb87874db935aff194372c4d9d541fa8f40473b8b83883 SHA512 8118a0e454ae5ba2ac1c23e31e62b3cf165d863dfc3d8a6a02aae30eeb83b6f2870f1d2d8daf45cb88754a04e85104ffd8eb9d2b72318da69e8ef838bc750a0a
+DIST gentoo-kernel-5.15.174-1.amd64.gpkg.tar 68833280 BLAKE2B efdaf97975b235caf70f96234a014713b3741e15011fdd5fcbca7aa9b75d9e46476b481b478c902a4517b07a4566d53cfad6b4617d69f36579a408fcd303739d SHA512 40f504840f21584c98def268b45128e31cb05202bc538509c4874e54de2326599475d7f014064ac99a06f7c70158b914e61bac7b9aff9f4525a05d74f2f402b9
+DIST gentoo-kernel-5.15.174-1.arm64.gpkg.tar 62545920 BLAKE2B 61228c778de2214e41d7b827d5cf3badbd80ae7773b2c7f3cf16d5e6b082e3676c9d00e58f085dde65ba01dc8ec53f5c7e9b896124725734e4b3a5ae71212221 SHA512 9f8073e7f736e00fb9b5487ee68050221e2ce5716b4cdb8fe983a6b818e1767f843ec6948ae77c5f8c8d9b85520df245684fc81508dce7d3a0b72485ae43b948
+DIST gentoo-kernel-5.15.174-1.ppc64le.gpkg.tar 56832000 BLAKE2B 8b353db4e0678e3df5bd41df8487d5c247a3e3415896bb9369adc82d11bdf76c7a7186155a3fa7301ee2d3cc395dd10ae9a44ca801b4dc38d87a179eb0f977a4 SHA512 efe5a7fdb8b1203ccf42bf2de4a459735dfda8e2f7f2b29d7f28e42bc545d2cc66b60e991f091a6382cda9ca22096d5c6871f57f9e8a339d5ec51b73f760dc78
+DIST gentoo-kernel-5.15.174-1.x86.gpkg.tar 58828800 BLAKE2B 3bcf211fb6bff7dcde36c9ca07214db607aaa00936e7e0a5b222046366ef5d5f547f1af96201cd16b1e2343e4d7585e775c3c94053e3368541639ecf3a535c53 SHA512 bf2cb31ea9fb7f0ab5811fb503df6ce67d8f42dac4948a8260177d816efd3f1cbd98e87e83f6df634f5f0230d276b64e88a18be928df8ef65e046e311823acb5
DIST gentoo-kernel-6.1.118-1.amd64.gpkg.tar 72652800 BLAKE2B 2dbb58f191199848f22696c142ce9d16d4b4b775b33516c2f602485381dcd544e6120b188dfcb1a6b8a78791ff0f5d8d6b3d33d469628de51fee0420f74dfaa4 SHA512 8019a42d17126d12b775729992d6bebb442e70c3db84a1c466c19822052a9ec5b28f3458d434734ede285249759403e89950181ad8c86eab8b2401b161cbfe13
DIST gentoo-kernel-6.1.118-1.arm64.gpkg.tar 65587200 BLAKE2B 0d6b865e758b7f0c0213b5168fdd4290431efda1bfe3e7edb3b09b5bb13021e95c286a3511e9705b5584b2af2be474af9d4f7f56c90519bc3186dd747f8cbc64 SHA512 7ae9d2a3de6a9765558b0b116621b84fbe4a55d5abaa130a4d3c190ed70686003175fc8eaef30ae2543b91d4c7bf9dddc4e7b87887ece37b24469bae6c724c13
DIST gentoo-kernel-6.1.118-1.ppc64le.gpkg.tar 59842560 BLAKE2B 260508ca2dbe9c09db45f38e3272864f12250ac419df515e33a1e180d3b86c801984f2e52b56a731edf8244c16483171ad7cb5bb5a44a67247a55f55860834c4 SHA512 cb7a7641c249e105edbc9ad0a8e16df619fb53a0e3bc600be3f33232096061283cf9f6887ed1516deb334083c35fc46abe14862107fcf92ff74de70d0417cf92
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.174.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.174.ebuild
new file mode 100644
index 000000000000..53b01d5e35e1
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.174.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
+}