blob: 575a0bbea34803e633e71b50342e1f8114088374 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# U-Boot: Wandboard
# Maintainer (Arch): Kevin Mihelich <kevin@archlinuxarm.org>
# Contributor: André Silva <emulatorman@parabola.nu>
buildarch=4
_pkgbase=linux-libre
pkgbase=uboot-wandboard-${_pkgbase}
pkgname=("uboot-wandboard-solo-${_pkgbase}" "uboot-wandboard-dual-${_pkgbase}" "uboot-wandboard-quad-${_pkgbase}")
pkgver=2015.04
pkgrel=1
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('bc')
depends=('linux-libre')
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
'0001-parabola-arm-modifications.patch')
md5sums=('570bdc2c47270c2a98ca60ff6c5c74cd'
'7b1bcd38116d27e450705948cb8a87a7')
prepare() {
cd u-boot-${pkgver}
patch -Np1 -i ../0001-parabola-arm-modifications.patch
}
build() {
cd u-boot-${pkgver}
unset LDFLAGS
mkdir bins
for i in solo dl quad; do
make distclean
make wandboard_${i}_config
make
mv u-boot.imx bins/u-boot-${i}.imx
done
}
package_uboot-wandboard-solo-linux-libre() {
pkgdesc="U-Boot for Wandboard Solo (built for the linux-libre kernel package)"
conflicts=('uboot-wandboard-dual' 'uboot-wandboard-quad')
replaces=('uboot-wandboard-solo')
install=${pkgbase}.install
mkdir -p "${pkgdir}/boot/${pkgname}"
cp u-boot-${pkgver}/bins/u-boot-solo.imx "${pkgdir}/boot/${pkgname}"/u-boot.imx
}
package_uboot-wandboard-dual-linux-libre() {
pkgdesc="U-Boot for Wandboard Dual (built for the linux-libre kernel package)"
conflicts=('uboot-wandboard-solo' 'uboot-wandboard-quad')
replaces=('uboot-wandboard-dual')
install=${pkgbase}.install
mkdir -p "${pkgdir}/boot/${pkgname}"
cp u-boot-${pkgver}/bins/u-boot-dl.imx "${pkgdir}/boot/${pkgname}"/u-boot.imx
}
package_uboot-wandboard-quad-linux-libre() {
pkgdesc="U-Boot for Wandboard Quad (built for the linux-libre kernel package)"
conflicts=('uboot-wandboard-solo' 'uboot-wandboard-dual')
replaces=('uboot-wandboard-quad')
install=${pkgbase}.install
mkdir -p "${pkgdir}/boot/${pkgname}"
cp u-boot-${pkgver}/bins/u-boot-quad.imx "${pkgdir}/boot/${pkgname}"/u-boot.imx
}
|