diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-23 14:47:48 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-23 18:03:54 +0100 |
commit | 63ba6e8dc55041fc24b2497bd9aa1a38b55bb379 (patch) | |
tree | 3da6727cbe82fd7f5d9440645d28dac21bb01572 /sys-kernel | |
parent | sys-kernel/vanilla-kernel: Bump to 5.4.181 (diff) | |
download | gentoo-63ba6e8dc55041fc24b2497bd9aa1a38b55bb379.tar.gz gentoo-63ba6e8dc55041fc24b2497bd9aa1a38b55bb379.tar.bz2 gentoo-63ba6e8dc55041fc24b2497bd9aa1a38b55bb379.zip |
sys-kernel/gentoo-kernel: Bump to 5.4.181
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.4.181.ebuild | 100 |
2 files changed, 102 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest index 14b06f6c272b..b511eb29ec98 100644 --- a/sys-kernel/gentoo-kernel/Manifest +++ b/sys-kernel/gentoo-kernel/Manifest @@ -20,6 +20,8 @@ DIST genpatches-5.4-183.base.tar.xz 4413940 BLAKE2B 2f71eaa7ceeb4e1940c329a47ff0 DIST genpatches-5.4-183.extras.tar.xz 1812 BLAKE2B 6755576f737a247e0a09a3eb19886c09fbf2495a50c1af2f70df08b00a62247f83b904ae8d2d98dbbae528830853d87639304eb17b5a336c324d982a41cee0c1 SHA512 603e76667384e94dc0e8795ce6cb9b2966b81d6f3dc8fbba71ab84c20857bc31e5cf15ced293ae03eabd5ce3b0147cc39b59382733f284241d018fb0d5b8319a DIST genpatches-5.4-184.base.tar.xz 4427792 BLAKE2B b8f4a7219641518d8435dd8c4b99c33157a3a937edd307da40d5c4fd80873e3fb66003f370310a221df28fc25f3203176a1ce55b4c5da0899034c4f3617c98f3 SHA512 7b611a3ae72349dc2d708d06cf0de7522978bcc8f09d98271efbb9c3b8afa1c1e33ed18036655c9ffc0c38d6bd7fb665a7116f01c98f9fb04cd994372e30d3c5 DIST genpatches-5.4-184.extras.tar.xz 1816 BLAKE2B 53f485bcc1056f1efebb698164cf99713eef58e7a2ef1765dc86122a9d948f079f7708642441ed26e3dd0acaa523ff2c863fe25c9949d20e5f7852778df981a3 SHA512 874ae1450fa9ea5256ba495e80e000d46859a9b63905160b8707695fdd0ea86d6d8a0e6dfcd340402d3d290757b8e38c05d022be24320992f918a96300781bef +DIST genpatches-5.4-185.base.tar.xz 4446400 BLAKE2B 543f3c223d01c6a42fd2a5a8c2d35856ebea1567ad9bc0e6dfb4781e1cb7335f90ac63987ca614c3995121f39478575cd144f720561ea8e19efd1f8b1a353d7c SHA512 43eefa02743e516ab37effe13c89246679c4247314aaafa407d796489383cf730531f50a1b49b185bc8bdddbe62b7c47c36e7a10102fd5da7f8023bcd032165c +DIST genpatches-5.4-185.extras.tar.xz 1816 BLAKE2B 20364d1e6bca36b5335f6c0e0f63780b939668159207be2f4211da56525720963d432e90930151491962dc0353e48dca713a80e498f2da69912b709efca5bf6a SHA512 c80111e1c03629106a3f0839df80c12bb8cb6027d21cd98e7ce023f1d0eb8f188adb319d2c25cee9e2ca8c1b03f92bc0f69d02b23ad56c4eace4b5d5fd87927e DIST gentoo-kernel-config-5.15.5.tar.gz 4128 BLAKE2B e30fff372b0112cc05723463cb4e93de79b5b643483796402eb88a7e704706a4033af2dbab9424cf14b1d894b57fc053b969f5fbfa15cf74e30e3d045703918f SHA512 5e8c6945da5e9cfb8d20663910fc38ee36813067e1679e17bbf1dfc6fc0aa9125f1fc949d81937b297215925004e0ebfb3b55c7e707184b5ffcf23d28882113d DIST gentoo-kernel-config-5.4.114.tar.gz 1298 BLAKE2B e494041cd63ba53f055cfd555e359934d5054238bd096addd7965754e6708bada63398c4b315318f73130ed81c1391524388396775632248870721f1ce23f203 SHA512 225600db53532ee131dd83d10cecc97a83f4615975ff32f3f6190a15eace64707cb59490bb42940e4429f9054221b9d9a589ada443922062bb5ee18ecc42c26c DIST kernel-aarch64-fedora.config.5.10.12 223184 BLAKE2B a0246dac2f7a4ad6a55b611538d24382ac87a8960077811a859c9595ac67f961b4bccb7e139a89abc7c0e26e80832da5c94211fc658082f2e7dde984f14dd29d SHA512 7d803b347b136331db1ad6e22e0445fe0224c3e26cd7c034cbe9794915d457b492e05f77664865079874ec001351553652646e2e08d0fee31e30b841b0008f52 diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.181.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.181.ebuild new file mode 100644 index 000000000000..7286c7070096 --- /dev/null +++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.181.ebuild @@ -0,0 +1,100 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit kernel-build + +MY_P=linux-${PV%.*} +GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 4 )) +# https://koji.fedoraproject.org/koji/packageinfo?packageID=8 +CONFIG_VER=5.4.21 +CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea +GENTOO_CONFIG_VER=5.4.114 + +DESCRIPTION="Linux kernel built 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 + https://github.com/mgorny/gentoo-kernel-config/archive/v${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.config + -> kernel-x86_64.config.${CONFIG_VER} + ) + arm64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-aarch64.config + -> kernel-aarch64.config.${CONFIG_VER} + ) + ppc64? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-ppc64le.config + -> kernel-ppc64le.config.${CONFIG_VER} + ) + x86? ( + https://src.fedoraproject.org/rpms/kernel/raw/${CONFIG_HASH}/f/kernel-i686.config + -> kernel-i686.config.${CONFIG_VER} + ) +" +S=${WORKDIR}/${MY_P} + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86" +IUSE="debug" + +RDEPEND=" + !sys-kernel/gentoo-kernel-bin:${SLOT} +" +BDEPEND=" + debug? ( dev-util/pahole ) +" +PDEPEND=" + >=virtual/dist-kernel-${PV} +" + +src_prepare() { + local PATCHES=( + # meh, genpatches have no directory + "${WORKDIR}"/*.patch + ) + default + + # prepare the default config + case ${ARCH} in + amd64) + cp "${DISTDIR}/kernel-x86_64.config.${CONFIG_VER}" .config || die + ;; + arm64) + cp "${DISTDIR}/kernel-aarch64.config.${CONFIG_VER}" .config || die + ;; + 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.config.${CONFIG_VER}" .config || die + ;; + x86) + cp "${DISTDIR}/kernel-i686.config.${CONFIG_VER}" .config || die + ;; + *) + die "Unsupported arch ${ARCH}" + ;; + esac + + echo 'CONFIG_LOCALVERSION="-gentoo-dist"' > "${T}"/version.config || die + local merge_configs=( + "${T}"/version.config + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/base.config + ) + use debug || merge_configs+=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/no-debug.config + ) + [[ ${ARCH} == x86 ]] && merge_configs+=( + "${WORKDIR}/gentoo-kernel-config-${GENTOO_CONFIG_VER}"/32-bit.config + ) + + kernel-build_merge_configs "${merge_configs[@]}" +} |