temp/u-boot-rockpro64: new aport (MR 882)
This commit is contained in:
parent
f9a19babd6
commit
02435b0b41
1 changed files with 36 additions and 0 deletions
36
temp/u-boot-rockpro64/APKBUILD
Normal file
36
temp/u-boot-rockpro64/APKBUILD
Normal file
|
@ -0,0 +1,36 @@
|
|||
# U-boot RC built for rk3399, can be upstreamed to alpine soon when 2020.04 is released
|
||||
|
||||
pkgname=u-boot-rockpro64
|
||||
pkgver=2020.04_rc3
|
||||
pkgrel=0
|
||||
pkgdesc="u-boot bootloader for the rk3399"
|
||||
url="https://gitlab.com/pine64-org/u-boot"
|
||||
arch="aarch64"
|
||||
license="GPL-2.0-or-later OFL-1.1 BSD-2-Clause BSD-3-Clause eCos-2.0 IBM-pibs
|
||||
ISC LGPL-2.0-only LGPL-2.1-only X11"
|
||||
makedepends="$depends_dev bc dtc python3-dev swig bison flex openssl-dev arm-trusted-firmware-rk3399"
|
||||
options="!check"
|
||||
source="
|
||||
ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver//_/-}.tar.bz2
|
||||
"
|
||||
builddir="$srcdir"/u-boot-${pkgver//_/-}
|
||||
|
||||
build() {
|
||||
touch include/config.h
|
||||
LC_ALL=C date +'#define U_BOOT_DATE "%b %d %C%y"' > include/timestamp_autogenerated.h
|
||||
LC_ALL=C date +'#define U_BOOT_TIME "%T"' >> include/timestamp_autogenerated.h
|
||||
|
||||
export BL31="/usr/share/arm-trusted-firmware-rk3399/bl31.elf"
|
||||
export BUILD_DIR="$builddir"/build
|
||||
mkdir -p "$BUILD_DIR"
|
||||
make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm rockpro64-rk3399_defconfig
|
||||
make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm all
|
||||
}
|
||||
|
||||
package() {
|
||||
install -D -m644 build/u-boot-rockchip.bin \
|
||||
"$pkgdir"/usr/share/u-boot/pine64-rockpro64/u-boot-rockchip.bin
|
||||
}
|
||||
|
||||
|
||||
sha512sums="6e617472bd38dd1f681db121bcb565abea7a15fcdb7a5920ec6dffd283d4a4580d81134768454a7c954ac7f5cbee8493879452991b6cf35de31afcd2d9448a11 u-boot-2020.04-rc3.tar.bz2"
|
Loading…
Reference in a new issue