mirror of
https://github.com/gentoo-mirror/gentoo-zh.git
synced 2025-04-17 23:18:49 -04:00
sys-kernel/tkg-sources: treeclean
This commit is contained in:
parent
c41392dae0
commit
ffe6f5ecf2
@ -1,10 +0,0 @@
|
||||
DIST genpatches-6.12-11.base.tar.xz 711536 BLAKE2B a9911cbb7cca5e6f3b06adba52289957eaccbdef25aa1d1f610ac7d7fde2a1cce46095e3d48b281a9ff0a9e88559a492833f0f39cf151ba560d6f3ff8fa5a4b3 SHA512 d33a54716e726cc8d19b366a7ad1cc51822eba4fa329eda596e6e7dbd851a9725db4e5f4bb827f36a26604b7c0b5a60154a2310f99b18265fb3c68251420fc1c
|
||||
DIST genpatches-6.12-11.extras.tar.xz 4056 BLAKE2B f8c2a145a06ea061100ba4d16e873a3186c4025d48610180aed135a8802494855decd8a58c24ffa4dd394cac843e41f45dd8aa93c28e03cdb1d46d8ce496da17 SHA512 e2808c8a70aaf3ef76348542a0aa0656f1ccdbe3523b22e5539d0c3952b4013aafddca5d881bc0458aab33f1b652f178d89ae4e596a9f541274f74eaf97ad16b
|
||||
DIST linux-6.12.tar.xz 147906904 BLAKE2B b2ec2fc69218cacabbbe49f78384a5d259ca581b717617c12b000b16f4a4c59ee348ea886b37147f5f70fb9a7a01c1e2c8f19021078f6b23f5bc62d1c48d5e5e SHA512 a37b1823df7b4f72542f689b65882634740ba0401a42fdcf6601d9efd2e132e5a7650e70450ba76f6cd1f13ca31180f2ccee9d54fe4df89bc0000ade4380a548
|
||||
DIST linux-tkg-6.12.8.tar.gz 18507996 BLAKE2B d27f4feed349b18956d21c7a08d5968047571ff1032fd83d17677ecbd59074c963018ade73e946c11a3f82059c968e2719ae7a61611d56aa91c9dfc48be13279 SHA512 e13c6c36d979e20a12133d4b5ae2b2e503d18f81894bc922a0f271fd5d9d76ecba41150ae4414b18e74bfe369f2ff28767e5db76213fdc016c078eb184de2439
|
||||
DIST tkg-sources-6.12.8-0001-bore.patch 30788 BLAKE2B bcd1b2c19715ae5b7936f18896b60c53fb61df6cdc422066499caf75a39f07f02832967c45fe588172fb31d41f208c2f01a229a15797f832dc11fe2f7534c895 SHA512 9b4b8e94311c9d35d57d0a8f6f317c1cc4fb249fe0c527cc4f6a854b8a146d317ebf8b860bde784115981bbd6031182c665e764ffb1c14473c7405080b72aae1
|
||||
DIST tkg-sources-6.12.8-0001-rt.patch 23893 BLAKE2B 08319d7a8c4f158b1358cd559e7bd12d614e063348a71b424ea82db5170d2f2894a53fbbc6b3e2a28c34a8672080c5e0af1fb877ef82b7e78ccf00e9b0b7eb4f SHA512 945dee1a7f6722f5a2582b48bb3897222821f381e551dc1eb723cf58b9fb308482c65f34360f2ea5a2a1fd3656e0988da8ad2e2cbaf2a31590717fb55b48c73d
|
||||
DIST tkg-sources-6.12.8-0005-bbr3.patch 127995 BLAKE2B 05575bb91aa6dc5a48e04f7af2e6b47e314cbe937a936ca6253de41811cd7cd3833239285e8c84120e7cad739d52265142e5fe8e5bdff93abbbd9d8f1cfb882e SHA512 f555e0e3033b1c4bd762da2798e8a7755140388d68f11df91656cb68d9807336513b87a477fd4e0065a7b08b368eecae6f1545cd333aa64fc7b5096c8a0a3416
|
||||
DIST tkg-sources-6.12.8-0007-crypto.patch 42517 BLAKE2B bd804d1cafd84f0507a8515f08e1d800d934d84efb7b4448d706fb5dda5e22db423411bbbaa5d525d4220af843b2f01267c402e3c97793cc170a1fb76aee1fc2 SHA512 e81f6fdb22a966b15acf9aab7039f8221eeed6513776f25e6817f91e472cd171c53602bcf009fc694091e150028b30ae0d5537f54808c968014c9b576535eb86
|
||||
DIST tkg-sources-6.12.8-0013-zstd.patch 924224 BLAKE2B bb5943013435d86dd5b12fe10783f8093267a1ee98ffaed70b468aa6f15cb85e3646a6bb8e09ef07442d5f4c56ec0cab4ef9de31b591e05aa50634cc6372dc19 SHA512 e238b05652fa6325ff5b70fbcb13ce1124e362f39e4f6dbdc19e101d0926a163bd6a6054e3dc9d0cedc489f9618fa7298a4cb54910b5f57b55a118ec2cdcf6f1
|
||||
DIST tkg-sources-6.12.8-more-ISA-levels-and-uarches-for-kernel-6.1.79+.patch 27994 BLAKE2B 011de524e3616e00819e63316ba3fc72659f77c8997d024a1727cb7e52044433ba9855a007a3e005605b1e95580dc411312801b3c5f2525577296fd155205f4f SHA512 3d4e6281ee1f4e04e1d284b56a06943e7ce8c3903b8fd88a6fdd3273dd8173c040f392f02caacc79acb0420a2cd7d5a3bb0040fd22da5b7f34d38bf423910b26
|
@ -1,39 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>blackteahamburger</name>
|
||||
<email>blackteahamburger@outlook.com</email>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="eevdf">Use EEVDF CPU scheduler</flag>
|
||||
<flag name="bore">Use BORE CPU scheduler</flag>
|
||||
<flag name="pds">Use PDS CPU scheduler</flag>
|
||||
<flag name="bmq">Use BMQ CPU scheduler</flag>
|
||||
<flag name="aggressive-ondemand">Use an aggressive ondemand governor for PDS/BMQ</flag>
|
||||
<flag name="sched-yield-type-0">No yield for PDS/BMQ</flag>
|
||||
<flag name="sched-yield-type-1">Yield only to better priority/deadline tasks for PDS/Deboost
|
||||
and requeue task for BMQ</flag>
|
||||
<flag name="sched-yield-type-2">Expire timeslice and recalculate deadline for PDS/Set rq
|
||||
skip task for BMQ</flag>
|
||||
<flag name="Arch">Use Arch patches</flag>
|
||||
<flag name="misc-adds">Enable misc additions</flag>
|
||||
<flag name="acs-override">Use ACS override patch</flag>
|
||||
<flag name="ntsync">Enable builtin support for ntsync</flag>
|
||||
<flag name="glitched-base">Use various patches and tweaks from Zen/Liquorix, Xanmod and the
|
||||
community</flag>
|
||||
<flag name="O3">Enable O3 optimization</flag>
|
||||
<flag name="graysky">Use graysky's cpu opts patch</flag>
|
||||
<flag name="clear">Use Clear Linux patches</flag>
|
||||
<flag name="openrgb">Add OpenRGB compatibility for certain i2c controllers</flag>
|
||||
<flag name="rt">Use RT patches (unsupported)</flag>
|
||||
<flag name="bbr3">Use BBR v3 (unsupported)</flag>
|
||||
<flag name="crypto">Use patches to improve performance of CRC32 and AES128 crypto
|
||||
(unsupported)</flag>
|
||||
<flag name="zstd">Use latest and improved ZSTD patch-set (unsupported)</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="cpe">cpe:/o:linux:linux_kernel</remote-id>
|
||||
<remote-id type="github">Frogging-Family/linux-tkg</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,130 +0,0 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="8"
|
||||
ETYPE="sources"
|
||||
K_WANT_GENPATCHES="base extras"
|
||||
K_GENPATCHES_VER="11"
|
||||
K_SECURITY_UNSUPPORTED="1"
|
||||
K_NOSETEXTRAVERSION="1"
|
||||
|
||||
inherit check-reqs kernel-2
|
||||
detect_version
|
||||
detect_arch
|
||||
|
||||
MY_P="linux-tkg-${PV}"
|
||||
MY_KV="${KV_MAJOR}.${KV_MINOR}"
|
||||
GIT_COMMIT_CACHYOS="cab04f4f528d9c5e8ec93207204f6f8ecd920ead"
|
||||
GIT_COMMIT_GRAYSKY="8b4675b3a96547b73fa92f87f6a6b3a2e387ac06"
|
||||
PRJC_REV="0"
|
||||
|
||||
DESCRIPTION="Full linux-tkg sources including the Gentoo patchset for the ${MY_KV} kernel tree"
|
||||
HOMEPAGE="https://github.com/Frogging-Family/linux-tkg"
|
||||
TKG_URI="https://github.com/Frogging-Family/linux-tkg/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||
CACHYOS_URI="https://raw.githubusercontent.com/CachyOS/kernel-patches/${GIT_COMMIT_CACHYOS}/${MY_KV}"
|
||||
SRC_URI="
|
||||
${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${TKG_URI}
|
||||
graysky? ( https://raw.githubusercontent.com/graysky2/kernel_compiler_patch/${GIT_COMMIT_GRAYSKY}/more-ISA-levels-and-uarches-for-kernel-6.1.79%2B.patch
|
||||
-> ${P}-more-ISA-levels-and-uarches-for-kernel-6.1.79+.patch )
|
||||
bore? ( ${CACHYOS_URI}/sched/0001-bore.patch -> ${P}-0001-bore.patch )
|
||||
rt? ( ${CACHYOS_URI}/misc/0001-rt.patch -> ${P}-0001-rt.patch )
|
||||
bbr3? ( ${CACHYOS_URI}/0005-bbr3.patch -> ${P}-0005-bbr3.patch )
|
||||
crypto? ( ${CACHYOS_URI}/0007-crypto.patch -> ${P}-0007-crypto.patch )
|
||||
zstd? ( ${CACHYOS_URI}/0013-zstd.patch -> ${P}-0013-zstd.patch )
|
||||
"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="+eevdf bore pds bmq +aggressive-ondemand sched-yield-type-0 +sched-yield-type-1 sched-yield-type-2 +Arch +misc-adds acs-override ntsync +glitched-base O3 +graysky +clear openrgb rt bbr3 crypto zstd"
|
||||
REQUIRED_USE="
|
||||
^^ ( eevdf bore pds bmq )
|
||||
pds? ( ^^ ( sched-yield-type-0 sched-yield-type-1 sched-yield-type-2 ) )
|
||||
bmq? ( ^^ ( sched-yield-type-0 sched-yield-type-1 sched-yield-type-2 ) )
|
||||
"
|
||||
|
||||
PATCHESDIR="${WORKDIR}/${MY_P}/linux-tkg-patches/${MY_KV}"
|
||||
|
||||
pkg_pretend() {
|
||||
CHECKREQS_DISK_BUILD="4G"
|
||||
check-reqs_pkg_pretend
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
unpack "${MY_P}.tar.gz"
|
||||
kernel-2_src_unpack
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
if use eevdf; then
|
||||
eapply "${PATCHESDIR}/0003-glitched-eevdf-additions.patch"
|
||||
elif use bore; then
|
||||
eapply "${DISTDIR}/${P}-0001-bore.patch"
|
||||
elif use pds || use bmq; then
|
||||
eapply "${PATCHESDIR}/0009-prjc_v${MY_KV}-r${PRJC_REV}.patch"
|
||||
|
||||
use aggressive-ondemand && eapply "${PATCHESDIR}/0009-glitched-ondemand-bmq.patch"
|
||||
|
||||
if use pds; then
|
||||
eapply "${PATCHESDIR}/0005-glitched-pds.patch"
|
||||
elif use bmq; then
|
||||
eapply "${PATCHESDIR}/0009-glitched-bmq.patch"
|
||||
fi
|
||||
|
||||
local sched_yield_type
|
||||
if use sched-yield-type-0; then
|
||||
sched_yield_type="0"
|
||||
elif use sched-yield-type-1; then
|
||||
sched_yield_type="1"
|
||||
elif use sched-yield-type-2; then
|
||||
sched_yield_type="2"
|
||||
fi
|
||||
sed -i -e \
|
||||
"s/int sched_yield_type __read_mostly = 1;/int sched_yield_type __read_mostly = ${sched_yield_type};/" \
|
||||
kernel/sched/alt_core.c || die
|
||||
fi
|
||||
|
||||
use Arch && eapply "${PATCHESDIR}/0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch"
|
||||
use misc-adds && eapply "${PATCHESDIR}/0012-misc-additions.patch"
|
||||
use acs-override && eapply "${PATCHESDIR}/0006-add-acs-overrides_iommu.patch"
|
||||
use ntsync && eapply "${PATCHESDIR}/0007-v${MY_KV}-ntsync.patch"
|
||||
use glitched-base && eapply "${PATCHESDIR}/0003-glitched-base.patch"
|
||||
|
||||
if use O3; then
|
||||
sed -i -e 's/-std=gnu11/$(CSTD_FLAG)/' "${PATCHESDIR}/0013-optimize_harder_O3.patch" || die
|
||||
eapply "${PATCHESDIR}/0013-optimize_harder_O3.patch"
|
||||
fi
|
||||
|
||||
use graysky && eapply "${DISTDIR}/${P}-more-ISA-levels-and-uarches-for-kernel-6.1.79+.patch"
|
||||
use clear && eapply "${PATCHESDIR}/0002-clear-patches.patch"
|
||||
use openrgb && eapply "${PATCHESDIR}/0014-OpenRGB.patch"
|
||||
use rt && eapply "${DISTDIR}/${P}-0001-rt.patch"
|
||||
use bbr3 && eapply "${DISTDIR}/${P}-0005-bbr3.patch"
|
||||
use crypto && eapply "${DISTDIR}/${P}-0007-crypto.patch"
|
||||
use zstd && eapply "${DISTDIR}/${P}-0013-zstd.patch"
|
||||
|
||||
kernel-2_src_prepare
|
||||
rm "${S}/tools/testing/selftests/tc-testing/action-ebpf"
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
ewarn
|
||||
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
|
||||
ewarn "If you need support, please contact https://github.com/microcai/gentoo-zh and ${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
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -r "${WORKDIR}/${MY_P}" || die
|
||||
kernel-2_src_install
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
kernel-2_pkg_postinst
|
||||
einfo "For more info on this patchset, and how to report problems, see:"
|
||||
einfo "${HOMEPAGE}"
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
kernel-2_pkg_postrm
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user