Matteo Franchin | 43ec873 | 2014-03-31 15:00:14 +0100 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | if [ ! -d ./arm ]; then |
| 6 | echo "Directory ./arm not found." |
| 7 | exit 1 |
| 8 | fi |
| 9 | |
| 10 | mkdir -p arm64 |
| 11 | dst=`cd arm64 && pwd` |
| 12 | cd arm/ |
| 13 | for f in *; do |
| 14 | cp $f $dst/`echo $f | sed 's/arm/arm64/g'` |
| 15 | done |
| 16 | |
| 17 | sed -i 's,ART_COMPILER_DEX_QUICK_ARM_ARM_LIR_H_,ART_COMPILER_DEX_QUICK_ARM64_ARM64_LIR_H_,g' $dst/arm64_lir.h |
| 18 | sed -i 's,ART_COMPILER_DEX_QUICK_ARM_CODEGEN_ARM_H_,ART_COMPILER_DEX_QUICK_ARM64_CODEGEN_ARM64_H_,g' $dst/codegen_arm64.h |
| 19 | sed -i -e 's,ArmMir2Lir,Arm64Mir2Lir,g' -e 's,arm_lir.h,arm64_lir.h,g' -e 's,codegen_arm.h,codegen_arm64.h,g' $dst/*.h $dst/*.cc |