blob: 7ee2af775907336cbde63f01d688d0d653170ecd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
}
|