summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-12-20 16:53:20 +0100
committerMichał Górny <mgorny@gentoo.org>2023-12-20 21:20:50 +0100
commit38d661e970713503265ea88571f7b5e4bd166ccb (patch)
treed901dc5a2049a2b0a94471ced090960d9db7afff /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.15.144 (diff)
downloadgentoo-38d661e970713503265ea88571f7b5e4bd166ccb.tar.gz
gentoo-38d661e970713503265ea88571f7b5e4bd166ccb.tar.bz2
gentoo-38d661e970713503265ea88571f7b5e4bd166ccb.zip
sys-kernel/gentoo-kernel: Bump to 5.15.144
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/gentoo-kernel/Manifest2
-rw-r--r--sys-kernel/gentoo-kernel/gentoo-kernel-5.15.144.ebuild141
2 files changed, 143 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 0648039023ea..24f725f253bf 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -6,6 +6,8 @@ DIST genpatches-5.15-151.base.tar.xz 5817984 BLAKE2B 182b52b69171a07dc6333c139f5
DIST genpatches-5.15-151.extras.tar.xz 3936 BLAKE2B 290c41b3f8c750f82d6fb8ae4542a64ff395c8def74c6f3c3d4752b57d1725bf1947beb626d8ee413a4ff50fcc74bad7f1efbc1bfb29b67a35e4b5ea396427f0 SHA512 a3d22a5decba9d24e65239a96b3133af07e126c7e0dd733eae61de48644bc31b012eb6595a15ac82ff763bf39e9f7c91c0153badcc2e9c83604a64f27e0ea43b
DIST genpatches-5.15-152.base.tar.xz 5859680 BLAKE2B f07d522838bae14efdba3399a9e4ad0a442537b1a9942477600660df2f71cd8d17774dff0ce563a7c46595c6a5390048994be0f894f84c255ebac2f9ef885220 SHA512 bb6d744e075f6d7e380f78be870c64a14595da3b24ae217db9e69778d1f65326ade92e7fa9edbedbc6b6825ff8a83f08725d0ad165e4165047720a4f72985089
DIST genpatches-5.15-152.extras.tar.xz 3940 BLAKE2B 91f8fa828c4fb434088a8cffc845c09484b613fb5990fd5faa925852e9d6009bc927135310372a3e7b78b59a9e6a1f52667ccf3dec0a2ec7f7ac4f66c5b63760 SHA512 615669b03df808733065081f58ef0c928fb45be1b5a15092dd6e8cc6ec13ed6c4df3ed69eb1e06fde52f35f19f4896e4ab8e557a02e061e8c1371c12cda7e04f
+DIST genpatches-5.15-153.base.tar.xz 5880496 BLAKE2B 8de9f7e0a443bf5a196ae242283def0006da5252d5bbd732ff4d16eea018cb8649ab084c398eb6761a01d9ec8d4e5da9f6d6ad88c77fe5ac70385a9c5dbe679f SHA512 d3651cfcb047242eea4ad18986ce2667ff368f91a4496e30590f515d20898e7694afa409c02cfa1cc2747a6f80e1a7642aec62d67e0c7ea3c9d75e55a763b2fd
+DIST genpatches-5.15-153.extras.tar.xz 3940 BLAKE2B a1f5239cf08d52f7d1bdc2815809513d7b56e1f38978f681c4266e6e536ac02343dcf7bbb2045cbdaeeb73b20731ef2e3c84c1ebaa883d7ab0c18a99c00de5ed SHA512 da1d9cc1e79ff14c54c94dbde26c6565b1192781b567e7fe969bbeef3d8bc21cb5618c3eee3a643ccae829a74e6874436a049d0f9f16cdc7cf3f0f7f399a50bd
DIST genpatches-6.1-74.base.tar.xz 4113880 BLAKE2B 26d9abc23f66346e376b78bb687ae7bc955447093641abe0bf736ff9e1c4e7ca70a0bd26b581f295b168ecd94c6f84603f13f5d097cd8b05b9373ea03a9d0426 SHA512 4ec9211030d1d1cf8e412b46f6cc101768418a177d0113b58f3aa0c4468536faa45a0615483baec378eae7995a91b86da1c06af167a1dbc6eca9ff853ae838f3
DIST genpatches-6.1-74.extras.tar.xz 3812 BLAKE2B 52488fe7154cf6e0153a05184699dd1597a078a7a376e2866b68b923e7f82300757d1c70e7bc44920ab7813d500fb3d4677d49428261308e4b6b59a552381a9f SHA512 dd04bf075792824bf65cf349f6bc921d0c36cc66c878b8dfdd95c27f3a82de426d6725d79c02374e7372b74b68b9c0123875476de434f85646dd9aa8382d8de9
DIST genpatches-6.1-75.base.tar.xz 4114396 BLAKE2B c21211d430392fbe96b0616e0ece650736f7204066222f88b84cffdbedcbda78d8fbf30ce8dce4c7fa450f24410fba1af1929ee3b3ea0472fde3473db95a0f5c SHA512 106db04baa9ef92e324929d025bb68f9eab4d0144d12a3d11cbfffb018cc46abeaadc76240c1acfd3877ef8efc1992374ad15cca061258e5f20452e3cb71b90f
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.144.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.144.ebuild
new file mode 100644
index 000000000000..c2484efb4288
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.144.ebuild
@@ -0,0 +1,141 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build toolchain-funcs
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 9 ))
+CONFIG_VER=5.15.19
+CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
+GENTOO_CONFIG_VER=g11
+
+DESCRIPTION="Linux kernel built with Gentoo patches"
+HOMEPAGE="
+ https://wiki.gentoo.org/wiki/Project:Distribution_Kernel
+ 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
+ https://github.com/projg2/gentoo-kernel-config/archive/${GENTOO_CONFIG_VER}.tar.gz
+ -> gentoo-kernel-config-${GENTOO_CONFIG_VER}.tar.gz
+ amd64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-x86_64-fedora.config
+ -> kernel-x86_64-fedora.config.${CONFIG_VER}
+ )
+ arm64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64-fedora.config
+ -> kernel-aarch64-fedora.config.${CONFIG_VER}
+ )
+ ppc64? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le-fedora.config
+ -> kernel-ppc64le-fedora.config.${CONFIG_VER}
+ )
+ x86? (
+ https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686-fedora.config
+ -> kernel-i686-fedora.config.${CONFIG_VER}
+ )
+"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="
+ arm? ( savedconfig )
+ hppa? ( savedconfig )
+ sparc? ( savedconfig )
+"
+
+RDEPEND="
+ !sys-kernel/gentoo-kernel-bin:${SLOT}
+"
+BDEPEND="
+ debug? ( dev-util/pahole )
+"
+PDEPEND="
+ >=virtual/dist-kernel-${PV}
+"
+
+QA_FLAGS_IGNORED="
+ usr/src/linux-.*/scripts/gcc-plugins/.*.so
+ usr/src/linux-.*/vmlinux
+ usr/src/linux-.*/arch/powerpc/kernel/vdso.*/vdso.*.so.dbg
+"
+
+src_prepare() {
+ local PATCHES=(
+ # meh, genpatches have no directory
+ "${WORKDIR}"/*.patch
+ )
+ default
+
+ local biendian=false
+
+ # prepare the default config
+ case ${ARCH} in
+ amd64)
+ cp "${DISTDIR}/kernel-x86_64-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ arm)
+ return
+ ;;
+ arm64)
+ cp "${DISTDIR}/kernel-aarch64-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ hppa)
+ return
+ ;;
+ ppc)
+ # assume powermac/powerbook defconfig
+ # we still package.use.force savedconfig
+ cp "${WORKDIR}/${MY_P}/arch/powerpc/configs/pmac32_defconfig" .config || die
+ ;;
+ ppc64)
+ cp "${DISTDIR}/kernel-ppc64le-fedora.config.${CONFIG_VER}" .config || die
+ biendian=true
+ ;;
+ sparc)
+ return
+ ;;
+ x86)
+ cp "${DISTDIR}/kernel-i686-fedora.config.${CONFIG_VER}" .config || die
+ ;;
+ *)
+ die "Unsupported arch ${ARCH}"
+ ;;
+ esac
+
+ local myversion="-gentoo-dist"
+ use hardened && myversion+="-hardened"
+ echo "CONFIG_LOCALVERSION=\"${myversion}\"" > "${T}"/version.config || die
+ local dist_conf_path="${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"
+
+ local merge_configs=(
+ "${T}"/version.config
+ "${dist_conf_path}"/base.config
+ )
+ use debug || merge_configs+=(
+ "${dist_conf_path}"/no-debug.config
+ )
+ if use hardened; then
+ merge_configs+=( "${dist_conf_path}"/hardened-base.config )
+
+ tc-is-gcc && merge_configs+=( "${dist_conf_path}"/hardened-gcc-plugins.config )
+
+ if [[ -f "${dist_conf_path}/hardened-${ARCH}.config" ]]; then
+ merge_configs+=( "${dist_conf_path}/hardened-${ARCH}.config" )
+ fi
+ fi
+
+ # this covers ppc64 and aarch64_be only for now
+ if [[ ${biendian} == true && $(tc-endian) == big ]]; then
+ merge_configs+=( "${dist_conf_path}/big-endian.config" )
+ fi
+
+ kernel-build_merge_configs "${merge_configs[@]}"
+}