2020-03-10 10:58:36 +00:00
|
|
|
# U-boot with patches to make the PinePhone boot faster and have control over the ddr clock speed
|
|
|
|
pkgname=u-boot-pinephone
|
2020-08-18 07:40:46 +00:00
|
|
|
pkgver=2020.07_git20200803
|
2020-09-02 09:15:46 +00:00
|
|
|
pkgrel=1
|
2020-08-18 07:40:46 +00:00
|
|
|
# Last commit from "crust" branch, as used in "crust-meta":
|
|
|
|
# https://gitlab.com/pine64-org/crust-meta/-/blob/8886bcc829179bf77216fade71f0ede9bd014e67/Makefile#L78
|
|
|
|
_commit="5433de221199bd5458f3ef71a8366f8031b61cb1"
|
2020-03-10 10:58:36 +00:00
|
|
|
pkgdesc="u-boot bootloader for the PINE64 PinePhone"
|
|
|
|
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"
|
2020-06-17 07:36:00 +00:00
|
|
|
makedepends="$depends_dev bc dtc python3-dev swig bison flex openssl-dev arm-trusted-firmware-sun50i crust"
|
2020-03-10 10:58:36 +00:00
|
|
|
options="!check"
|
2020-08-18 07:40:46 +00:00
|
|
|
source="https://gitlab.com/pine64-org/u-boot/-/archive/$_commit/u-boot-$_commit.tar.gz
|
2020-06-17 07:36:00 +00:00
|
|
|
update-u-boot
|
2020-07-16 09:11:53 +00:00
|
|
|
0001-sunxi-support-asymmetric-dual-rank-DRAM-on-A64-R40.patch
|
2020-09-02 09:15:46 +00:00
|
|
|
0001-Set-RAM-clock-back-to-552.patch
|
2020-07-16 09:11:53 +00:00
|
|
|
"
|
2020-06-17 07:36:00 +00:00
|
|
|
builddir="$srcdir/u-boot-$_commit"
|
2020-03-10 10:58:36 +00:00
|
|
|
|
|
|
|
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-sun50i/bl31.bin"
|
2020-06-17 07:36:00 +00:00
|
|
|
export SCP="/usr/share/crust/pinephone/scp.bin"
|
2020-03-10 10:58:36 +00:00
|
|
|
export BUILD_DIR="$builddir"/build
|
|
|
|
mkdir -p "$BUILD_DIR"
|
|
|
|
make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm pinephone_defconfig
|
|
|
|
make O="$BUILD_DIR" HOSTCC=gcc ARCH=arm all
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-06-17 07:36:00 +00:00
|
|
|
cd build
|
2020-03-10 10:58:36 +00:00
|
|
|
install -D -m644 "u-boot-sunxi-with-spl.bin" \
|
|
|
|
"$pkgdir"/usr/share/u-boot/pine64-pinephone/u-boot-sunxi-with-spl.bin
|
2020-06-17 07:36:00 +00:00
|
|
|
install -D -m 755 "$srcdir"/update-u-boot "$pkgdir"/usr/sbin/update-u-boot
|
2020-03-10 10:58:36 +00:00
|
|
|
}
|
2020-07-16 09:11:53 +00:00
|
|
|
|
2020-08-18 07:40:46 +00:00
|
|
|
sha512sums="89cf93893e5cd9a3ecebdcc1e6dc28e6c2bb58aef7d18371e06e85d197d0d4fbdced5856349fdca35b97ad2d55a87d5fe2eaec8d5d2019f29e6a3af62d737ab0 u-boot-5433de221199bd5458f3ef71a8366f8031b61cb1.tar.gz
|
2020-07-16 09:11:53 +00:00
|
|
|
4a3a1772a7309d44e7977dee4aca499d5c79675d99cda1395d8765abb415b8456260c7a989650f0bd2dfda0377af2346917fbcbf3e356a36265ed07e161ddc3b update-u-boot
|
2020-09-02 09:15:46 +00:00
|
|
|
7369f4d1f28d1ec2adf9640636940b3672eb5d4573160f2906451778369b67a02d4a684fb81246b3e2b9983acf0c9632b1c880f7d77c850a00a41080fca65481 0001-sunxi-support-asymmetric-dual-rank-DRAM-on-A64-R40.patch
|
|
|
|
e412f968e9107b5d2c7282135fe343fd27c2ae9830344e367c2ee9ee4b0ba7be8b305356468011a4f04cf0d81e908827d7d3ddfd23f9c107ba5c91170503601c 0001-Set-RAM-clock-back-to-552.patch"
|