blob: c373826d69459c166551f2b4d98848ca11ae1882 (
plain)
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
44
45
46
47
48
49
50
51
|
# Maintainer: Jaron Kent-Dobias <jaron@kent-dobias.com>
# Contributor: Dan Johansen <strit@manjaro.org>
# Contributor: Kevin Mihelich <kevin@archlinuxarm.org>
_tfaver=2.4
_crustver=0.3
pkgname=uboot-pinebook
pkgver=2021.01
pkgrel=3
pkgdesc="U-Boot for Pinebook"
arch=(aarch64)
url='http://www.denx.de/wiki/U-Boot/WebHome'
license=('GPL')
makedepends=('bc' 'git' 'python' 'swig' 'dtc' 'or1k-elf-gcc' 'or1k-elf-binutils' 'aarch64-linux-gnu-gcc' 'aarch64-linux-gnu-binutils')
provides=('uboot')
conflicts=('uboot')
install=${pkgname}.install
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
"https://github.com/ARM-software/arm-trusted-firmware/archive/v${_tfaver}.tar.gz"
"https://github.com/crust-firmware/crust/archive/v${_crustver}.tar.gz"
)
sha256sums=('b407e1510a74e863b8b5cb42a24625344f0e0c2fc7582d8c866bd899367d0454'
'4bfda9fdbe5022f2e88ad3344165f7d38a8ae4a0e2d91d44d9a1603425cc642d'
'cf02f227b909f40bcfc33a94088fce12356dab41bc7459c22b7b333b305d4c72')
export ARCH=arm64
export CROSS_COMPILE=aarch64-linux-gnu-
build() {
unset CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
cd "$srcdir/arm-trusted-firmware-$_tfaver"
make PLAT=sun50i_a64 bl31
export BL31="$srcdir/arm-trusted-firmware-$_tfaver/build/sun50i_a64/release/bl31.bin"
cd "$srcdir/crust-$_crustver"
CROSS_COMPILE=or1k-elf- make pinebook_defconfig
CROSS_COMPILE=or1k-elf- make scp
export SCP="$srcdir/crust-$_crustver/build/scp/scp.bin"
cd "$srcdir/u-boot-$pkgver"
make distclean
make pinebook_defconfig
echo 'CONFIG_IDENT_STRING=" Archlinux"' >> .config
make EXTRAVERSION=-$pkgrel
}
package() {
install -Dm644 u-boot-$pkgver/u-boot-sunxi-with-spl.bin "${pkgdir}/boot/u-boot-sunxi-with-spl-pinebook.bin"
}
|