New package: rockpro64-uboot

This commit is contained in:
Tiemen Werkman 2021-10-13 16:40:20 +02:00 committed by classabbyamp
parent 03d69e22c5
commit 14465d61f1
2 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,43 @@
# Template file for 'rockpro64-uboot'
pkgname=rockpro64-uboot
version=2024.07
revision=1
archs="aarch64*"
hostmakedepends="bison flex bc dtc which python3 swig python3-devel python3-setuptools python3-pyelftools openssl-devel libuuid-devel gnutls-devel ncurses-libtinfo-devel"
makedepends="atf-rk3399-bl31"
depends="u-boot-tools"
short_desc="Das U-Boot for the RockPro64 SBC"
maintainer="Tim Sandquist <tim.sandquist@gmail.com>"
license="GPL-2.0-or-later, BSD-3-Clause"
homepage="https://www.denx.de/wiki/U-Boot/"
distfiles="https://ftp.denx.de/pub/u-boot/u-boot-${version}.tar.bz2"
checksum=f591da9ab90ef3d6b3d173766d0ddff90c4ed7330680897486117df390d83c8f
do_configure() {
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
vsed -i -e '/CONFIG_BAUDRATE/s/=.*/=115200/' configs/rockpro64-rk3399_defconfig
make ${makejobs} rockpro64-rk3399_defconfig
}
do_build() {
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
if [ "$CROSS_BUILD" ]; then
export CROSS_COMPILE=${XBPS_CROSS_TRIPLET}-
fi
make ${makejobs} EXTRAVERSION=-${revision} \
BL31=${XBPS_CROSS_BASE}/usr/lib/trusted-firmware-a/rk3399/bl31.elf
}
do_install() {
vinstall idbloader.img 0644 usr/lib/rockpro64-uboot
vinstall u-boot.itb 0644 usr/lib/rockpro64-uboot
vlicense Licenses/Exceptions
vlicense Licenses/README
vlicense Licenses/bsd-2-clause.txt
vlicense Licenses/bsd-3-clause.txt
vlicense Licenses/eCos-2.0.txt
vlicense Licenses/ibm-pibs.txt
vlicense Licenses/isc.txt
vlicense Licenses/r8a779x_usb3.txt
vlicense Licenses/x11.txt
}

View File

@ -0,0 +1 @@
pkgname="u-boot"