summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-11-01 16:16:27 +0100
committerMichał Górny <mgorny@gentoo.org>2024-11-01 16:23:29 +0100
commit456d7cb77a1fe2fe0827829cb8fa0b31aab47d1e (patch)
treee83397ad4c72dd1d6c398b46773c188923289fd8 /sys-kernel/gentoo-kernel-bin
parentxfce-base/xfce4-panel: Bump to 4.19.6 (diff)
downloadgentoo-456d7cb77a1fe2fe0827829cb8fa0b31aab47d1e.tar.gz
gentoo-456d7cb77a1fe2fe0827829cb8fa0b31aab47d1e.tar.bz2
gentoo-456d7cb77a1fe2fe0827829cb8fa0b31aab47d1e.zip
sys-kernel/gentoo-kernel-bin: Bump to 5.15.170
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.170.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 beacc180cb33..703873a1eebf 100644
--- a/sys-kernel/gentoo-kernel-bin/Manifest
+++ b/sys-kernel/gentoo-kernel-bin/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.15-178.base.tar.xz 7578036 BLAKE2B 2b8da3b41e178d6362e7dd783ee
DIST genpatches-5.15-178.extras.tar.xz 4060 BLAKE2B e697a3db43b97846bea924160efe1073736db1ca4c0b9634322a18de6e2da7d1b57c07dbcccd167811aa128072e81884b29e5abcee219e9e095457544bcd1149 SHA512 18e3a1a48c4c0dde29fc25e3a4d1aba2a843d3453363d76533918c71033f35f6cea3d325f0724c60227bea74f9b68fa6a2c870afa3230bad7312d1766825bd2e
DIST genpatches-5.15-179.base.tar.xz 7600676 BLAKE2B 5654c1db636059018715b1ec3ae0c3f7b5f7cf9e88e4ccb1df9843eb6fc130b204d5e7aa76f77ad21502030ed5050df760b59f2af59fe2074fd9e16e3703d7da SHA512 0900b71b1c43d507a06463a657bb5739964a3badcd189c7aadacfb43758da529a07215cda9fc66fec1e9e25e07ed3d8c0053cb37b0779a01a545a3993cca516a
DIST genpatches-5.15-179.extras.tar.xz 4060 BLAKE2B d8f7885fac420f6f64dafcd5edf3500c8745fc076a382a9c62cfe1a5fd86a2c1d880ff8fdd0bd12649760ba115abc43de9da76e559330c0272f88c43926fa990 SHA512 01a08098524bf56987a55707b767911270b19b7e7ba032ad84ed3942fcdd073c0bf92443fc7cfe24ce1e88ec065f37f1a5c5c20adf3594151bc933a71c92f9d9
+DIST genpatches-5.15-180.base.tar.xz 7622872 BLAKE2B bdbfebd8160b3851b67c1bba86c8f0c7f7dff79f2304c9b297755043067575a14982d0e79f2aa0e3f42994520e8bc50cbff11651ad1d546d314f01d50a33e0f3 SHA512 606659b93b9782141434313a634fd648f5f934caa2016091693039035de0fe96e6c3a88075aefde18aaf323eed0d8a4188bef64f990f20fa9d06e4bc8d7e1079
+DIST genpatches-5.15-180.extras.tar.xz 4056 BLAKE2B e617ff600d8bb942de4fce1cc3aaf2d6aa16cc9b5a83667dc0154a685554a36cc8c4201c77faa01d3a39dabb1771235502128a6b863b23fbad1213642ec2cd07 SHA512 fa1c81b58c3ee20ace2e1afbe47620e9c3df695eabfa062d5ce78c12b015b938164ecd5db2d533473051d48a2fdf250074d1b306c61edae4acbe41688b513b77
DIST genpatches-6.1-123.base.tar.xz 6330844 BLAKE2B 7095b2e44e1dc34e38d017255057cf035ea9d129cfcd4f778c51b5b35d2f3bddf9bdcd649a4db23b2725496d7a4ba07ab300094cffb12222306424094d796a98 SHA512 ddab4d3435814ad18caa88bbccbaa8619945f1f430589034ba47bfe2e313a8adf5ea2de2e1220af24fa5f0add308a6eb062391c85835e91be0efa236a8402dd8
DIST genpatches-6.1-123.extras.tar.xz 4056 BLAKE2B 13343aefa58e0c36894a31f45ece3e90686c478b7955854d458a358f30f5fe1a058ee4050aae883e31478d47ae8d63c566bdc032e3cf998af7c3c2c5f8529ce0 SHA512 2bf039625947f5120cd457639f223297ce7b073b3c8650503a994a944507d4283f9873929412da80d0c0f5252bfab885c7b52f48308443fe809900f43e1b980a
DIST genpatches-6.1-124.base.tar.xz 6355616 BLAKE2B 8b912dfa6afd71b8d2cfd709aefb7acd2df66e7806e19440db7ca74a6dc2fe13b2bc55b332aa1b4aef5c84bf64929a20cbbf1da5a30803999986762327eb56ed SHA512 1288c21d553220dc27e28ae533f003d07de5442ffa85bf06cf533266b3a16549239f389d61c7458b3f442f8902bdf4e429f2a17b89bacfe8632fd38147f97923
@@ -38,6 +40,10 @@ DIST gentoo-kernel-5.15.169-1.amd64.gpkg.tar 68474880 BLAKE2B 937f3211465609c1e8
DIST gentoo-kernel-5.15.169-1.arm64.gpkg.tar 62423040 BLAKE2B 8788e1f93da7f48385f9533fde291d7ca326f428d21ea53371a3284683dec7186d01ca98e3431a8a41ed0df9323227ab5ef25d140d677772cec036e9ce10ec94 SHA512 616ef3465d5fffdf97af736b951b52d392bc2b9e93f3f46c754c049d088647e4bbd7018b192a13c131441a131f52e1bd86a6f4769dc0ae04961bd4ad0576b301
DIST gentoo-kernel-5.15.169-1.ppc64le.gpkg.tar 56760320 BLAKE2B 09ff26e5e48231bf18396b28c84893c203ed688e5d396ae5b0c29d0aeac24f097afb862bd306e8e332c8ac7a03dda93ab6fdeabad5cefffe14414a0533c97441 SHA512 fe779f7c55503ec8fde62c4afc225728de59cd7ce8be7832fb51581e2f658bceffb9b452d3e7a4dd8f05f87b11103e1c3f5741a37d3eba541c85e9af2276c1c6
DIST gentoo-kernel-5.15.169-1.x86.gpkg.tar 58634240 BLAKE2B c69199b516c5bb070c8caad05ef598644340df341a8b81b9ee11215a9d39b482b8de7bba52636cd772b44dbe07064e4e0c33f8048538a5ec8d7896596d6c16e1 SHA512 d12215b112f8f8995ba6db5b5d40429454ea292918c9de80958e012617efc48c202e90d2e473a72f71f444a21296814e2c45e3e21cdf3c89c57a923c899700ba
+DIST gentoo-kernel-5.15.170-1.amd64.gpkg.tar 68485120 BLAKE2B 1b3a4c91cd8c4745ce49da5dcd7449523bb0a775cd42f90d7e27ef4e374819d21a1463767b276d323d7689e5c5d5bc62144851296ed3191d2bf2a62971ea6ddf SHA512 3620c72fe4310ef385c2d337f4f92c9af526efe428be55ac4a5bb4c04bbaab883b09b19fc8ffb375f369b1e8922466c9e7e285f3b91574e6bb15e610b2018e65
+DIST gentoo-kernel-5.15.170-1.arm64.gpkg.tar 62423040 BLAKE2B 8729d97f696bbe4ce47a651e0b682eb29074a1a4043c9e3197fde5088578e21cd74426a0171971b5ac0c807d06f49d07a870d3d08f891d31098b47ece047b1b3 SHA512 9195ba256ddaa72c47602b01691fe46d24b82698a3ac0d4c3976c3491933a017fa546d7aa2ffb80f08bf76c4d70b1d73f120fe5fd766f8ffc9496c016a2b1c2a
+DIST gentoo-kernel-5.15.170-1.ppc64le.gpkg.tar 56770560 BLAKE2B dec7512c5f5da5cc9b9f7ccc27d5e6a8d1e2080dd814f5f4feafbec81a704588748eee3efaa285069368cee527a6e7cbf6b46252c71d5fadc9a218328a691c1b SHA512 931f2f818ef8150bbc14f5745d906a07795bcbc881719608f68caf9c60f889bf633ffa5b862f2383d24adf649d0ac0b134c20e3fc5de8032c43f6f596d0c5846
+DIST gentoo-kernel-5.15.170-1.x86.gpkg.tar 58644480 BLAKE2B b2494aa16c75f5fd9980ed3d68e135ccf7e06afc1b911677bd94d36e2d192efc23b61ec1f857e6f9083b5c8020f80fb3a13a098605a450c018fca1ea28a7d6c0 SHA512 d613592bd71ef73cb784f23f07b3739dcb8068a2b9ccabc091f7841bd4dc036eae7cc9edc0729fbdc3705d5e56c7877256f7989079570942fd81c1bf0166b6ac
DIST gentoo-kernel-6.1.113-1.amd64.gpkg.tar 72611840 BLAKE2B 19c9f713bf9334e3c2f991c6738ae88f5cd4ff93bf190e4b179b396cafb8ff80453f6634da4a8ba2a7c581d6e5a36e0f06aac9c23d940496697e13fae1b5ae1d SHA512 fbac2ef4e3f02f180e8b76c028131a74c15815908897b69317c2910637814fb07f0e55069c4b9189e3262aed76bced7a73861a735bb2cb8f2f1e5189086f8da1
DIST gentoo-kernel-6.1.113-1.arm64.gpkg.tar 65566720 BLAKE2B 289e6c920d3e4ea18430c04b5371ad849f8cb155289457c55cfbdf9dba70af03d490e1d8c5383b98075f7e1ee054550621589dc3a26d06307b6ff6d66ca44936 SHA512 b597b095b1cb80befdbc6e412a07713c8869d082bedfc066caa8ba18678b6467f888bdbaac04dabd68b229b33041eba231e78cfd52aa8c2bc886c57655a465ca
DIST gentoo-kernel-6.1.113-1.ppc64le.gpkg.tar 59822080 BLAKE2B 10547bba1287be3dbdce60fa0238ec1d9a63af970cfdb7d3fb3a3037ab6870db17d5cae14aaf349fefce1e66ebfdfac86c639b6ce4b96813ec7a8bc2972664b9 SHA512 0bf62fc17b6063ed1df477c016afe8366a0936a5958d5e69ee244e4aa9d933f1abd0f462de0278e3e6a82908e2d0fc57e0c8b147be52ad18b721b53e60722fbd
diff --git a/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.170.ebuild b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.170.ebuild
new file mode 100644
index 000000000000..53b01d5e35e1
--- /dev/null
+++ b/sys-kernel/gentoo-kernel-bin/gentoo-kernel-bin-5.15.170.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
+}