MTK OTA编译脚本
实例使用 ./ota_build.sh xxx1.zip xxx2.zip update.zip
其他平台的可以看看对应的文档,大体上差不多
build/target/product/security/testkey这个key可能不太一样,特别是有些自己配置的key
if [[ ! $1 ]];then
echo "基准包为空"
exit
else echo "基准包=$1"
fi
if [[ ! $2 ]];then
echo "目标包为空"
exit
else echo "目标包=$2"
fi
update=""
if [[ ! $3 ]];then
update="OTA/update_test.zip"
else
update=$3
fi
echo "更新包=$update"
#./build/tools/releasetools/ota_from_target_files -v -k build/target/product/security/testkey -i OTA/V1.zip OTA/V2.zip update_11.zip
./build/tools/releasetools/ota_from_target_files -v -k build/target/product/security/testkey -i $1 $2 $update
echo "完成"