Install this version:
emerge -a =sys-boot/m1n1-1.5.2-r1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =sys-boot/m1n1-1.5.2-r1
Or alternatively:
emerge --autounmask-write -a =sys-boot/m1n1-1.5.2-r1
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.5.2-r1 | 8 | arm64 | 0 |
# Copyright 2022 James Calligeros <jcalligeros99@gmail.com>
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Apple Silicon bootloader and experimentation playground"
HOMEPAGE="https://asahilinux.org/"
SRC_URI="https://github.com/AsahiLinux/m1n1/archive/refs/tags/v${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="arm64"
IUSE="clang"
BDEPEND="dev-build/make"
RDEPEND="
sys-boot/u-boot
|| (
sys-kernel/asahi-sources
virtual/dist-kernel:asahi
)
"
BDEPEND="${BDEPEND}
clang? ( llvm-core/clang )
"
src_compile() {
cd "${S}" || die
if use clang; then
emake USE_CLANG=1 \
RELEASE=1 \
ARCH="${CHOST}"
else
emake USE_CLANG=0 \
RELEASE=1 \
ARCH="${CHOST}-"
fi
}
src_install() {
dodir /usr/lib/asahi-boot
cp "${S}"/build/m1n1.bin "${ED}"/usr/lib/asahi-boot/m1n1.bin || die
}
pkg_postinst() {
elog "m1n1 has been installed at /usr/lib/asahi-boot/m1n1.bin"
elog "You must run update-m1n1 for the new version to be installed"
elog "in the ESP."
elog "Please see the Asahi Linux Wiki for more information."
}
pkg_postrm() {
elog "m1n1 has been removed from /usr/lib/asahi-boot/ but has not"
elog "been removed from the ESP. You need to do this manually, though"
elog "you really shouldn't."
}
Manage flags for this package:
euse -i <flag> -p sys-boot/m1n1 |
euse -E <flag> -p sys-boot/m1n1 |
euse -D <flag> -p sys-boot/m1n1
sys-boot/u-boot || ( sys-kernel/asahi-sources virtual/dist-kernel:asahi )
clang? ( llvm-core/clang )