forked from pool/binutils
2ead0dab74
- Add cross-m68k-binutils OBS-URL: https://build.opensuse.org/request/show/205049 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=146
23 lines
812 B
Bash
23 lines
812 B
Bash
#!/bin/bash
|
|
|
|
# the script takes binutils* and creates the cross-* packages
|
|
|
|
rm -f cross-*-binutils.spec cross-*-binutils.changes
|
|
|
|
# sh4 is stuck in the testsuite
|
|
for arch in aarch64 hppa hppa64 arm i386 x86_64 s390 s390x ppc ppc64 ia64 sparc sparc64 spu avr mips m68k; do
|
|
|
|
echo -n "Building package for $arch --> cross-$arch-binutils ..."
|
|
|
|
ln -f binutils.changes cross-$arch-binutils.changes
|
|
targetarch=`echo $arch | sed -e "s/parisc/hppa/;s/i.86/i586/;s/ppc/powerpc/"`
|
|
exclarch=`echo $arch | sed -e 's/parisc/hppa/;s/i.86/%ix86/;s/arm/%arm/'`
|
|
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
|
|
|
|
echo " done."
|
|
done
|
|
|
|
osc service localrun format_spec_file
|
|
|