summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-03-22 17:37:28 +0100
committerMichał Górny <mgorny@gentoo.org>2023-03-22 20:58:04 +0100
commit8b6c9c578da7cd5bbd9154552509e9017db271da (patch)
tree69438992c8131e6518613a95e671224c8921ea64 /sys-kernel
parentsys-kernel/vanilla-kernel: Bump to 5.4.238 (diff)
downloadgentoo-8b6c9c578da7cd5bbd9154552509e9017db271da.tar.gz
gentoo-8b6c9c578da7cd5bbd9154552509e9017db271da.tar.bz2
gentoo-8b6c9c578da7cd5bbd9154552509e9017db271da.zip
sys-kernel/gentoo-kernel: Bump to 5.4.238
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.4.238.ebuild103
2 files changed, 105 insertions, 0 deletions
diff --git a/sys-kernel/gentoo-kernel/Manifest b/sys-kernel/gentoo-kernel/Manifest
index fb5a676925b8..c07b7dd046f5 100644
--- a/sys-kernel/gentoo-kernel/Manifest
+++ b/sys-kernel/gentoo-kernel/Manifest
@@ -24,6 +24,8 @@ DIST genpatches-5.4-242.base.tar.xz 5610464 BLAKE2B 54d7c2e11a6b21ed8b16d26a56ff
DIST genpatches-5.4-242.extras.tar.xz 1812 BLAKE2B d2b8f6655e540964c1c6fd81a5e74bc2e7001bf86ec8a7e8293b2088ae24ce4bd41d0eb5097011a2c9669b9ff479bc828c2f8425924c920f35193d466b4dba58 SHA512 8d76a855216ef7dc89babce2d35a7b6b58b641105c117e246a01a779396fdcdb6cbcf7b599683ecbfeb53df09504244cca5569b08b15a4fbe6b81b10d51c8d86
DIST genpatches-5.4-243.base.tar.xz 5625924 BLAKE2B 5f0df2acaa454f6544e56ed23017ee39e085c7145d5acd6ec696c603caed7732d4858b0dd06b39438df3198edf69f598d42a3a62b5237a9a39e50d1e5753580f SHA512 36281506b470556bf21d374c3570cbf804429978c000634dd0b3904fa97d0b107fea8fdb4177b7a2d8d217bde32e7d05165730ee3823002fa8c7dd5bd5ec170b
DIST genpatches-5.4-243.extras.tar.xz 1812 BLAKE2B 41f15599d6e24946a023a349a572a89bae06ea2171bd23865b65ff418454da58b9b36c4df8676ac60d74291f6f243a4c25ac58148da5704c567073429382eb69 SHA512 f89dee9b5bebd46a16c7e2f6e543d1df1aabe0f26c6232c8c8c9e62bd29b205bd65f7cb103baefc21f33da3556e4e0fa95ee25bc4b2eb26b655417bc1cbdeea2
+DIST genpatches-5.4-244.base.tar.xz 5634292 BLAKE2B 0ca2eb4409ae3a03f18601be767061ebc9d363eb1da47466245d93d27f8fec567b9144f8e1a63a0034f504f738bcca7477aaf863df2451930b49900f5f177a71 SHA512 023c608e4e2511bec82d0be0ed8bfe75cd90cc9f96977fbcf9980c85d841eccea232f886483488cb4e9703cb35dc7b53a4109ae1737e631b4b5a4e950a65b5a6
+DIST genpatches-5.4-244.extras.tar.xz 1812 BLAKE2B a8a48897765d7a3a80ae9ba0bf9a0557fb0335f80046c6003d35303d18f1b27cd4819caf5be67db19573fd67080fd43afda67bc46d10850ed6e71881b6218446 SHA512 7009108d6dd5b29e60382f4bd5a4e0a190e726e9e0d2310cd67dc7fe86bff0c9674d04f34eca8006518c47f73bd2e6b1d2f7065117252fe34d90ab44b339fcc9
DIST genpatches-6.1-14.base.tar.xz 774040 BLAKE2B 8e0866c762e2711b766cc75630d66c7c46221bdc47357a903c7e8506ad122b7b5ba84d102b19743d236ac5579b44d24f77b9f52f3c23695ab6a279cf7875e735 SHA512 6a753146013baf0b94d83abd690118517679d4d7dcf6e9f86cf8de35e24f80a792e9c0692f237098671c316d046d6f65f8d3512255e572daf6a8ca81853beca0
DIST genpatches-6.1-14.extras.tar.xz 3804 BLAKE2B 7f016579b130c9a4f7a8ec946254dbd682f22e5654ae777d11b265dafe2b177a4c40c5a979a760a5bd6ed3dac057b90a3120c60b958f6b748ea4731b9a5f1ea6 SHA512 2807d359459dd11b9d3356fcac609dbfb8487e8c924cc543ef37698667b1c8b74cff7b015839ca0677cf1f96b566e0b5018c057b517275886ab500cd2ca49653
DIST genpatches-6.1-18.base.tar.xz 833216 BLAKE2B f1b86487c82d4354347171df635192a6276a4d0a9561a415270a85caa46401e4b9089f847346cbf441f8c6a4d4012234d83b31fca5797cc6296010f225392990 SHA512 155207127c1c58b2497788d5b7541ba1872fefea3d2c7804356e5bb6d28dae2f0400dbab44cf39b847f89e7a058710b8528059d75f0e92b63d3d37fd0a515ca8
diff --git a/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.238.ebuild b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.238.ebuild
new file mode 100644
index 000000000000..ca09c652dc92
--- /dev/null
+++ b/sys-kernel/gentoo-kernel/gentoo-kernel-5.4.238.ebuild
@@ -0,0 +1,103 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit kernel-build
+
+MY_P=linux-${PV%.*}
+GENPATCHES_P=genpatches-${PV%.*}-$(( ${PV##*.} + 6 ))
+# https://koji.fedoraproject.org/koji/packageinfo?packageID=8
+CONFIG_VER=5.4.21
+CONFIG_HASH=2809b7faa6a8cb232cd825096c146b7bdc1e08ea
+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/~alicef/dist/genpatches/${GENPATCHES_P}.base.tar.xz
+ https://dev.gentoo.org/~alicef/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.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[@]}"
+}