2007-10-09 04:28:58 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# the script takes binutils* and creates the cross-* packages
|
2013-05-15 11:57:25 +02:00
|
|
|
|
|
|
|
rm -f cross-*-binutils.spec cross-*-binutils.changes
|
|
|
|
|
2012-02-15 12:33:41 +01:00
|
|
|
# sh4 is stuck in the testsuite
|
2013-05-15 11:57:25 +02:00
|
|
|
for arch in aarch64 hppa hppa64 arm i386 x86_64 s390 s390x ppc ppc64 ia64 sparc sparc64 spu avr mips; 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-06-19 08:02:31 +02:00
|
|
|
exclarch=`echo $arch | sed -e 's/parisc/hppa/;s/i.86/%ix86/;s/arm/%arm/'`
|
2012-06-18 21:15:24 +02:00
|
|
|
sed -e "s/^Name:.*binutils\$/Name: cross-$arch-binutils\nExcludeArch: $exclarch\n%define cross 1\n%define TARGET $targetarch/;" \
|
|
|
|
< 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
|
|
|
|
|