-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys-kernel/liquorix-sources: Bump version
- Loading branch information
1 parent
d3dd03a
commit c5b3e7d
Showing
2 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
86 changes: 86 additions & 0 deletions
86
sys-kernel/liquorix-sources/liquorix-sources-5.16_p4.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
# Copyright 1999-2022 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="+cjk" | ||
|
||
# If you have been enable src_prepare-overlay | ||
# please unmerge sys-kernel/xanmod-sources | ||
RDEPEND="" | ||
DEPEND=" | ||
app-arch/cpio | ||
sys-devel/bc | ||
sys-apps/kmod | ||
dev-libs/elfutils | ||
dev-util/pahole | ||
" | ||
|
||
inherit kernel-2 | ||
detect_version | ||
|
||
DESCRIPTION="Liquorix kernel is best one for desktop, multimedia and gaming workloads" | ||
HOMEPAGE="https://liquorix.net/" | ||
|
||
SRC_URI=" | ||
${KERNEL_BASE_URI}/linux-5.16.tar.xz | ||
${GENPATCHES_URI} | ||
https://github.com/HougeLangley/customkernel/releases/download/v5.16-patch/v5.16.7-lqx2.patch | ||
https://github.com/HougeLangley/customkernel/releases/download/v5.16-patch/v1-cjktty-5.16.patch | ||
" | ||
KEYWORDS="~amd64" | ||
|
||
S="${WORKDIR}/linux-${PVR}-liquorix" | ||
|
||
K_EXTRAEINFO="For more info on liquorix-kernel and details on how to report problems, see: ${HOMEPAGE}." | ||
|
||
UNIPATCH_LIST="${DISTDIR}/v5.16.7-lqx2.patch" | ||
|
||
PATCHES="${DISTDIR}/v1-cjktty-5.16.patch" | ||
|
||
src_prepare() { | ||
# Default enable CJKTTY | ||
if use cjk ; then | ||
eapply "${DISTDIR}/v1-cjktty-5.16.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 Liquorix-Kernel with microcodes" | ||
elog "Read https://wiki.gentoo.org/wiki/Intel_microcode" | ||
} |