diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-07-18 14:55:21 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-07-18 18:15:38 +0200 |
commit | 01278a6246e29f4e222d724f3b28fde3a218d1e0 (patch) | |
tree | fd1b7e2297afbb50199682b0312d5a35f299f461 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.15.163 (diff) | |
download | gentoo-01278a6246e29f4e222d724f3b28fde3a218d1e0.tar.gz gentoo-01278a6246e29f4e222d724f3b28fde3a218d1e0.tar.bz2 gentoo-01278a6246e29f4e222d724f3b28fde3a218d1e0.zip |
sys-kernel/gentoo-kernel: Bump to 5.15.163
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/gentoo-kernel/Manifest | 2 | ||||
-rw-r--r-- | sys-kernel/gentoo-kernel/gentoo-kernel-5.15.163.ebuild | 141 |
2 files changed, 143 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 92b5062ec57c..5c8dbc92517c 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -6,6 +6,8 @@ DIST genpatches-5.15-171.base.tar.xz 6912380 BLAKE2B 3d5572ca2854c0dcaa6000ffc7c DIST genpatches-5.15-171.extras.tar.xz 4048 BLAKE2B 823bf5a1a62a3a4f97ae296bf78581a3b8ba79134e8ec7098385e23783c317509f8320afb9ff0c25ebfd5b3fb32aa883afa970ac86c550c2d70613d8af7da5e3 SHA512 f2eacb2ebda97e86c20f24a6ab591b6c41fa831947610febce3589d32fb326d9439b63273c2ffe82630157b7559141598e5bb5edbe939e1bed45bca802085f1a DIST genpatches-5.15-172.base.tar.xz 7003732 BLAKE2B 0f9a38b1a0b8d85429b9f66eaf0fdb7f854f62d6e61c556bfc618d551c8497ded8d1413f8f0c9bcc27988faeb718c73646ae1437b14793837d14d5587f69aa2e SHA512 fcff72f4ddbca1c2fbd012e66ab2d1b1c9a666192edeceabe51a99588564a0937d88c62c8bd71c6a701577ead62bd543b77b520e159f2b60764c6ffd3bcd24fa DIST genpatches-5.15-172.extras.tar.xz 4048 BLAKE2B e9120574a9febf01edcb43d4c582fcbb90a05934d23c671b225a1c6d0ca8646d9efad2587497f6642024a7e1026f9b7dd56b49e79fd355d73848ee04e1dfb3e2 SHA512 582fd7b0360c7250ee8336079383d2b64bb96b22a86929a54157c1fbece2c18b88d0751adc13ba602cfcf7b39ddb249ea11449d6f56d1a3c55aa25f87d2d77ff +DIST genpatches-5.15-173.base.tar.xz 7038704 BLAKE2B 4cf6ffc38ba49bdcac210b165c9ce951283ec083f928ab14f19a16fd46e195730d169f50b45f8ff05e5d8ed2cf9164f4940659ea23a0ee9add30dc2e6ee83f84 SHA512 d875a5a2eb58ca5e0659b2cc2a360c5e837e73cb479508c0c8350456e58019025c96278727ab9877a103138d2e41653efee51ea3dff0bcadbd7da0e076a244ef +DIST genpatches-5.15-173.extras.tar.xz 4052 BLAKE2B e7d4effd4092467275f3f076676daa06caa2f647da1173a6132ebc30da1be78a085ddede5aa170c3d666f1808c4824f441dc5a1e873868fd72347a0c84149fff SHA512 7d272e7448a6688efc98a5e71eb8f83a978d82e9b177ae0b9b12c479078e23fb8dd66021f1ad488d9bfc056c89e7ee8642425dbd15607eaece249b565edc7fef DIST genpatches-6.1-104.base.tar.xz 5452728 BLAKE2B 49a8765789436c1bdb34f72e865232942b3b7e2bf4f3c2b4cded7786677f3235982e020aad0ab364a2bac0393dc28837f904fe5bee5a4cea12ec11dbf6ec642c SHA512 cb33672fc2d88e740ee025d9f8d8725fa398132e7bd940a831f60d2de3fdf13e4cb96e39f2707deec9bc5471789706e43501c9eb6044dab78dc34a71f9af60ce DIST genpatches-6.1-104.extras.tar.xz 4048 BLAKE2B 526ac16b6ffd987dd4f87797eeaa4ab1d25a8f27fb5b924f13651330abaa2a29bcc4d7d56d5be63b6d8f1c25c8f3205fd51ddbef1b324de89f67731271b24283 SHA512 3fe90150711eec1c4277e6b4cee2599e97edf0902ec7efae1ad836ccfe62233e2c6944f7abc30042e7dd5985ba1f8a986bc3de086739f5a8b64d18c2d7025742 DIST genpatches-6.1-107.base.tar.xz 5516960 BLAKE2B a4c1128db49bc5dec2aad2999279356c5c9578c8a7a1bd30c6896392da116325a81937ded85fd2684f206283a34fa3247af17ede459d33717cea0a58444760ef SHA512 ac371501c5a7e7e1f7ae2325aed969e2bb2788faffae6742f08836eb4495a21646d6875125957703fd2225066eabab9034022cf27a63c026ff02cbfcc9b00f24 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.163.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.163.ebuild new file mode 100644 index 000000000000..962a350fea30 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.15.163.ebuild @@ -0,0 +1,141 @@ +# Copyright 2020-2024 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##*.} + 10 )) +CONFIG_VER=5.15.19 +CONFIG_HASH=ec69da7a42b5b7c3da91572ef22097b069ddbd01 +GENTOO_CONFIG_VER=g13 + +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[@]}" +} |