47 lines
1.6 KiB
Bash
47 lines
1.6 KiB
Bash
# Template file for 'rockpro64-uboot'
|
|
pkgname=rockpro64-uboot
|
|
version=2026.04
|
|
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 mtd-utils"
|
|
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=ac7c04b8b7004923b00a4e5d6699c5df4d21233bac9fda690d8cfbc209fff2fd
|
|
|
|
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
|
|
vinstall u-boot-rockchip-spi.bin 0644 usr/lib/rockpro64-uboot
|
|
vinstall u-boot-rockchip.bin 0644 usr/lib/rockpro64-uboot
|
|
vdoc "${FILESDIR}/README.voidlinux"
|
|
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
|
|
}
|