summaryrefslogtreecommitdiff
path: root/src/arch/arm/v7/build_tmp_decl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm/v7/build_tmp_decl.sh')
-rwxr-xr-xsrc/arch/arm/v7/build_tmp_decl.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/arm/v7/build_tmp_decl.sh b/src/arch/arm/v7/build_tmp_decl.sh
index 1236e81..1833f1b 100755
--- a/src/arch/arm/v7/build_tmp_decl.sh
+++ b/src/arch/arm/v7/build_tmp_decl.sh
@@ -2,7 +2,7 @@
arch=$1
-header="opcodes/opcodes_$arch.h"
+header="opcodes/${arch}_opcodes.h"
headertmp="opcodes/opcodes_tmp_$arch.h"
echo "#ifndef ${arch}_def_tmp_h" > $headertmp
@@ -16,14 +16,14 @@ for n in $needed; do
echo " $n..."
- grep -q $n $header
+ grep -q "$n(" $header
if [ $? -ne 0 ]; then
echo "#define $n(r) NULL" >> $headertmp
else
- echo "$n foudn in $header"
+ echo "$n found in $header"
fi