1 Summary: Das U-Boot -- the Universal Boot Loader
6 Group: Applications/System
7 Source0: ftp://ftp.denx.de/pub/u-boot/u-boot-%{version}.tar.bz2
8 # Source0-md5: 78b1c2722d3907b5fae2cd219dbaf927
9 URL: http://www.denx.de/wiki/UBoot
10 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13 Das U-Boot (Universal Bootloader, German for "the submarine") is a
14 boot loader for a number of different computer architectures,
15 including PPC, ARM, AVR32, MIPS, x86, 68k, Nios, and MicroBlaze.
18 Summary: Generate kernel image for U-Boot
19 Group: Applications/System
22 This package contains the mkimage utility, which encapsulates a
23 compressed "uImage" Linux kerel image with header information, CRC32
24 checksum, etc, for use with the U-Boot bootloader.
26 mkimage can also be used to create ramdisk images for use with U-Boot,
27 either separated from the Linux kernel image, or combined into one
28 file. mkimage encapsulates the images with a 64 byte header containing
29 information about target architecture, operating system, image type,
30 compression method, entry points, time stamp, CRC32 checksums, etc.
33 %setup -q -n u-boot-%{version}
34 ln -s ../lib_generic/crc32.c tools
38 %{__cc} %{rpmcflags} -DUSE_HOSTCC -c crc32.c -o crc32.o
39 %{__cc} %{rpmcflags} -I../include -c mkimage.c -o mkimage.o
40 %{__cc} %{rpmldflags} -o mkimage crc32.o mkimage.o
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{_bindir}
45 install tools/mkimage $RPM_BUILD_ROOT%{_bindir}
48 rm -rf $RPM_BUILD_ROOT
51 %defattr(644,root,root,755)
52 %doc CHANGELOG CHANGELOG-before-U-Boot-1.1.5 CREDITS MAINTAINERS README
53 # COPYING contains some extra note
57 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_bindir}/mkimage