clean up spec to account for upstream changes in building just tools
This commit is contained in:
parent
f406e87a34
commit
d167637157
|
@ -14,33 +14,19 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
%global with_env 1
|
%global with_env 1
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains a few U-Boot utilities - mkimage for creating boot images
|
This package contains a few U-Boot utilities - mkimage for creating boot images
|
||||||
and fw_printenv/fw_setenv for manipulating the boot environment variables.
|
and fw_printenv/fw_setenv for manipulating the boot environment variables.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n u-boot-%{version}
|
%setup -q -n u-boot-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make sheevaplug_config
|
|
||||||
|
|
||||||
# create files normally created by cross-compiler
|
|
||||||
touch include/autoconf.mk
|
|
||||||
touch include/autoconf.mk.dep
|
|
||||||
mkdir include/generated
|
|
||||||
touch include/generated/generic-asm-offsets.h
|
|
||||||
touch lib/asm-offsets.s
|
|
||||||
touch {arch/arm/cpu/arm926ejs,examples/standalone,tools,tools/env}/.depend
|
|
||||||
|
|
||||||
make tools HOSTCC="gcc $RPM_OPT_FLAGS" HOSTSTRIP=/bin/true CROSS_COMPILE=""
|
make tools HOSTCC="gcc $RPM_OPT_FLAGS" HOSTSTRIP=/bin/true CROSS_COMPILE=""
|
||||||
%if 0%{?with_env}
|
%if 0%{?with_env}
|
||||||
make env HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE=""
|
make env HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE=""
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
@ -58,11 +44,9 @@ install -p -m 0755 tools/env/fw_printenv $RPM_BUILD_ROOT%{_bindir}
|
||||||
install -p -m 0644 tools/env/fw_env.config $RPM_BUILD_ROOT%{_sysconfdir}
|
install -p -m 0644 tools/env/fw_env.config $RPM_BUILD_ROOT%{_sysconfdir}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING README doc/README.imximage doc/README.kwbimage doc/uImage.FIT
|
%doc COPYING README doc/README.imximage doc/README.kwbimage doc/uImage.FIT
|
||||||
|
@ -74,7 +58,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||||
%config(noreplace) %{_sysconfdir}/fw_env.config
|
%config(noreplace) %{_sysconfdir}/fw_env.config
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Mar 08 2012 Dennis Gilmore <dennis@ausil.us> - 2011.12-1
|
* Thu Mar 08 2012 Dennis Gilmore <dennis@ausil.us> - 2011.12-1
|
||||||
- update to 2011.12 release
|
- update to 2011.12 release
|
||||||
|
|
Loading…
Reference in New Issue