1.更新构建脚本。

This commit is contained in:
luocai 2024-06-28 15:33:38 +08:00
parent cd1c3e5f59
commit 040016a5cf

View File

@ -3,7 +3,7 @@
cross_compile=true cross_compile=true
build_hisi=false build_hisi=false
debug_deploy=false debug_deploy=false
TARGET_IP="172.16.103.79" TARGET_IP="172.16.103.92"
TARGET_PATH="/system/bin" TARGET_PATH="/system/bin"
base_path=$(pwd) base_path=$(pwd)
libraries_root="/opt/Libraries" libraries_root="/opt/Libraries"
@ -147,13 +147,9 @@ function deploy_old(){
if [ $build_hisi = true ]; then if [ $build_hisi = true ]; then
docker run -it --rm --user 1000:1000 -v /opt:/opt -v $(pwd):$(pwd) -w $(pwd) frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3 make server_protocol docker run -it --rm --user 1000:1000 -v /opt:/opt -v $(pwd):$(pwd) -w $(pwd) frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3 make server_protocol
docker run -it --rm --user 1000:1000 -v /opt:/opt -v $(pwd):$(pwd) -w $(pwd) frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3 make -j6 docker run -it --rm --user 1000:1000 -v /opt:/opt -v $(pwd):$(pwd) -w $(pwd) frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3 make -j4
else else
# docker run --rm -v .:$(pwd) -w $(pwd) b020_dev protoc --nanopb_out=./ 3rdparty/rwSrvProtocol/PacketModel_all.proto docker run -it --rm --user 1000:1000 -v /opt:/opt -v $(pwd):$(pwd) -w $(pwd) -e PATH="/opt/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin:$PATH" frp-by1.wwvvww.cn:45288/nanopb:0.3.9.3 make PLATFORM=rv1109 server_protocol
# make PLATFORM=rv1109 server_protocol
# if [ $? -ne 0 ]; then
# exit 1
# fi
make PLATFORM=rv1109 -j4 make PLATFORM=rv1109 -j4
fi fi
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
@ -181,7 +177,7 @@ function deploy_old(){
if [ $build_hisi = true ]; then if [ $build_hisi = true ]; then
echo "." scp -i ~/Projects/ssh_host_rsa_key_ok ./3rdparty/arm-himix200-linux/rwStageProtocol/lib/librwSrvProtocol.so root@${TARGET_IP}:/system/lib/
ssh -i ~/Projects/ssh_host_rsa_key_ok root@${TARGET_IP} "reboot" ssh -i ~/Projects/ssh_host_rsa_key_ok root@${TARGET_IP} "reboot"
else else
# scp -i ~/Projects/ssh_host_rsa_key_ok ./3rdparty/arm-linux-gnueabihf/librwhscheckpw/lib/librwhscheckpw.so root@${TARGET_IP}:/system/lib/ # scp -i ~/Projects/ssh_host_rsa_key_ok ./3rdparty/arm-linux-gnueabihf/librwhscheckpw/lib/librwhscheckpw.so root@${TARGET_IP}:/system/lib/