-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuboot-tools.spec
479 lines (360 loc) · 16.3 KB
/
uboot-tools.spec
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
%global candidate rc4
Name: uboot-tools
Version: 2015.10
Release: 0.3%{?candidate:.%{candidate}}%{?dist}.lr1
Summary: U-Boot utilities
Group: Development/Tools
License: GPLv2+ BSD LGPL-2.1+ LGPL-2.0+
URL: http://www.denx.de/wiki/U-Boot
Source0: ftp://ftp.denx.de/pub/u-boot/u-boot-%{version}%{?candidate:-%{candidate}}.tar.bz2
Source1: armv7-boards
Patch1: 0001-wandboard-add-support-for-generic-distro-boot.patch
Patch2: 0002-am33xx-add-support-for-generic-distro-boot.patch
Patch3: 0003-Switch-omap4-boards-to-use-config_distro_defaults-an.patch
Patch4: 0004-Add-BOOTENV_INIT_COMMAND-for-commands-that-may-be-ne.patch
Patch5: 0005-port-utilite-to-distro-generic-boot-commands.patch
BuildRequires: bc
BuildRequires: dtc
BuildRequires: fedora-logos
BuildRequires: git
BuildRequires: netpbm-progs
BuildRequires: openssl-devel
BuildRequires: SDL-devel
Requires: dtc
%description
This package contains a few U-Boot utilities - mkimage for creating boot images
and fw_printenv/fw_setenv for manipulating the boot environment variables.
%ifarch aarch64
%package -n uboot-images-armv8
Summary: u-boot bootloader images for armv8 boards
Requires: uboot-tools
BuildArch: noarch
%description -n uboot-images-armv8
u-boot bootloader binaries for the aarch64 vexpress_aemv8a
%endif
%ifarch %{arm}
%package -n uboot-images-armv7
Summary: u-boot bootloader images for armv7 boards
Requires: uboot-tools
BuildArch: noarch
%description -n uboot-images-armv7
u-boot bootloader binaries for armv7 boards
%endif
%prep
%setup -q -n u-boot-%{version}%{?candidate:-%{candidate}}
git init
git config user.email "[email protected]"
git config user.name "no one"
git add .
git commit -a -q -m "%{version} baseline"
git am %{patches} </dev/null
git config --unset user.email
git config --unset user.name
rm -rf .git
%build
mkdir builds
# convert fedora logo to bmp for use in u-boot
pngtopnm /usr/share/pixmaps/fedora-logo.png | ppmquant 256 | ppmtobmp -bpp 8 >fedora.bmp
#replace the logos with fedora's
for bmp in tools/logos/*bmp
do
cp fedora.bmp $bmp
done
%ifarch aarch64
make vexpress_aemv8a_juno_config vexpress_aemv8a_semi_config O=builds/vexpress_aemv8a/
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1 O=builds/vexpress_aemv8a/
%endif
%ifarch %{arm}
for board in $(cat %SOURCE1)
do
make $(echo $board)_defconfig V=1 O=builds/$(echo $board)/
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1 O=builds/$(echo $board)/
done
%endif
make HOSTCC="gcc $RPM_OPT_FLAGS" %{?_smp_mflags} CROSS_COMPILE="" defconfig V=1 O=builds/
make HOSTCC="gcc $RPM_OPT_FLAGS" %{?_smp_mflags} CROSS_COMPILE="" tools-all V=1 O=builds/
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/
%ifarch aarch64
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/vexpress_aemv8a/
install -p -m 0644 builds/vexpress_aemv8a/u-boot.bin $RPM_BUILD_ROOT%{_datadir}/uboot/vexpress_aemv8a/
%endif
%ifarch %{arm}
for board in $(cat %SOURCE1)
do
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/
for file in MLO SPL spl/arndale-spl.bin spl/origen-spl.bin spl/smdkv310-spl.bin u-boot.bin u-boot.dtb u-boot-dtb-tegra.bin u-boot.img u-boot.imx u-boot-nodtb-tegra.bin u-boot-spl.kwb u-boot-sunxi-with-spl.bin
do
if [ -f builds/$(echo $board)/$(echo $file) ]; then
install -p -m 0644 builds/$(echo $board)/$(echo $file) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/
fi
done
done
# Bit of a hack to remove binaries we don't use as they're large
for board in $(cat %SOURCE1)
do
if [ -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot-sunxi-with-spl.bin ]; then
rm -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.*
fi
if [ -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/MLO ]; then
rm -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.bin
fi
if [ -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/SPL ]; then
rm -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.bin
fi
if [ -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.imx ]; then
rm -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.bin
fi
done
%endif
for tool in bmp_logo dumpimage easylogo/easylogo env/fw_printenv fit_check_sign fit_info gdb/gdbcont gdb/gdbsend gen_eth_addr img2srec mkenvimage mkimage ncb proftool ubsha1 xway-swap-bytes
do
install -p -m 0755 builds/tools/$tool $RPM_BUILD_ROOT%{_bindir}
done
install -p -m 0644 doc/mkimage.1 $RPM_BUILD_ROOT%{_mandir}/man1
install -p -m 0755 builds/tools/env/fw_printenv $RPM_BUILD_ROOT%{_bindir}
( cd $RPM_BUILD_ROOT%{_bindir}; ln -sf fw_printenv fw_setenv )
install -p -m 0644 tools/env/fw_env.config $RPM_BUILD_ROOT%{_sysconfdir}
%files
%doc README doc/README.imximage doc/README.kwbimage doc/uImage.FIT
%{_bindir}/*
%{_mandir}/man1/mkimage.1*
%dir %{_datadir}/uboot/
%config(noreplace) %{_sysconfdir}/fw_env.config
%ifarch aarch64
%files -n uboot-images-armv8
%{_datadir}/uboot/*
%endif
%ifarch %{arm}
%files -n uboot-images-armv7
%{_datadir}/uboot/*
%endif
%changelog
* Tue Sep 29 2015 Peter Robinson <[email protected]> 2015.10-0.3rc4
- Update to 2015.10 RC4
* Fri Sep 11 2015 Peter Robinson <[email protected]> 2015.10-0.2rc3
- Update to 2015.10 RC3
* Tue Aug 4 2015 Peter Robinson <[email protected]> 2015.10-0.1rc1
- Update to 2015.10 RC1
* Mon Aug 3 2015 Peter Robinson <[email protected]> 2015.07-3
- Drop some unused u-boot binaries
- Minor cleanups
* Thu Jul 16 2015 Peter Robinson <[email protected]> 2015.07-2
- Disable boot splash on Utilite (cm_fx6)
* Wed Jul 15 2015 Peter Robinson <[email protected]> 2015.07-1
- Update to 2015.07 GA
* Thu Jul 2 2015 Peter Robinson <[email protected]> 2015.07-0.4rc3
- Update to 2015.07rc3
- Some fixes for omap4/am33xx/imx6 devices
* Mon Jun 22 2015 Peter Robinson <[email protected]> 2015.07-0.3rc2
- Initial rebase of BBB/panda/wandboard generic distro boot support
* Tue Jun 16 2015 Peter Robinson <[email protected]> 2015.07-0.2rc2
- Enable i.MX6 marsboard and warp
- Use upstream build fix
- Add patch to fix Raspberry Pi timer speed
* Tue Jun 9 2015 Peter Robinson <[email protected]> 2015.07-0.1rc2
- Initial rebase to 2015.07rc2
- Enable mx6cuboxi, 32 bit vexpress
- Update builds for name changes, merges etc
* Wed May 27 2015 Peter Robinson <[email protected]> 2015.04-3
- Enable Zynq microzed, zed and zybo
* Sun May 10 2015 Peter Robinson <[email protected]> 2015.04-2
- Build nyan-big
* Fri Apr 17 2015 Peter Robinson <[email protected]> 2015.04-1
- Update to 2015.04 GA
- Build Raspberry Pi 2 config
* Tue Apr 07 2015 Marcin Juszkiewicz <[email protected]> - 2015.04-0.6.rc5
- Build U-Boot for Juno and Foundation model instead of removed board
* Thu Apr 2 2015 Peter Robinson <[email protected]> 2015.04-0.5.rc5
- Update to 2015.04 rc5
* Mon Mar 30 2015 Dennis Gilmore <[email protected]> - 2015.04-0.4.rc4
- add patch to fix booting on omap4 devices
- refeactor spec file
- add all sunxi boards
- add odroid and odroid-xu3
* Sat Mar 21 2015 Dennis Gilmore <[email protected]> - 2015.04-0.3.rc4
- fix up bbb and wandboard to autoboot again
* Fri Mar 20 2015 Peter Robinson <[email protected]> 2015.04-0.2.rc4
- Update to 2015.04 rc4
* Fri Mar 6 2015 Peter Robinson <[email protected]> 2015.04-0.1.rc3
- Update to 2015.04 rc3
- Enable AllWinner: OLinuXino-Lime2 Mele_M3 Bananapro
- Enable i.MX6: novena hummingboard
- Build ext support into omap3 SPL
* Sat Feb 21 2015 Till Maas <[email protected]> - 2015.01-4
- Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
* Sat Feb 07 2015 Hans de Goede <[email protected]> - 2015.01-3
- fix build with gcc5
* Mon Feb 02 2015 Dennis Gilmore <[email protected]> - 2015.01-2
- enable db-mv784mp-gp
* Tue Jan 13 2015 Peter Robinson <[email protected]> 2015.01-1
- update to 2015.01
* Fri Dec 12 2014 Dennis Gilmore <[email protected]> - 2015.01-0.2.rc3
- update to 2015.01 rc3
* Wed Nov 26 2014 Dennis Gilmore <[email protected]> - 2015.01-0.1.rc2
- update to 2015.01 rc2
* Tue Nov 11 2014 Dennis Gilmore <[email protected]> - 2014.10-5
- switch the target used for beaglebone rhbz#1161619
* Mon Oct 27 2014 Dennis Gilmore <[email protected]> - 2014.10-4
- port panda board to upstreamed geneic boot commands
- append the console line automatically again
* Fri Oct 24 2014 Dennis Gilmore <[email protected]> - 2014.10-3
- scan both the first and second partitions for boot configs on beaglebone
* Thu Oct 16 2014 Peter Robinson <[email protected]> 2014.10-2
- Add upstream patch to fix Tegra Jetson K1 pci-e (for network)
* Wed Oct 15 2014 Dennis Gilmore <[email protected]> - 2014.10-1
- update to 2014.10 final release
* Tue Oct 14 2014 Dennis Gilmore <[email protected]> - 2014.10-0.7.rc3
- refacter making directories for images
- make cm_fx6 image for utilite
* Wed Oct 8 2014 Peter Robinson <[email protected]> 2014.10-0.6.rc3
- Update to 2014.10 rc3
- Add proposed distro patches from Debian
- Add BBone with distro support
* Fri Oct 3 2014 Peter Robinson <[email protected]> 2014.10-0.5.rc2
- Enable some more AllWinner devices
* Mon Sep 29 2014 Peter Robinson <[email protected]> 2014.10-0.4.rc2
- Add generic distro support to RIoT board
- Add patch to stabilise BananaPi network
- Spec cleanups
* Fri Sep 19 2014 Peter Robinson <[email protected]> 2014.10-0.3.rc2
- Add Jetson K1, RIoT Board
- Minor spec cleanups
- use git to apply patches
* Thu Sep 18 2014 Dennis Gilmore <[email protected]> - 2014.10-0.2.rc2
- Add Cubieboard, Cubieboard2, Banana Pi, Mele_A1000 and Mele_A1000G images
* Thu Sep 18 2014 Dennis Gilmore <[email protected]> - 2014.10-0.1.rc2
- Update to 2014.10-rc2
* Mon Aug 18 2014 Fedora Release Engineering <[email protected]> - 2014.04-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sun Jun 08 2014 Fedora Release Engineering <[email protected]> - 2014.04-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sun Apr 27 2014 Dennis Gilmore <[email protected]> - 2014.04-5
- fix up aarch64 image package naming
- drop need for cross compiler to build tools
* Sat Apr 26 2014 Dennis Gilmore <[email protected]> - 2014.04-4
- add hyp support to cubietruck image
- enables kvm support
* Thu Apr 24 2014 Dennis Gilmore <[email protected]> - 2014.04-3
- add cubietruck u-boot image
* Wed Apr 23 2014 Dennis Gilmore <[email protected]> - 2014.04-2
- automatically add console line from u-boot environment to bootargs
- when there is no console argument in the extlinux.conf file
* Mon Apr 21 2014 Dennis Gilmore <[email protected]> - 2014.04-1
- update to final 2014.04
- put all images into a single rpm
- add udoo image
* Wed Mar 19 2014 Dennis Gilmore <[email protected]> - 2014.04-0.4.rc2
- apply fixes for panda and beaglebone
* Sat Mar 15 2014 Dennis Gilmore <[email protected]> - 2014.04-0.3.rc2
- Add missing header
- pull in patches on their way upstream to fix some issues with ti
- systems.
- refactor beaglebone and pandaboard patches
* Thu Mar 13 2014 Dennis Gilmore <[email protected]> - 2014.04-0.2.rc2
- actually apply patches
* Wed Mar 12 2014 Dennis Gilmore <[email protected]> - 2014.04-0.1.rc2
- update to 2014.04-rc2
- add patches to convert some boards to generic distro configs
* Sun Oct 20 2013 Dennis Gilmore <[email protected]> - 2013.10-3
- fix ftbfs for wandboard
- use _smp_mflags
* Sat Oct 19 2013 Dennis Gilmore <[email protected]> - 2013.10-2
- use ext2load for dtb loading
- cleanup duplicate defines
* Thu Oct 17 2013 Dennis Gilmore <[email protected]> - 2013.10-1
- update to 2013.10 final
- refactor where u-boot binaries are stored
* Fri Oct 04 2013 Dennis Gilmore <[email protected]> - 2013.10-0.5.rc4
- update to 2013.10-rc4
* Fri Sep 20 2013 Dennis Gilmore <[email protected]> - 2013.10-0.4.rc3
- install u-boot.map for trimslice and paz00
* Fri Sep 20 2013 Dennis Gilmore <[email protected]> - 2013.10-0.3.rc3
- install trimslice u-boot correctly
* Fri Sep 20 2013 Dennis Gilmore <[email protected]> - 2013.10-0.2.rc3
- enable arndale, paz00, snow, snowball and trimslice builds
* Thu Sep 19 2013 Dennis Gilmore <[email protected]> - 2013.10-0.1.rc3
- update to 2013.10-rc3
- disable panda timing patch for now
* Mon Sep 02 2013 Dennis Gilmore <[email protected]> - 2013.10-0.1.rc2
- update to 2013.10-rc2
- enable extlinux.conf support on most boards
- add distro generic configuration options
* Sun Sep 1 2013 Peter Robinson <[email protected]> 2013.07-2
- Add patch for Panda ES memory type issue
* Fri Jul 26 2013 Dennis Gilmore <[email protected]> - 2013.07-1
- update to 2013.07 final
* Thu Jul 18 2013 Dennis Gilmore <[email protected]> - 2013.07-0.2.rc3
- update to 2013.07 rc3
- set wandboard to use extlinux.conf by default
* Thu Jul 04 2013 Dennis Gilmore <[email protected]> - 2013.07-0.1.rc2
- update beaglebone patches
- update wandboard quad patch
- upstream 2013.07-rc2 update
* Wed Jun 05 2013 Dennis Gilmore <[email protected]> - 2013.04-5
- add patches to support ext filesystems in exynos and omap SPL's
- drop bringing in arm-boot-config on arm systems
- build a highbank u-boot (intention is to use in qemu)
- add wandboard quad u-boot
* Wed May 22 2013 Dennis Gilmore <[email protected]> - 2013.04-4
- build vexpress image
- add uEnv.txt files for various supported omap systems
* Sat May 18 2013 Dennis Gilmore <[email protected]> - 2013.04-3
- add uevm, the omap5 based pandaboard
- Require arm-boot-config on arm arches
* Mon May 13 2013 Peter Robinson <[email protected]> 2013.04-2
- Add patches for initial support for the Beagle Bone Black
* Sun Apr 21 2013 Peter Robinson <[email protected]> 2013.04-1
- Update to 2013.04 release
- Build i.MX6 Wandboard Dual Lite and Solo Boards
* Sun Mar 31 2013 Dennis Gilmore <[email protected]> - 2013.04-0.1.rc1
- update to 2013.04-rc2
* Fri Mar 01 2013 Dennis Gilmore <[email protected]> - 2013.01.01-1
- update to 2013.01.01 for bug#907139
* Thu Jan 24 2013 Dennis Gilmore <[email protected]> - 2013.01-1
- update to 2013.01 release
* Wed Oct 17 2012 Dennis Gilmore <[email protected]> - 2012.10-1
- update to final 2012.10 release
* Thu Oct 11 2012 Mauro Carvalho Chehab <[email protected]>
- Also generate uboot for SMDK310
* Tue Oct 09 2012 Dennis Gilmore <[email protected]> - 2012.10-0.1.rc3
- update to 2010.10 rc3
* Fri Aug 24 2012 Dennis Gilmore <[email protected]> - 2012.01-1
- update to 2012.07 release
* Sun Jul 22 2012 Fedora Release Engineering <[email protected]> - 2012.07-0.2.rc1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Thu Jul 12 2012 Dennis Gilmore <[email protected]> - 2012.07-0.1.rc1
- update to rc1 of 2012.07 release
* Sat Jul 07 2012 Dennis Gilmore <[email protected]> - 2012.04.01-4
- still build the beagleboard image
* Sat Jul 07 2012 Dennis Gilmore <[email protected]> - 2012.04.01-3
- build beaglebone uboot images
* Mon Jun 25 2012 Dennis Gilmore <[email protected]> - 2012.04.01-2
- add patch so the MLO detects fat16 partitions correctly
* Mon May 07 2012 Dennis Gilmore <[email protected]> - 2012.04.01-1
- update to 2012.04.01 release
- http://lists.denx.de/pipermail/u-boot/2012-April/123011.html
* Tue Apr 24 2012 Dennis Gilmore <[email protected]> - 2012.04-1
- update to final 2012.04 release
* Thu Apr 19 2012 Dennis Gilmore <[email protected]> - 2012.04-0.1.rc3
- update to 2012.04-rc3
- build uboot binaries for beagle, panda and origen boards
* Thu Mar 08 2012 Dennis Gilmore <[email protected]> - 2011.12-1
- update to 2011.12 release
* Sat Jan 14 2012 Fedora Release Engineering <[email protected]> - 2011.03-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Thu Apr 14 2011 Dan Horák <dan[at]danny.cz> - 2011.03-1
- updated to to 2011.03
- build the tool for manipulation with environment only on arm
* Mon Feb 07 2011 Fedora Release Engineering <[email protected]> - 2010.03-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
* Thu May 27 2010 Dan Horák <dan[at]danny.cz> 2010.03-1
- updated to to 2010.03
- applied review feedback - added docs and expanded description
- pass proper CFLAGS to the compiler
* Sat Nov 14 2009 Dan Horák <dan[at]danny.cz> 2009.08-1
- initial Fedora version