File u-boot-tools.spec of Package u-boot-tools

#
# spec file for package u-boot-tools
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Texas Instruments Inc by Nishanth Menon
# Copyright (c) 2007-2010 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           u-boot-tools
Version:        20111109
Release:        0.0
Summary:        Tools for the u-boot Firmware
Group:          System/Boot
Url:            http://www.denx.de/wiki/U-Boot
Source:         u-boot-%{version}.tar.bz2
Patch5:         0006-ARMV7-hardfp-build-fix.patch
License:        GPL-2.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors.
This package contains:
mkimage- a tool that creates kernel bootable images for u-boot.

%package doc
Summary:        Documentation for the u-boot Firmware
Group:          System/Boot

%description doc
Das U-Boot (or just "U-Boot" for short) is Open Source Firmware for Embedded PowerPC, ARM, MIPS and x86 processors.
This package contains documentation for u-boot firmware

%prep
%setup -q -n u-boot-%{version}
# Any custom patches to be applied on top of mainline u-boot
%patch5 -p1

%build
#make CFLAGS="$RPM_OPT_FLAGS" omap4_panda_config
# temporary disable of --build-id
#make CFLAGS="$RPM_OPT_FLAGS" USE_PRIVATE_LIBGG=yes
make USE_PRIVATE_LIBGG=yes tools

%install
install -D -m 0755 tools/mkimage %{buildroot}%{_bindir}/mkimage
#install -D -m 0755 tools/env/fw_printenv %{buildroot}%{_bindir}/fw_printenv
install -D -m 0644 doc/mkimage.1 %{buildroot}%{_mandir}/man1/mkimage.1
gzip %{buildroot}%{_mandir}/man1/*
#install -d -m 0755 tools/img2srec %{buildroot}%{_bindir}/img2srec
#gzip u-boot

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/mkimage
#%{_bindir}/fw_printenv
%{_mandir}/man1/mkimage.1.gz
%doc COPYING CREDITS README

%files doc
%defattr(-,root,root)
# Generic documents
%doc doc/README.JFFS2 doc/README.JFFS2_NAND doc/README.commands
%doc doc/README.autoboot doc/README.commands doc/README.console doc/README.dns
%doc doc/README.hwconfig doc/README.nand doc/README.NetConsole doc/README.serial_multi
%doc doc/README.SNTP doc/README.standalone doc/README.update doc/README.usb
%doc doc/README.video doc/README.VLAN doc/README.silent doc/README.POST doc/README.Modem
# Copy some useful kermit scripts as well
%doc tools/scripts/dot.kermrc tools/scripts/flash_param tools/scripts/send_cmd tools/scripts/send_image
# Now any h/w dependent Documentation
%doc doc/README.ARM-SoC doc/README.ARM-memory-map 

%changelog
openSUSE Build Service is sponsored by