5 ARCHES="armv5tel armv7l armv7hl armv7nhl"
10 # baselibs.conf - part 1
11 mv -f baselibs.conf baselibs.conf.old 2>&1 > /dev/null || true
12 echo -n "arch i586 targets " > baselibs.conf
15 for i in ${ARCHES} ; do
17 cat ./${SPECNAME} | sed -e "s#Name: .*#Name: cross-${i}-${NAME}#" > ./cross-${i}-${NAME}.spec
18 cat ./${SPECNAME} | sed -e "s#Name: .*#Name: cross-${i}-${NAME}-accel#" > ./cross-${i}-${NAME}-accel.spec
19 # baselibs.conf - part 2
20 test ! x"$i" = x"" && echo -n "${i}:${i} " >> baselibs.conf
23 # baselibs.conf - part 3
24 echo "" >> baselibs.conf
25 for i in ${ARCHES} ; do
26 echo "" >> baselibs.conf
27 echo "cross-${i}-${NAME}-accel
29 targettype 32bit block!" >> baselibs.conf
30 for j in ${ARCHES//${i}} ; do
31 echo " targettype $j block!" >> baselibs.conf
33 cat >> baselibs.conf << EOF
35 targettype ${i} autoreqprov off
36 targettype ${i} provides "cross-arm-binutils-accel"
37 targettype ${i} requires "glibc-x86-arm"
38 targettype ${i} requires "zlib-x86-arm"
39 targettype ${i} requires "binutils"
40 targettype ${i} prefix /emul/ia32-linux
41 targettype ${i} extension -arm
43 targettype ${i} -/usr/share/man
44 targettype ${i} -/usr/share/doc
45 targettype ${i} requires "tizen-accelerator"
49 targettype ${i} post " for bin in addr2line ar as c++filt gprov ld nm objcopy objdump ranlib readelf size strings strip ; do"
50 targettype ${i} post " binary="/usr/bin/\${bin}" "
51 targettype ${i} post " if test -e \${binary} -a ! -e \${binary}.orig-arm ; then"
52 targettype ${i} post " mv \${binary} \${binary}.orig-arm && ln -s <prefix>\${binary} \${binary}"
53 targettype ${i} post " else "
54 targettype ${i} post " echo "\${binary} not installed or \${binary}.orig-arm already present !" "
55 targettype ${i} post " fi "
56 targettype ${i} post " done "
58 targettype ${i} preun " for bin in addr2line ar as c++filt gprov ld nm objcopy objdump ranlib readelf size strings strip ; do"
59 targettype ${i} preun " binary="/usr/bin/\${bin}" "
60 targettype ${i} preun " if test -e \${binary}.orig-arm ; then"
61 targettype ${i} preun " rm \${binary} && mv \${binary}.orig-arm \${binary}"
62 targettype ${i} preun " else "
63 targettype ${i} preun " echo "\${binary}.orig-arm not present !" "
64 targettype ${i} preun " fi "
65 targettype ${i} preun " done "