2007-10-09 04:28:58 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# the script takes binutils* and creates the cross-* packages
|
2012-02-15 12:33:41 +01:00
|
|
|
# sh4 is stuck in the testsuite
|
|
|
|
for arch in hppa hppa64 mips arm i386 x86_64 s390 s390x ppc ppc64 ia64 sparc alpha spu avr; do
|
2007-10-09 04:28:58 +02:00
|
|
|
|
|
|
|
echo -n "Building package for $arch --> cross-$arch-binutils ..."
|
|
|
|
|
|
|
|
ln -f binutils.changes cross-$arch-binutils.changes
|
2012-06-15 10:02:02 +02:00
|
|
|
targetarch=`echo $arch | sed -e "s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/"`
|
2012-02-15 12:33:41 +01:00
|
|
|
( echo "%define cross 1"
|
2012-06-15 10:02:02 +02:00
|
|
|
echo "%define TARGET $targetarch"
|
2012-02-15 12:33:41 +01:00
|
|
|
) > cross-$arch-binutils.spec
|
2012-06-15 10:02:02 +02:00
|
|
|
sed -e "s/^Name:.*binutils\$/Name: cross-$arch-binutils/; s/^ExcludeArch:.*/ExcludeArch: $targetarch/" \
|
2012-02-15 12:33:41 +01:00
|
|
|
< binutils.spec >> cross-$arch-binutils.spec
|
2007-10-09 04:28:58 +02:00
|
|
|
|
|
|
|
echo " done."
|
|
|
|
done
|
2012-02-15 10:19:39 +01:00
|
|
|
|
2012-06-15 10:02:02 +02:00
|
|
|
osc service localrun format_spec_file
|
|
|
|
|