blob: 18ac04ed0ebe2dabcbb6c2876ebccb222e5472ad (
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
|
# U-Boot: TrimSlice
# Maintainer: Kevin Mihelich <kevin@archlinuxarm.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
buildarch=4
_pkgname=linux-libre
pkgname=uboot-trimslice-${_pkgname}
pkgver=2014.10
pkgrel=1
pkgdesc="U-Boot for TrimSlice (built for the linux-libre kernel package)"
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
makedepends=('cbootimage' 'dtc' 'uboot-tools')
depends=('linux-libre')
replaces=('uboot-trimslice')
license=('GPL')
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
"git+https://github.com/NVIDIA/cbootimage-configs.git"
"boot.txt")
md5sums=('3ddcaee2f05b7c464778112ec83664b5'
'SKIP'
'9374fbadb4b4c1298ea050ad4ea79f46')
build() {
cd u-boot-${pkgver}
unset LDFLAGS
make distclean
make trimslice_config
make
}
package() {
mkdir -p "${pkgdir}/boot/${pkgname}"
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "TrimSlice" -d boot.txt "${pkgdir}/boot/${pkgname}"/boot.scr
cp boot.txt "${pkgdir}/boot/${pkgname}"
cd cbootimage-configs/tegra20/compulab/trimslice
ln -s ${srcdir}/u-boot-${pkgver}/u-boot-dtb-tegra.bin u-boot.bin
./build.sh
cp trimslice-mmc.img trimslice-spi.img "${pkgdir}/boot/${pkgname}"
}
|