This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Buildrpm question


Marc Karasek wrote:
I noticed that the -buildrpm option in crosstools is no longer there. I
took a look at the buildrpm.sh script and am a bit confused as to how to
use this to build for a cross toolchain. I do not see where you specify
the target processor.

The buildrpm.sh script in crosstool-0.35 is just:


TOOLCOMBOS="gcc-3.4.3-glibc-2.2.2"
export TOOLCOMBOS
sh crosstool-0.35/buildsrpms.sh
mkdir -p result
for toolcombo in $TOOLCOMBOS; do
   cp rpmbuild/SRPMS/crosstool-$toolcombo*.src.rpm result
   rpm -i result/crosstool-$toolcombo*.src.rpm
   rpmbuild -bb  rpmbuild/SPECS/crosstool-$toolcombo*.spec --without all --with i686
   cp rpmbuild/RPMS/*/crosstool-$toolcombo*.rpm result
done

The important parameters are
    rpmbuild ...  --without all --with i686

Remove --without all --with i686 and rpmbuild will build toolchains
for all known working cpu types.  buildsrpms.sh looks in buildlogs
to see which ones work.

Or leave the --without all, and give --with your-favorite-cpu-type.

(Well, there's a problem with powerpc-foo
toolchains, for which a patch was recently contributed; I can
dig that up if you need it.)

What CPUs are you interested in?
- Dan

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]