Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys-boot/m1n1: add 1.4.16 #117

Merged
merged 1 commit into from
Oct 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sys-boot/m1n1/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
DIST m1n1-1.4.14.tar.gz 837044 BLAKE2B 9551175345947abd0890943795893fb4b9b88cbf6d262305e1a0ec56531493411930cbda6f649f7bbea90239640ccd95b96b4a310cc12bc74944983ddf5e7b97 SHA512 5fee4af23dab761b5ee72ef1ddef654e8c1addc8faecef5963b87d69da89739574a5fc541c9a779c257be08f8b15f2e4ba59cbaaaf765a6b82a0696469455e2e
DIST m1n1-1.4.15.tar.gz 839484 BLAKE2B 373c653f493998db1072ca957e54c24cbfe3869bb772c0b72a333b576d33bb993e0a93b9092ec288e1ffd8bafbe7a658c1c566799b9bec3dc05cd999485b5f71 SHA512 780a93597789894f2a4f8bf03fd95f4997be457a978a87fa18ca0c7edcdf0283e42b6dfdde5fae9d0fff2ae1c6971a565b31fedce8cf5f874efc818376329978
DIST m1n1-1.4.16.tar.gz 840779 BLAKE2B be7deb6ed72c61b5c9a033228bc12c7198a295918700ba7c2c1d4b2799aa3f0bd720305c5194c11935bd7781562c859a6ddd240bafe94f60ef36f7ee0cddeb50 SHA512 0feb315da5a05b307c77d3a91f03c050e13c0f239f5cf1369c88026f137a2c43ea5a00016f92b8fc149bd62f97ec976110750d4eff226fb6eff9c8f5f4cc4244
57 changes: 57 additions & 0 deletions sys-boot/m1n1/m1n1-1.4.16.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
# Copyright 2022 James Calligeros <[email protected]>
# Distributed under the terms of the GNU General Public License v2

EAPI="7"

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
sys-kernel/asahi-kernel
)
"

BDEPEND="${BDEPEND}
clang? ( sys-devel/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."
}
Loading