Commit 8a57c4b0 authored by fuyanbin's avatar fuyanbin
Browse files

fix: 打包目录路径

parent 46479e29
......@@ -434,12 +434,12 @@ pack_image() {
__pack_super_img "$ROCKCHIP_DEFAULT_SYSTEM_PARTITION_NAME"
cp -f "$update_img_tmp_dir/update.img.dump/MiniLoaderAll.bin" "$update_img_tmp_dir/update.img.dump/Image/MiniLoaderAll.bin"
cp -f "$update_img_tmp_dir/update.img.dump/parameter.txt" "$update_img_tmp_dir/update.img.dump/Image/parameter.txt"
afptool -pack "$update_img_tmp_dir" "$update_img_tmp_dir/update.img"
afptool -pack "$update_img_tmp_dir/update.img.dump" "$update_img_tmp_dir/update.img"
local chip_parameter
chip_parameter="$(__get_chip_from_parameter "${update_img_tmp_dir}/update.img.dump/parameter.txt")"
# e.g. rkImageMaker -RK322H output/MiniLoaderAll.bin output/Image/update.img update.img -os_type:androidos
rkImageMaker "-${chip_parameter}" -os_type:androidos \
"$update_img_tmp_dir/MiniLoaderAll.bin" "$update_img_tmp_dir/update.img" "$outfile_path"
"$update_img_tmp_dir/update.img.dump/MiniLoaderAll.bin" "$update_img_tmp_dir/update.img" "$outfile_path"
fi
rm -rf "$build_dir"
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment