blob: c25925066e7175940617feda183f42a66b37e776 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Copyright 2020-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
ETYPE="sources"
K_USEPV="yes"
UNIPATCH_STRICTORDER="yes"
K_SECURITY_UNSUPPORTED="1"
GIT_COMMIT="6.18-17"
CKV="$(ver_cut 1-2)"
inherit kernel-2
#detect_version
K_NOSETEXTRAVERSION="don't_set_it"
DESCRIPTION="The Liquorix Kernel Sources v6.x"
HOMEPAGE="https://liquorix.net/"
LIQUORIX_VERSION="${GIT_COMMIT/_p[0-9]*}"
LIQUORIX_FILE="${P}.tar.gz"
LIQUORIX_URI="https://github.com/damentz/liquorix-package/archive/${LIQUORIX_VERSION}.tar.gz -> ${LIQUORIX_FILE}"
SRC_URI="${KERNEL_URI} ${LIQUORIX_URI}";
KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86"
KV_FULL="${PVR/_p/-pf}"
S="${WORKDIR}"/linux-"${KV_FULL}"
pkg_setup(){
ewarn
ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way."
ewarn "If you need support, please contact the Liquorix developers 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_unpack() {
unpack "${LIQUORIX_FILE}"
kernel-2_src_unpack
}
src_prepare(){
# Taken from
# linux-lqx AUR package
local lqx_patches="${WORKDIR}/liquorix-package-${GIT_COMMIT}/linux-liquorix/debian/patches"
grep -P '^(zen|lqx)/' "${lqx_patches}/series" | while IFS= read -r line
do
einfo "Patching sources with $line"
eapply "${lqx_patches}/${line}"
done
# Adds config options for OpenRC/Systemd
eapply "${FILESDIR}"/4567_distro-Gentoo-Kconfig-r1.patch
cp -v "${WORKDIR}/liquorix-package-${GIT_COMMIT}/linux-liquorix/debian/config/kernelarch-x86/config-arch-64" \
"${S}/liquorix-package-default-config" || die
eapply_user
}
src_install() {
kernel-2_src_install
}
K_EXTRAEINFO="For more info on liquorix-sources and details on how to report problems, see: \
${HOMEPAGE}."
|