SHA256
1
0
forked from pool/libmicro
libmicro/find_binary.patch

49 lines
1.4 KiB
Diff
Raw Normal View History

Index: bench.sh
===================================================================
--- bench.sh.orig
+++ bench.sh
@@ -30,8 +30,9 @@
# Use is subject to license terms.
#
+BIN="/usr/lib/libMicro/bin"
bench_version=0.4.2
-libmicro_version=`bin/tattle -V`
+libmicro_version=`$BIN/tattle -V`
case $libmicro_version in
$bench_version)
@@ -96,14 +97,14 @@ printf "!CPU_NAME: %30s\n" "$p_type"
printf "!IP_address: %30s\n" `getent hosts $hostname | awk '{print $1}'`
printf "!Run_by: %30s\n" $LOGNAME
printf "!Date: %30s\n" "`date '+%D %R'`"
-printf "!Compiler: %30s\n" `bin/tattle -c`
-printf "!Compiler Ver.:%30s\n" "`bin/tattle -v`"
-printf "!sizeof(long): %30s\n" `bin/tattle -s`
-printf "!extra_CFLAGS: %30s\n" "`bin/tattle -f`"
-printf "!TimerRes: %30s\n" "`bin/tattle -r`"
+printf "!Compiler: %30s\n" `$BIN/tattle -c`
+printf "!Compiler Ver.:%30s\n" "`$BIN/tattle -v`"
+printf "!sizeof(long): %30s\n" `$BIN/tattle -s`
+printf "!extra_CFLAGS: %30s\n" "`$BIN/tattle -f`"
+printf "!TimerRes: %30s\n" "`$BIN/tattle -r`"
mkdir -p $TMPROOT/bin
-cp bin-$ARCH/exec_bin $TMPROOT/bin/$A
+cp $BIN/exec_bin $TMPROOT/bin/$A
while read A B
do
@@ -125,9 +126,9 @@ do
if [ ! -f $TMPROOT/bin/$A ]
then
- cp bin-$ARCH/$A $TMPROOT/bin/$A
+ cp $BIN/$A $TMPROOT/bin/$A
fi
- (cd $TMPROOT && eval "bin/$A $B")
+ (cd $TMPROOT && eval "$BIN/$A $B")
done <<.
#
# Obligatory null system call: use very short time