-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·18 lines (17 loc) · 836 Bytes
/
build.sh
File metadata and controls
executable file
·18 lines (17 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cd Compiler
ANDROID_BUILD_OPTION=android_Release_aarch64
HEXAGON_BUILD_OPTION=hexagon_Release_dynamic_toolv83_v65
#clean
make tree clean V=${ANDROID_BUILD_OPTION} CDSP_FLAG=1
make tree clean V=${HEXAGON_BUILD_OPTION}
#build
make tree V=${ANDROID_BUILD_OPTION} CDSP_FLAG=1
make tree V=${HEXAGON_BUILD_OPTION}
#sign
python2.7 $HEXAGON_SDK_ROOT/tools/elfsigner/elfsigner.py -i ${HEXAGON_BUILD_OPTION}/ship/*.so -o ${HEXAGON_BUILD_OPTION}/ship/signed/
#test
adb -s 12345678 shell mkdir -p /data/local/tmp/EasyDSP/
adb -s 12345678 push ${ANDROID_BUILD_OPTION}/ship/* /data/local/tmp/EasyDSP/
adb -s 12345678 push ${HEXAGON_BUILD_OPTION}/ship/signed/*.so /data/local/tmp/EasyDSP/
adb -s 12345678 shell "export LD_LIBRARY_PATH=/data/local/tmp/EasyDSP ADSP_LIBRARY_PATH=/data/local/tmp/EasyDSP; /data/local/tmp/EasyDSP/empty 0 1000"
cd ..