|
|
5c9ad74 |
Name: uboot-tools
|
|
|
afbb74a |
Version: 2012.04.01
|
|
|
fe25d07 |
Release: 1%{?dist}
|
|
|
5c9ad74 |
Summary: U-Boot utilities
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
Group: Development/Tools
|
|
|
5c9ad74 |
License: GPLv2+
|
|
|
5c9ad74 |
URL: http://www.denx.de/wiki/U-Boot
|
|
|
fe25d07 |
Source0: ftp://ftp.denx.de/pub/u-boot/u-boot-%{version}.tar.bz2
|
|
|
062ad92 |
Patch0: 0001-enable-bootz-support-for-ti-omap-targets.patch
|
|
|
062ad92 |
Patch1: 0001-panda-convert-to-uEnv.txt-bootscript.patch
|
|
|
5c9ad74 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
5c9ad74 |
|
|
|
062ad92 |
|
|
|
062ad92 |
|
|
|
5e75bee |
# build the tool for manipulation with environment only on arm
|
|
|
5e75bee |
%ifarch %{arm}
|
|
|
5e75bee |
%global with_env 1
|
|
|
5e75bee |
%endif
|
|
|
5e75bee |
|
|
|
5c9ad74 |
%description
|
|
|
5c9ad74 |
This package contains a few U-Boot utilities - mkimage for creating boot images
|
|
|
5c9ad74 |
and fw_printenv/fw_setenv for manipulating the boot environment variables.
|
|
|
5c9ad74 |
|
|
|
062ad92 |
%ifarch %{arm}
|
|
|
062ad92 |
%package -n uboot-beagle
|
|
|
062ad92 |
Summary: u-boot bootloader binaries for beagleboard
|
|
|
062ad92 |
Requires: uboot-tools
|
|
|
062ad92 |
|
|
|
062ad92 |
%description -n uboot-beagle
|
|
|
062ad92 |
u-boot bootloader binaries for beagleboard
|
|
|
062ad92 |
|
|
|
062ad92 |
%package -n uboot-panda
|
|
|
062ad92 |
Summary: u-boot bootloader binaries for pandaboard
|
|
|
062ad92 |
Requires: uboot-tools
|
|
|
062ad92 |
|
|
|
062ad92 |
%description -n uboot-panda
|
|
|
062ad92 |
u-boot bootloader binaries for pandaboard
|
|
|
062ad92 |
|
|
|
062ad92 |
%package -n uboot-origen
|
|
|
062ad92 |
Summary: u-boot bootloader binaries for origenboard
|
|
|
062ad92 |
Requires: uboot-tools
|
|
|
062ad92 |
|
|
|
062ad92 |
%description -n uboot-origen
|
|
|
062ad92 |
u-boot bootloader binaries for origenboard
|
|
|
062ad92 |
%endif
|
|
|
062ad92 |
|
|
|
5c9ad74 |
%prep
|
|
|
fe25d07 |
%setup -q -n u-boot-%{version}
|
|
|
062ad92 |
%patch0 -p1
|
|
|
062ad92 |
%patch1 -p1
|
|
|
062ad92 |
mkdir builds
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
%build
|
|
|
062ad92 |
%ifarch %{arm}
|
|
|
062ad92 |
make CROSS_COMPILE="" omap3_beagle_config
|
|
|
062ad92 |
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE=""
|
|
|
062ad92 |
cp -p MLO builds/MLO.beagle
|
|
|
062ad92 |
cp -p u-boot.img builds/u-boot.img.beagle
|
|
|
062ad92 |
cp -p u-boot.bin builds/u-boot.bin.beagle
|
|
|
062ad92 |
make distclean
|
|
|
062ad92 |
|
|
|
062ad92 |
make CROSS_COMPILE="" omap4_panda_config
|
|
|
062ad92 |
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE=""
|
|
|
062ad92 |
cp -p MLO builds/MLO.panda
|
|
|
062ad92 |
cp -p u-boot.img builds/u-boot.img.panda
|
|
|
062ad92 |
cp -p u-boot.bin builds/u-boot.bin.panda
|
|
|
062ad92 |
make distclean
|
|
|
062ad92 |
|
|
|
062ad92 |
make CROSS_COMPILE="" origen_config
|
|
|
062ad92 |
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE=""
|
|
|
062ad92 |
cp -p spl/origen-spl.bin builds/origen-spl.bin.origen
|
|
|
062ad92 |
cp -p u-boot.bin builds/u-boot.bin.origen
|
|
|
062ad92 |
make distclean
|
|
|
062ad92 |
%endif
|
|
|
062ad92 |
|
|
|
5c9ad74 |
make tools HOSTCC="gcc $RPM_OPT_FLAGS" HOSTSTRIP=/bin/true CROSS_COMPILE=""
|
|
|
062ad92 |
|
|
|
5e75bee |
%if 0%{?with_env}
|
|
|
062ad92 |
make CROSS_COMPILE="" sheevaplug_config
|
|
|
5e75bee |
make env HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE=""
|
|
|
5e75bee |
%endif
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
%install
|
|
|
5c9ad74 |
rm -rf $RPM_BUILD_ROOT
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
5c9ad74 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
5e75bee |
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
062ad92 |
%ifarch %{arm}
|
|
|
062ad92 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot-panda/
|
|
|
062ad92 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot-beagle/
|
|
|
062ad92 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot-origen/
|
|
|
062ad92 |
|
|
|
062ad92 |
for board in beagle panda
|
|
|
062ad92 |
do
|
|
|
062ad92 |
install -p -m 0644 builds/u-boot.bin.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot-$(echo $board)/u-boot.bin
|
|
|
062ad92 |
install -p -m 0644 builds/u-boot.img.$(echo $board) $RPM_BUILD_ROOT%{_datadir}/uboot-$(echo $board)/u-boot.img
|
|
|
062ad92 |
done
|
|
|
062ad92 |
install -p -m 0644 builds/MLO.beagle $RPM_BUILD_ROOT%{_datadir}/uboot-beagle/MLO
|
|
|
062ad92 |
install -p -m 0644 builds/MLO.panda $RPM_BUILD_ROOT%{_datadir}/uboot-panda/MLO
|
|
|
062ad92 |
install -p -m 0644 builds/origen-spl.bin.origen $RPM_BUILD_ROOT%{_datadir}/uboot-origen/origen-spl.bin
|
|
|
062ad92 |
install -p -m 0644 builds/u-boot.bin.origen $RPM_BUILD_ROOT%{_datadir}/uboot-origen/u-boot.bin
|
|
|
062ad92 |
|
|
|
062ad92 |
%endif
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
install -p -m 0755 tools/mkimage $RPM_BUILD_ROOT%{_bindir}
|
|
|
5e75bee |
install -p -m 0644 doc/mkimage.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
5e75bee |
|
|
|
5e75bee |
%if 0%{?with_env}
|
|
|
5c9ad74 |
install -p -m 0755 tools/env/fw_printenv $RPM_BUILD_ROOT%{_bindir}
|
|
|
5c9ad74 |
( cd $RPM_BUILD_ROOT%{_bindir}; ln -sf fw_printenv fw_setenv )
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
install -p -m 0644 tools/env/fw_env.config $RPM_BUILD_ROOT%{_sysconfdir}
|
|
|
5e75bee |
%endif
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
%clean
|
|
|
5c9ad74 |
rm -rf $RPM_BUILD_ROOT
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
%files
|
|
|
5c9ad74 |
%defattr(-,root,root,-)
|
|
|
5e75bee |
%doc COPYING README doc/README.imximage doc/README.kwbimage doc/uImage.FIT
|
|
|
5c9ad74 |
%{_bindir}/mkimage
|
|
|
5e75bee |
%{_mandir}/man1/mkimage.1*
|
|
|
5e75bee |
%if 0%{?with_env}
|
|
|
5c9ad74 |
%{_bindir}/fw_printenv
|
|
|
5c9ad74 |
%{_bindir}/fw_setenv
|
|
|
5c9ad74 |
%config(noreplace) %{_sysconfdir}/fw_env.config
|
|
|
5e75bee |
%endif
|
|
|
062ad92 |
%ifarch %{arm}
|
|
|
062ad92 |
%files -n uboot-beagle
|
|
|
062ad92 |
%defattr(-,root,root,-)
|
|
|
062ad92 |
%{_datadir}/uboot-beagle/
|
|
|
062ad92 |
|
|
|
062ad92 |
%files -n uboot-panda
|
|
|
062ad92 |
%defattr(-,root,root,-)
|
|
|
062ad92 |
%{_datadir}/uboot-panda/
|
|
|
062ad92 |
|
|
|
062ad92 |
%files -n uboot-origen
|
|
|
062ad92 |
%defattr(-,root,root,-)
|
|
|
062ad92 |
%{_datadir}/uboot-origen/
|
|
|
062ad92 |
%endif
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
%changelog
|
|
|
afbb74a |
* Mon May 07 2012 Dennis Gilmore <dennis@ausil.us> - 2012.04.01-1
|
|
|
afbb74a |
- update to 2012.04.01 release
|
|
|
afbb74a |
- http://lists.denx.de/pipermail/u-boot/2012-April/123011.html
|
|
|
afbb74a |
|
|
|
fe25d07 |
* Tue Apr 24 2012 Dennis Gilmore <dennis@ausil.us> - 2012.04-1
|
|
|
fe25d07 |
- update to final 2012.04 release
|
|
|
fe25d07 |
|
|
|
062ad92 |
* Thu Apr 19 2012 Dennis Gilmore <dennis@ausil.us> - 2012.04-0.1.rc3
|
|
|
062ad92 |
- update to 2012.04-rc3
|
|
|
062ad92 |
- build uboot binaries for beagle, panda and origen boards
|
|
|
062ad92 |
|
|
|
f406e87 |
* Thu Mar 08 2012 Dennis Gilmore <dennis@ausil.us> - 2011.12-1
|
|
|
f406e87 |
- update to 2011.12 release
|
|
|
f406e87 |
|
|
|
5cd8a9f |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2011.03-2
|
|
|
5cd8a9f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
5cd8a9f |
|
|
|
5e75bee |
* Thu Apr 14 2011 Dan Horák <dan[at]danny.cz> - 2011.03-1
|
|
|
5e75bee |
- updated to to 2011.03
|
|
|
5e75bee |
- build the tool for manipulation with environment only on arm
|
|
|
5e75bee |
|
|
|
a9253e3 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2010.03-2
|
|
|
a9253e3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
a9253e3 |
|
|
|
5c9ad74 |
* Thu May 27 2010 Dan Horák <dan[at]danny.cz> 2010.03-1
|
|
|
5c9ad74 |
- updated to to 2010.03
|
|
|
5c9ad74 |
- applied review feedback - added docs and expanded description
|
|
|
5c9ad74 |
- pass proper CFLAGS to the compiler
|
|
|
5c9ad74 |
|
|
|
5c9ad74 |
* Sat Nov 14 2009 Dan Horák <dan[at]danny.cz> 2009.08-1
|
|
|
5c9ad74 |
- initial Fedora version
|