summaryrefslogtreecommitdiff
path: root/src/arch/arm/v7/build_tmp_decl.sh
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-12-03 22:41:29 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-12-03 22:41:29 (GMT)
commit172fce9bab61de1ffa89f731b5d10f96e209afc1 (patch)
tree31aee5a141979fa99bbf88cbf2b7990de0ec3832 /src/arch/arm/v7/build_tmp_decl.sh
parentf7ef27195f8c9dc35e5e210a333b74fcfae5ad71 (diff)
Begun to support more than the only 'ARMv7' architecture for ARM (ARM / Thumb16 / Thumb32).
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@433 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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