blob: b6b7652a76b0b65047b4412eb2ba2f7c8bf3666c (
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
|
# U-Boot: I.MX
# Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Timothy Redaelli <timothy.redaelli@gmail.com>
# Maintainer: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
pkgbase=uboot4extlinux-imx
pkgname=('uboot4extlinux-mx6cuboxi'
'uboot4extlinux-nitrogen6q'
'uboot4extlinux-tbs2910'
'uboot4extlinux-udoo'
'uboot4extlinux-usbarmory'
'uboot4extlinux-wandboard')
pkgver=2020.01
pkgrel=1
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('bc' 'dtc' 'python' 'python2' 'swig')
backup=(boot/extlinux/extlinux.conf)
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
'extlinux.conf'
'tbs2910.h'
'tbs2910_defconfig')
sha256sums=('aa453c603208b1b27bd03525775a7f79b443adec577fdc6e8f06974025a135f1'
'SKIP'
'SKIP'
'SKIP')
# TODO
# boards=('mx6cuboxi'
# 'nitrogen6q'
# 'tbs2910'
# 'udoo'
# 'usbarmory'
# 'wandboard')
boards=('tbs2910')
prepare() {
cd u-boot-${pkgver}
# TODO: send patches upstream
# tbs2910.h: needed for generic distro booting
# tbs2910_defconfig: needed for generic distro booting
# and to fit within the size constraints
cp -f ../tbs2910.h include/configs/tbs2910.h
cp -f ../tbs2910_defconfig configs/tbs2910_defconfig
for i in ${boards[@]}; do
echo 'CONFIG_DISTRO_DEFAULTS=y' >> configs/${i}_defconfig
echo 'CONFIG_SD_BOOT=y' >> configs/${i}_defconfig
echo 'CONFIG_SATA_BOOT=y' >> configs/${i}_defconfig
done
}
build() {
cd u-boot-${pkgver}
unset CFLAGS CXXFLAGS LDFLAGS
for i in ${boards[@]}; do
mkdir -p ../bin_${i}
make distclean
make ${i}_defconfig
echo 'CONFIG_IDENT_STRING=" Parabola GNU/Linux-libre"' >> .config
make EXTRAVERSION=-${pkgrel}
mv -f u-boot.imx ../bin_${i}
done
}
package_uboot4extlinux-nitrogen6q() {
pkgdesc="U-Boot with Extlinux support for the Boundary Devices i.MX6 Quad Nitrogen6"
install=${pkgbase}.install
provides=('uboot4extlinux-imx')
conflicts=('uboot-nitrogen6q')
install -d "${pkgdir}"/boot/extlinux
install -d "${pkgdir}"/boot/u-boot/images/
install -Dm644 bin_nitrogen6q/u-boot.imx "${pkgdir}"/boot/u-boot/images/
install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}
package_uboot4extlinux-mx6cuboxi() {
pkgdesc="U-Boot with Extlinux support for the SolidRun Cubox-i"
install=${pkgbase}.install
provides=('uboot4extlinux-imx')
conflicts=('uboot-mx6_cubox-i')
install -d "${pkgdir}"/boot/extlinux
install -d "${pkgdir}"/boot/u-boot/images/
install -Dm644 bin_mx6cuboxi/u-boot.imx "${pkgdir}"/boot/u-boot/images/
install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}
package_uboot4extlinux-tbs2910() {
pkgdesc="U-Boot with Extlinux support for the TBS2910 Matrix ARM mini PC"
install=${pkgbase}.install
provides=('uboot4extlinux-imx')
install -d "${pkgdir}"/boot/extlinux
install -d "${pkgdir}"/boot/u-boot/images/
install -Dm644 bin_tbs2910/u-boot.imx "${pkgdir}"/boot/u-boot/images/
install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}
package_uboot4extlinux-udoo() {
pkgdesc="U-Boot with Extlinux support for the Udoo Board"
install=${pkgbase}.install
provides=('uboot4extlinux-imx')
conflicts=('uboot-udoo')
install -d "${pkgdir}"/boot/extlinux
install -d "${pkgdir}"/boot/u-boot/images/
install -Dm644 udoo/u-boot.imx "${pkgdir}"/boot/u-boot/images/
install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}
package_uboot4extlinux-usbarmory() {
pkgdesc="U-Boot with Extlinux support for the Inverse Path USB armory"
install=${pkgbase}.install
provides=('uboot4extlinux-imx')
conflicts=('uboot-usbarmory')
install -d "${pkgdir}"/boot/extlinux
install -d "${pkgdir}"/boot/u-boot/images/
install -Dm644 usbarmory/u-boot.imx "${pkgdir}"/boot/u-boot/images/
install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}
package_uboot4extlinux-wandboard() {
pkgdesc="U-Boot with Extlinux support for the Wandboard"
install=${pkgbase}.install
provides=('uboot4extlinux-imx')
conflicts=('uboot-wandboard')
install -d "${pkgdir}"/boot/extlinux
install -d "${pkgdir}"/boot/u-boot/images/
install -Dm644 wandboard/u-boot.imx "${pkgdir}"/boot/u-boot/images/
install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}
|