From 723fd38c7fcf5c19e14be26478f4e5a618247f44 Mon Sep 17 00:00:00 2001 From: HougeLangley Date: Thu, 28 Oct 2021 15:31:08 +0800 Subject: [PATCH] sys-kernel/xanmod-hybrid: Bump to v5.14.15 --- sys-kernel/xanmod-hybrid/Manifest | 2 + .../xanmod-hybrid-5.14.15.ebuild | 96 +++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 sys-kernel/xanmod-hybrid/xanmod-hybrid-5.14.15.ebuild diff --git a/sys-kernel/xanmod-hybrid/Manifest b/sys-kernel/xanmod-hybrid/Manifest index d998743..a9ff563 100644 --- a/sys-kernel/xanmod-hybrid/Manifest +++ b/sys-kernel/xanmod-hybrid/Manifest @@ -18,6 +18,8 @@ DIST patch-5.14.14-xanmod1 6245572 BLAKE2B e85342e78096debe9e2a7e2a418bfcf2888f0 DIST patch-5.14.14-xanmod1-cacule 6295916 BLAKE2B efc7bf2fc9ff51a2b37442cf72781d1c7e90b155990490033e01327941bca733ac701cebf4d2afacf9dc1c32c0414bc8b03154a3d44124f2444c4fd0fce2dba6 SHA512 8bcab1fa0c3aed9f76829ac7b78c93b78a0fa5162937b6bfef0eb90efcd60b208f5f7f5e9b30320030cf76561521644d78c066189c5775bec115027073d23ff6 DIST patch-5.14.14-xanmod2 6245572 BLAKE2B ed7bc8cde2fe3dab512bee40d1651afbdc339fab077ecc816ed5dfaba4bc32888cceb588d7faadec991d5edf070d1cc5845b6d89d0cbfb4002b37b0f1bbb1629 SHA512 9b9bbc105828dbc4b517056d6f393d18d99f2a8045e7d3e742b903df35a7f79d46dd151ef16987abd8df115c1d0fad0f22f6c4edfc70e3933ac91d02e1b3b140 DIST patch-5.14.14-xanmod2-cacule 6295916 BLAKE2B d9125dc0243f7df82c798549dd2def5eb66418c7b64a12e5034396b3383e140047aa3dfbc14bf79e3f78b9fe54e597900d19e90e5c11c2e2d63b7df0914aebd6 SHA512 3297afc2fe2529c5768601c952130affaf6b9fa0e58101b93e22229a9947f7f67b563aa0a9dbc295bf3ecb0e8c2c0ce5d9903f5d309a7642d2bd02b063ac198a +DIST patch-5.14.15-xanmod1 6452076 BLAKE2B 2e23907fbaa36b76a04963a8fd83e7543312ed665c7a3154af8658b256e30d5af9152ddc6983c13658d9e870a0fbfb677678e21a896a3169f5266d90d4be0f60 SHA512 31c663160d8039a50d60a681909e8350902b6a0c33455a740631692b2e2da7da947e24159ca27183ef2eddcc7dd91a5e3951f52d692179831921ac8796b7dc8f +DIST patch-5.14.15-xanmod1-cacule 6502420 BLAKE2B 5d9d36f307a88effddb4d14a7c745413e8fca815ccdfeacb7a88238b331115b2bca553466bbf7415acd1678b8c89cedb869355c786d7c009cc9f447cf0f979c2 SHA512 49d776439eaf6587804fbe9a636a636c007f65e81dd33bd37e460f8981649d1dd42b4313f9dab7f88773c800d3599e4e701b9170f9af42e0c73ab1ea7294d1f9 DIST patch-5.14.2-xanmod1 3798120 BLAKE2B 8761eb0f42888f21480dc3792206376bff88725a664306d21d4686cc696caad2deac6a311d741cc65dce0752bf8c786404ed4ca20c9ea364ee44edbccaf70dac SHA512 b56151397e185a443742f2b29d03ca7ad1d1f0de7437a9fc0fe9dcad5b0f9ee8fc8daec7433b4a27c16d785f831035de452c7f4c76056c14d8bdf80a579d5c4e DIST patch-5.14.2-xanmod1-cacule 3848797 BLAKE2B c00392f83ea667184807956a780d38122b13764b7442f0c13971e8b20df590c7c42d25b740ee9ab8fbe818bec5b3bf0b9ec1e782f493bea400f1c1615b8b5e71 SHA512 dc3d07e217d4f0cf92c78d6838527228fe773ee4b98c12ae2b7e69f886cbe6bfe6b567f8b2e93d464799243548da99ac04337cf7a67c4474c0396a35d48b7d15 DIST patch-5.14.3-xanmod1 3832881 BLAKE2B 9bb9b0f6d4096b807ffb9015b7ee39746c798475323798926a130650db39e53676bb3fa9f11f5a3cfe748b985b087aac4c3acde6cf6256d3f59935fbbb0a9fda SHA512 d381fe7d9e96dfdc12f3bf3911ba36ad29462a26215a98d4605c7afa7319cdc3f3480831b67730eb5a26781c0d00741f88e2038c301333669a2b7e91b394e90b diff --git a/sys-kernel/xanmod-hybrid/xanmod-hybrid-5.14.15.ebuild b/sys-kernel/xanmod-hybrid/xanmod-hybrid-5.14.15.ebuild new file mode 100644 index 0000000..be587e2 --- /dev/null +++ b/sys-kernel/xanmod-hybrid/xanmod-hybrid-5.14.15.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# Define what default functions to run +ETYPE="sources" + +# No 'experimental' USE flag provided, but we still want to use genpatches +K_EXP_GENPATCHES_NOUSE="1" + +# Just get basic genpatches, -xanmod patch set already includes main updates +K_GENPATCHES_VER="1" + +# -xanmod-hybrid already sets EXTRAVERSION to kernel Makefile +K_NOSETEXTRAVERSION="1" + +# Not supported by the Gentoo security team +K_SECURITY_UNSUPPORTED="1" + +# We want the very basic patches from gentoo-sources, experimental patch is +# already included in xanmod-hybrid +K_WANT_GENPATCHES="base extras" + +# Default enable Xanmod, You have to choose one of them. +# Both of them will make some errors +IUSE="+xanmod cacule" +REQUIRED_USE="^^ ( xanmod cacule )" + +# If you have been enable src_prepare-overlay +# please unmerge sys-kernel/xanmod-sources +RDEPEND=" + !sys-kernel/xanmod-sources + !sys-kernel/xanmod-rt +" +DEPEND="app-arch/cpio" + +inherit kernel-2 +detect_version + +DESCRIPTION="Xanmod, Xanmod-CaCule, cjktty, patchset for main kernel tree" +HOMEPAGE="https://github.com/HougeLangley/customkernel" +LICENSE+=" CDDL" + +SRC_URI=" +${KERNEL_BASE_URI}/linux-5.14.tar.xz +${GENPATCHES_URI} +https://github.com/HougeLangley/customkernel/releases/download/v5.14-patch/patch-5.14.15-xanmod1 +https://github.com/HougeLangley/customkernel/releases/download/v5.14-patch/patch-5.14.15-xanmod1-cacule +https://github.com/HougeLangley/customkernel/releases/download/v5.14-others/750HZ.patch +https://github.com/HougeLangley/customkernel/releases/download/v5.14-others/v1-cjktty-5.14.patch +" +KEYWORDS="~amd64" + +S="${WORKDIR}/linux-${PV}-xanmod" + +K_EXTRAEINFO="For more info on xanmod-hybrid and details on how to report problems, see: ${HOMEPAGE}." + +PATCHES=( "${DISTDIR}/patch-5.14.15-xanmod1" +"${DISTDIR}/patch-5.14.15-xanmod1-cacule" +"${DISTDIR}/750HZ.patch" +"${DISTDIR}/v1-cjktty-5.14.patch" ) + +src_prepare() { + # Default enable Xanmod + if use xanmod ; then + eapply "${DISTDIR}/patch-5.14.15-xanmod1" || die + eapply "${DISTDIR}/750HZ.patch" || die + eapply "${DISTDIR}/v1-cjktty-5.14.patch" || die + fi + # Enable Xanmod-CaCule + if use cacule ; then + eapply "${DISTDIR}/patch-5.14.15-xanmod1-cacule" || die + eapply "${DISTDIR}/750HZ.patch" || die + eapply "${DISTDIR}/v1-cjktty-5.14.patch" || die + fi + + kernel-2_src_prepare +} + +pkg_setup() { + ewarn "" + ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." + ewarn "If you need support, please contact the ${HOMEPAGE} directly." + ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" + ewarn "the ebuilds. Thank you." + ewarn "" + + kernel-2_pkg_setup +} + +pkg_postinst() { + elog "MICROCODES" + elog "Use xanmod-hybrid with microcodes" + elog "Read https://wiki.gentoo.org/wiki/Intel_microcode" +}