blob: 141ae4f987eef4052f7f1f9108ee78bfd5625ba7 (
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
|
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
ETYPE="sources"
CKV="$(ver_cut 1-3)"
K_SECURITY_UNSUPPORTED="1"
K_WANT_GENPATCHES="base extras"
K_GENPATCHES_VER="13"
K_NODRYRUN="1"
RUST_MIN_VER="1.85.0"
RUST_REQ_USE='rust-src,rustfmt'
inherit kernel-2 rust
detect_version
detect_arch
# $PV is expected to be of following form: 5.19.0_p1
MY_TAG="$(ver_cut 5)"
if [[ "$(ver_cut 3)" == "0" ]] ; then
MY_BASE="$(ver_cut 1-2)"
else
MY_BASE="$(ver_cut 1-3)"
fi
EXTRAVERSION="-asahi-${MY_TAG}"
ASAHI_TAG="asahi-${MY_BASE}-${MY_TAG}"
DESCRIPTION="Asahi Linux kernel sources"
HOMEPAGE="https://asahilinux.org"
SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI}
https://github.com/AsahiLinux/linux/compare/v${MY_BASE}...${ASAHI_TAG}.diff
-> linux-${ASAHI_TAG}.diff
"
KV_FULL="${PVR/_p/-asahi-}"
S="${WORKDIR}/linux-${KV_FULL}"
KEYWORDS="arm64"
DEPEND="
${DEPEND}
dev-util/bindgen
"
UNIPATCH_LIST="
${FILESDIR}/asahi-6.8-config-gentoo-Drop-RANDSTRUCT-from-GENTOO_KERNEL_SEL.patch
${DISTDIR}/linux-${ASAHI_TAG}.diff
"
pkg_postinst() {
einfo "For more information about Asahi Linux please visit ${HOMEPAGE},"
einfo "or consult the Wiki at https://github.com/AsahiLinux/docs/wiki."
kernel-2_pkg_postinst
}
|