Skip to content

Commit

Permalink
sys-kernel/asahi-sources: add 6.11.4_p1
Browse files Browse the repository at this point in the history
Signed-off-by: James Calligeros <[email protected]>
  • Loading branch information
chadmed committed Oct 31, 2024
1 parent 161a877 commit 49c9a25
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys-kernel/asahi-sources/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ DIST genpatches-6.11-3.base.tar.xz 252308 BLAKE2B 4a410ef58fdaa2a24da1fef194cdc4
DIST genpatches-6.11-3.extras.tar.xz 4056 BLAKE2B 84e6bfed32549a2ee5752164a91cb4d01bb0ed4574af608a3a94fc7e78cc951398eb6404750b55368378c242286401382e8f2586d3a770bb6809bb92db085bf8 SHA512 a06ced9cdae186fed615fd42c70428ff025328800c15a1c52848fc4a52a456eb9d9c1158480269ca745eed03a8b91bb533867b46252d43b0a37673531c5b53bb
DIST linux-6.11.tar.xz 146900704 BLAKE2B e7750c0878d71a56a0ce52d4c4c912199dad5bf5e2e8f872585a6494afbb37cbd852e612a6858936d2dc9b7776a3933818f540db408d57e90d18ea5249bba7ab SHA512 329c1f94008742e3f0c2ce7e591a16316d1b2cb9ea4596d4f45604097e07b7aa2f64afa40630a07f321a858455c77aa32ba57b271932ddcf4dc27863f9081cea
DIST linux-asahi-6.11.2-1.patch 5658950 BLAKE2B 4aff9fdc37668e5ee8ba0bd81746923014267bb088c9c2023a761842d577ce3d82e71c9dc325c27a32f63632dc299f68aa46e127093dceddac881e1e1daffa5a SHA512 f4f750e7bf43602b55ec334929debc67fba6a468d1e93d3004487afe48f996ba369dc3f1b8d32c13fe50835ec9658045967a9dd53c0a6c563f772027e468deb1
DIST linux-asahi-6.11.4-1.patch 5522253 BLAKE2B ec2739bb1d5ff83027353a5a6c0e83bac939843da720423029497766081ecb9369853051254cf393da01b7e1822a1d0128fb23fcce8dd65efb48c33e159f681a SHA512 4d9b888cb052938e7bb1c8a81cb0d8f185f4cc4535d96992b644360c7164a7f7beea02e5eddbf55801b57f51d0073e206807ef6fc066049eb9d2f0d60f68d7cb
72 changes: 72 additions & 0 deletions sys-kernel/asahi-sources/asahi-sources-6.11.4_p1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Copyright 2023-2024 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="3"
K_NODRYRUN="1"

inherit kernel-2
detect_version
detect_arch

if [[ ${PV} != ${PV/_rc} ]] ; then
# $PV is expected to be of following form: 6.0_rc5_p1
MY_TAG="$(ver_cut 6)"
MY_BASE="$(ver_rs 2 - $(ver_cut 1-4))"
else
# $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
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}.patch
-> linux-${ASAHI_TAG}.patch
"
KV_FULL="${PVR/_p/-asahi-}"
S="${WORKDIR}/linux-${KV_FULL}"

KEYWORDS="~arm64"

DEPEND="
${DEPEND}
|| (
>=dev-lang/rust-bin-1.76[rust-src,rustfmt]
>=dev-lang/rust-1.76[rust-src,rustfmt]
)
dev-util/bindgen
"

UNIPATCH_STRICTORDER="yes"
UNIPATCH_LIST="
${FILESDIR}/asahi-6.8-config-gentoo-Drop-RANDSTRUCT-from-GENTOO_KERNEL_SEL.patch
${DISTDIR}/linux-${ASAHI_TAG}.patch
"

src_prepare() {
default

# remove asahi upstream set localversion, use EXTRAVERSION instead
rm localversion.05-asahi
}

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
}

0 comments on commit 49c9a25

Please sign in to comment.