-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Janne Grunau <[email protected]>
- Loading branch information
Showing
2 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
DIST u-boot-2023.07.02_p4.tar.gz 25087946 BLAKE2B 693c4181df35fc26fa4b753014a127c93a5662bdaf7be2391ba2541a9ce4abf988b28e10a90cfb3949ebc5c931060d2313bc59b15a6f12b876326e9f76e59cfb SHA512 7ef733b7a40dff53a2e8cd961de218e65b2812cd058471a80876da78b0b229adeae1629222d99d2efcbf17c4b6aa9e8dfdd39faac053aba1d4f312d64363b5ca | ||
DIST u-boot-2024.04_p1.tar.gz 26187861 BLAKE2B 42325ebadcebda56b38f6abce213ee7bbdce73101498e90a44cbe354e1af61cfc8285f5290db713431887d60b4750cfacd2eafa7606ec423688af8c01903276c SHA512 47ac7b4972d460de12035971e721c636591851df8145bb6c1d1c340a43211c7efa22a4ce9e0a46089462151da47a78f0272a72e7404b8d3dc935a8e4d37d1333 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Copyright 2023 James Calligeros <[email protected]> | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI="8" | ||
PYTHON_COMPAT=( python3_{10..11} ) | ||
|
||
# $PV is expected to be of following form: 2023.07_p2 | ||
MY_TAG="$(ver_cut 4)" | ||
MY_P="asahi-v$(ver_cut 1-2)-${MY_TAG}" | ||
|
||
DESCRIPTION="Asahi Linux fork of Das U-Boot" | ||
HOMEPAGE="https://asahilinux.org/" | ||
SRC_URI="https://github.com/AsahiLinux/u-boot/archive/refs/tags/${MY_P}.tar.gz -> ${PN}-${PV}.tar.gz" | ||
LICENSE="GPL-2" | ||
SLOT="0" | ||
|
||
KEYWORDS="~arm64" | ||
|
||
PATCHES=( | ||
) | ||
|
||
BDEPEND=" | ||
app-arch/cpio | ||
dev-lang/perl | ||
sys-devel/bc | ||
sys-devel/bison | ||
sys-devel/flex | ||
dev-build/make | ||
>=sys-libs/ncurses-5.2 | ||
virtual/libelf | ||
virtual/pkgconfig | ||
sys-apps/dtc | ||
dev-vcs/git" | ||
|
||
RDEPEND="${BDEPEND} | ||
sys-apps/asahi-scripts" | ||
|
||
src_unpack() { | ||
unpack ${PN}-${PV}.tar.gz | ||
mv u-boot-${MY_P} ${PN}-${PV} | ||
} | ||
|
||
src_configure() { | ||
emake apple_m1_defconfig | ||
} | ||
|
||
src_compile() { | ||
cd "${S}" || die | ||
emake | ||
} | ||
|
||
src_install() { | ||
dodir /usr/lib/asahi-boot | ||
cp "${S}"/u-boot-nodtb.bin "${ED}"/usr/lib/asahi-boot/u-boot-nodtb.bin || die | ||
} | ||
|
||
pkg_postinst() { | ||
elog "U-Boot has been installed to /usr/lib/asahi-boot/u-boot-nodtb.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 "U-Boot 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." | ||
} |