forked from Imagelibrary/rtems
2002-01-22 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* binutils/binutils.add: Add initial support for building Canadian cross RPMs. It should work like this: cd rtems/scripts ./configure --build=`../config.guess` --host=i386-cygwin make install rpm --target=i386-cygwin \ /usr/src/redhat/SPECS/<target>-binutils-..spec. alien -t /usr/src/redhat/RPMS/....i386.rpm .. and voila ... your tarball, with rpm-consistency checks etc. applied.
This commit is contained in:
@@ -17,7 +17,7 @@ License: GPL/LGPL
|
||||
Autoreqprov: off
|
||||
Packager: corsepiu@faw.uni-ulm.de and joel@OARcorp.com
|
||||
Prefix: /opt
|
||||
BuildRoot: /tmp/@target_alias@-binutils
|
||||
BuildRoot: %{_tmppath}/@target_alias@-binutils
|
||||
|
||||
Version: @binutils_version@
|
||||
Source0: ftp://ftp.gnu.org/pub/gnu/binutils/binutils-@binutils_version@.tar.gz
|
||||
@@ -50,7 +50,11 @@ This is binutils sources with patches for RTEMS.
|
||||
|
||||
%build
|
||||
cd build
|
||||
../binutils-@binutils_version@/configure --target=@target_alias@ \
|
||||
# Ugly hack to work around a bug in SuSE's rpm
|
||||
%if "${_build_cpu}-%{_build_os}" != "%{_target_cpu}-%{_target_os}"
|
||||
ARGS="--build=%{_build} --host=%{_target}"
|
||||
%endif
|
||||
../binutils-@binutils_version@/configure $ARGS --target=@target_alias@ \
|
||||
--verbose --prefix=/opt/rtems
|
||||
|
||||
make all
|
||||
@@ -88,6 +92,6 @@ This is binutils sources with patches for RTEMS.
|
||||
|
||||
%clean
|
||||
# let rpm --clean remove BuildRoot iif using the default BuildRoot
|
||||
test "$RPM_BUILD_ROOT" = "/tmp/@target_alias@-binutils" && \
|
||||
test "$RPM_BUILD_ROOT" = "%{_tmppath}/@target_alias@-binutils" && \
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
Reference in New Issue
Block a user