summaryrefslogtreecommitdiff
path: root/libre-testing/uboot4extlinux-sunxi/PKGBUILD
blob: 3237c49131ebecf5eccdee81777f51e1f4bc559f (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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# U-Boot: sunXi
# Maintainer: André Silva <emulatorman@parabola.nu>

buildarch=4

pkgbase=uboot4extlinux-sunxi
pkgname=('uboot4extlinux-a10-olinuxino-lime'
         'uboot4extlinux-a10s-olinuxino-micro'
         'uboot4extlinux-a13-olinuxino'
         'uboot4extlinux-a13-olinuxino-micro'
         'uboot4extlinux-a20-olinuxino-lime'
         'uboot4extlinux-a20-olinuxino-lime2'
         'uboot4extlinux-a20-olinuxino-micro'
         'uboot4extlinux-cubieboard'
         'uboot4extlinux-cubieboard2'
         'uboot4extlinux-cubietruck'
         'uboot4extlinux-pcduino'
         'uboot4extlinux-pcduino3'
         'uboot4extlinux-pcduino3-nano')
pkgver=2016.01
pkgrel=2
arch=('armv7h')
url="http://git.denx.de/u-boot.git/"
license=('GPL')
makedepends=('bc' 'dtc')
backup=(boot/extlinux/extlinux.conf)
source=("ftp://ftp.denx.de/pub/u-boot/u-boot-${pkgver}.tar.bz2"
        '0001-parabola-arm-modifications.patch'
        'extlinux.conf')
md5sums=('7d4f65fd43d4d706f5c5650e020d899d'
         '8cac8444bd1d229063a150d212cc360a'
         'acd3e7b3c45c2801c2435f4a5de3f58c')

boards=('A10-OLinuXino-Lime'
        'A10s-OLinuXino-M'
        'A13-OLinuXino'
        'A13-OLinuXinoM'
        'A20-OLinuXino-Lime'
        'A20-OLinuXino-Lime2'
        'A20-OLinuXino_MICRO'
        'Cubieboard'
        'Cubieboard2'
        'Cubietruck'
        'Linksprite_pcDuino'
        'Linksprite_pcDuino3'
        'Linksprite_pcDuino3_Nano')

prepare() {
  cd u-boot-${pkgver}

  patch -Np1 -i ../0001-parabola-arm-modifications.patch
}

build() {
  cd u-boot-${pkgver}

  unset CFLAGS
  unset CXXFLAGS
  unset LDFLAGS

  for i in ${boards[@]}; do
    mkdir ../bin_${i}
    make distclean
    make ${i}_config
    make EXTRAVERSION=-${pkgrel}
    mv u-boot-sunxi-with-spl.bin ../bin_${i}
  done
}

package_uboot4extlinux-a10-olinuxino-lime() {
  pkgdesc="U-Boot with Extlinux support for A10 OLinuXino Lime"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_A10-OLinuXino-Lime/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-a10s-olinuxino-micro() {
  pkgdesc="U-Boot with Extlinux support for A10s OLinuXino Micro"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_A10s-OLinuXino-M/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-a13-olinuxino() {
  pkgdesc="U-Boot with Extlinux support for A13 OLinuXino"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_A13-OLinuXino/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-a13-olinuxino-micro() {
  pkgdesc="U-Boot with Extlinux support for A13 OLinuXino Micro"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_A13-OLinuXinoM/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-a20-olinuxino-lime() {
  pkgdesc="U-Boot with Extlinux support for A20 OLinuXino Lime"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_A20-OLinuXino-Lime/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-a20-olinuxino-lime2() {
  pkgdesc="U-Boot with Extlinux support for A20 OLinuXino Lime2"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_A20-OLinuXino-Lime2/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-a20-olinuxino-micro() {
  pkgdesc="U-Boot with Extlinux support for A20 OLinuXino Micro"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_A20-OLinuXino_MICRO/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-cubieboard() {
  pkgdesc="U-Boot with Extlinux support for Cubieboard"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_Cubieboard/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot/u-boot-sunxi-with-spl.bin

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-cubieboard2() {
  pkgdesc="U-Boot with Extlinux support for Cubieboard 2"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_Cubieboard2/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot/u-boot-sunxi-with-spl.bin

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-cubietruck() {
  pkgdesc="U-Boot with Extlinux support for Cubietruck"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_Cubietruck/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot/u-boot-sunxi-with-spl.bin

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-pcduino() {
  pkgdesc="U-Boot with Extlinux support for pcDuino"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_Linksprite_pcDuino/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-pcduino3() {
  pkgdesc="U-Boot with Extlinux support for pcDuino3"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_Linksprite_pcDuino3/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}

package_uboot4extlinux-pcduino3-nano() {
  pkgdesc="U-Boot with Extlinux support for pcDuino3 Nano"
  install=${pkgbase}.install
  provides=('uboot4extlinux-sunxi')
  conflicts=('uboot-sunxi' 'uboot4extlinux-sunxi' 'uboot4grub-sunxi')

  install -d "${pkgdir}"/boot/extlinux
  install -Dm644 bin_Linksprite_pcDuino3_Nano/u-boot-sunxi-with-spl.bin "${pkgdir}"/boot

  install -Dm644 extlinux.conf "${pkgdir}"/boot/extlinux
}