Skip to content

Commit

Permalink
sys-boot/u-boot: add 2024.10_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 c7b0175 commit 62411ba
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
1 change: 1 addition & 0 deletions sys-boot/u-boot/Manifest
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
DIST u-boot-2024.04_p1.tar.gz 26187861 BLAKE2B 42325ebadcebda56b38f6abce213ee7bbdce73101498e90a44cbe354e1af61cfc8285f5290db713431887d60b4750cfacd2eafa7606ec423688af8c01903276c SHA512 47ac7b4972d460de12035971e721c636591851df8145bb6c1d1c340a43211c7efa22a4ce9e0a46089462151da47a78f0272a72e7404b8d3dc935a8e4d37d1333
DIST u-boot-2024.10_p1.tar.gz 35135224 BLAKE2B dbedf75b0efdc418b24afebc221bfddc357a72b524071d9b706cdccaff2ea22217483de3cc29c5c005635d4cd73dee71a5c39fa4de44b5afe8d1dc06851b67fe SHA512 a8348c19b1508711ace4ba2ede40462f892244e0ca52aac2a6b31dd2387d18bd3f18bccfb416235ddc2edf9930fb3c990fa8e8f039f29615efbd87d15e87e435
68 changes: 68 additions & 0 deletions sys-boot/u-boot/u-boot-2024.10_p1.ebuild
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."
}

0 comments on commit 62411ba

Please sign in to comment.