summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-02-09 16:24:04 +0100
committerMichał Górny <mgorny@gentoo.org>2023-02-09 19:16:17 +0100
commit45adb00449d76ac383709fb8ed6001e577e897ed (patch)
tree7cc945c2825df5913d37ab784953138707ddac2e /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.15.93 (diff)
downloadgentoo-45adb00449d76ac383709fb8ed6001e577e897ed.tar.gz
gentoo-45adb00449d76ac383709fb8ed6001e577e897ed.tar.bz2
gentoo-45adb00449d76ac383709fb8ed6001e577e897ed.zip
sys-kernel/gentoo-kernel: Bump to 5.15.93
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.93.ebuild134
2 files changed, 136 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index 087b0f219af6..5f0619850d81 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -18,6 +18,8 @@ DIST genpatches-5.15-95.base.tar.xz 3957200 BLAKE2B a910caf40f1ec10a922cd3cefb2e
DIST genpatches-5.15-95.extras.tar.xz 3932 BLAKE2B 8a15b3053680594c780d8df8f1cb7597c3fd15b325edf8080b3fe499937bcb9ba4587b4d2f0c0f5e8074452439aa1d6f336c5d06936a94ec14fafa291b8823d0 SHA512 25546d9f6cc4ad788f08281589ee4cfd6844b3191354e3fab929a89f9e20b647ac03be765d76b42601bcb4c36241d70e50d90abd97aac80c6bcbff66af95e9ca
DIST genpatches-5.15-96.base.tar.xz 3961872 BLAKE2B 832c573ea52eb7b49ea59d975d25af9044503bfed0595082873d09496b4bf4b558e97af812c244274488100fc87b3d2e3b9ba8b3fb023d3623173a13ca034925 SHA512 4577060888eeeffe76e67026b2f6cc1743dc7501c6f3606fa06805a97abc54c59324aecb74d4c2ed65433090c50f432c7a3167b61e84cfb168dfd09dac300c5d
DIST genpatches-5.15-96.extras.tar.xz 3932 BLAKE2B 5c34f507f83f8138d3e9f7fea2fe0619e326ba602972a6d37f40847526b9f95e13c1ce2b097b277573dc9f0bdc1739d5eba6020817a1956fc80fdc7076d22a01 SHA512 dc17deb594c99c9ab4b0c4c2272630c1cc9d03a88e4a1b936f2ec11c5750cedc00a9320018cbc543d5844727760e6f56807cad9d7a8a7fc9b2cb605e8ca874c5
+DIST genpatches-5.15-97.base.tar.xz 3988428 BLAKE2B d894f115bdaab2011edabb77ca6391ad1cfd5029d9d86716bc71ee8df1f263c96df1e265cf4591e25fb7a870be40ac9b01ef4ee07a8715c5be900265044fb4a4 SHA512 7e8add203a762e34fcfa672a4af7862eb31044517c93d6ae68ee02e386251c31b514efc316c89a92413c9f0b2930767bb3b680cba90f48f125935445ec88f379
+DIST genpatches-5.15-97.extras.tar.xz 3928 BLAKE2B c542e8eee62f61a513a80ad48d92812bd3967ca18963fdddf95dfcc95dd337384ab79052671026da5dc00ad87a979fbb6944e1c3880c4ff6335b1f7a132b8180 SHA512 8557ab40bff3e625b2ecde506052f0d31cb13ee2e2a2d05d1ee30ab8877f774b01bb94e450421c92c9a9e5a46df893493ece1dd5dee798ce6e9eb880b49522cb
DIST genpatches-5.4-233.base.tar.xz 5294692 BLAKE2B 357046687c6f2797d5d7090dad357e00675eed329ccef44223dd476551cf04e9f711f1020144cfc59796657cb5b1e6d76b607ecb164e27636869a8bc8984f567 SHA512 45f6b35dbca12e8b9e6a9f99d12c44e47a6e471e5091ab75c42346f1d8bc12dc454cbb335f1549b497842c2d9f13a5930c80b5000cb86bd3db7b03347dfebcf4
DIST genpatches-5.4-233.extras.tar.xz 1812 BLAKE2B abedf631da893391a98a98cf48d264f9eaf9f9f7811bf595c36a774c8dde21f105afaf6f4e113e04de472bd6ce0c759bd41fd95aa980b7e05499d8571f3e8a44 SHA512 16b09d0a4465123079360ef9f070e0c163f45f9784714e98fe53f7174e836fe7b2562af01e5c2dc932571bb3eafe2d9afedfd60b5c8467bd8410de651ab82473
DIST genpatches-5.4-234.base.tar.xz 5429360 BLAKE2B 48e1199775c5174a4e25f9611f410f8c3959920b3af6d4a5639497560f9a7ca34210c3f7db7c5e279432e1562956528690f5360dfeaaf7f99227f74d8e8d04c9 SHA512 c41fefd72aea785fb40ae95e47019d07c73bb4a07c286e732f7bbaa4b1cc3eca0dc53cf088387998ba1a9bb791e9e021d6246d8ceb9b87dc6d7fc6cbecc6dce9
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.93.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.93.ebuild
new file mode 100644
index 000000000000..540d3d6d63d5
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.93.ebuild
@@ -0,0 +1,134 @@
+# 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##*.} + 4 ))
+CONFIG_VER=5.15.19
+CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01
+GENTOO_CONFIG_VER=g6
+
+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 ~x86"
+IUSE="debug hardened"
+REQUIRED_USE="arm? ( 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
+ ;;
+ 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[@]}"
+}