blob: 5b500e420f744cf05b2197fa5655a85eecbe570c (
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
|
# U-Boot: Boundary Devices Nitrogen6X/Sabre Lite
# Maintainer (Arch): Kevin Mihelich <kevin@archlinuxarm.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
buildarch=4
_pkgname=linux-libre
pkgname=uboot-boundary-${_pkgname}
pkgver=2014.07
pkgrel=1.1
arch=('armv7h')
pkgdesc="U-Boot for Nitrogen6X/Sabre Lite (built for the linux-libre kernel package)"
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('bc')
depends=('linux-libre')
replaces=('uboot-boundary')
backup=('6x_bootscript')
_commit=bb9dde563768731423fd6c560e95e1793a90710a
source=("https://github.com/boundarydevices/u-boot-imx6/archive/${_commit}.tar.gz"
'0001-parabola-arm-modifications.patch'
'0002-kernel-add-support-for-gcc-5.patch'
'0003-ARM-asm-io.h-use-static-inline.patch'
'0004-common-main.c-make-show_boot_progress-__weak.patch'
'0005-common-board-use-__weak.patch'
'0006-common-board_f-cosmetic-use-__weak-for-leds.patch'
'6x_bootscript')
md5sums=('b12f5f383c57de06f16625b3465e74d9'
'56466a99abaa51e000ec1b133078e084'
'721a46867e189d8dedc6b6f86a536a34'
'f6b687eca2d2d01f741cbda90dbacb41'
'8087672256020417438b12ec4946e1cf'
'a536d28bf45add6dbf9f84277f943de8'
'2823d0e0c3c826632f6ae934f2b746d9'
'84fe5cde8913ed3380d2069db12dca7e')
prepare() {
cd u-boot-imx6-${_commit}
patch -Np1 -i ../0001-parabola-arm-modifications.patch
patch -Np1 -i ../0002-kernel-add-support-for-gcc-5.patch
patch -Np1 -i ../0003-ARM-asm-io.h-use-static-inline.patch
patch -Np1 -i ../0004-common-main.c-make-show_boot_progress-__weak.patch
patch -Np1 -i ../0005-common-board-use-__weak.patch
patch -Np1 -i ../0006-common-board_f-cosmetic-use-__weak-for-leds.patch
}
build() {
cd u-boot-imx6-${_commit}
unset CFLAGS
unset CXXFLAGS
make distclean
make nitrogen6q_config
make
}
package() {
cd u-boot-imx6-${_commit}
mkdir -p "${pkgdir}/boot/${pkgname}"
cp u-boot.imx "${pkgdir}/boot/${pkgname}"
tools/mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n "boot script" -d ../6x_bootscript "${pkgdir}/boot/${pkgname}"/6x_bootscript
}
|