Commit 52d82129 authored by fuyanbin's avatar fuyanbin
Browse files

使用 wine(wine32) 调用 imgRePacker.exe打包allwinner的固件包

parent 4bee61f2
Pipeline #60254 passed with stages
in 11 seconds
...@@ -182,8 +182,12 @@ unpack_and_mount_image() { ...@@ -182,8 +182,12 @@ unpack_and_mount_image() {
echo "Allwinner PhoenixSute Image Format Detected.." echo "Allwinner PhoenixSute Image Format Detected.."
is_allwinner=1 is_allwinner=1
cp "$img" "$update_img_tmp_dir/update.img" cp "$img" "$update_img_tmp_dir/update.img"
local SCRIPT
local WORKDIR
SCRIPT=$(readlink -f "\$0")
WORKDIR=$(dirname "$SCRIPT")
pushd "$update_img_tmp_dir" pushd "$update_img_tmp_dir"
imgrepacker unpack ./update.img /usr/lib/wine/wine "$WORKDIR"/tools/allwinner/win32/imgRePacker.exe unpack ./update.img
popd popd
rm -f "$update_img_tmp_dir/update.img" rm -f "$update_img_tmp_dir/update.img"
...@@ -411,8 +415,12 @@ pack_image() { ...@@ -411,8 +415,12 @@ pack_image() {
echo "Allwinner PhoenixSute Image Format Detected.." echo "Allwinner PhoenixSute Image Format Detected.."
__pack_super_img "$ALLWINNER_DEFAULT_SYSTEM_PARTITION_NAME" __pack_super_img "$ALLWINNER_DEFAULT_SYSTEM_PARTITION_NAME"
sleep 5 sleep 5
local SCRIPT
local WORKDIR
SCRIPT=$(readlink -f "\$0")
WORKDIR=$(dirname "$SCRIPT")
pushd "$update_img_tmp_dir" pushd "$update_img_tmp_dir"
imgrepacker pack ./update.img.dump /usr/lib/wine/wine "$WORKDIR"/tools/allwinner/win32/imgRePacker.exe pack ./update.img.dump
popd popd
mv "$update_img_tmp_dir/update.img" "$outfile_path" mv "$update_img_tmp_dir/update.img" "$outfile_path"
elif [[ "$is_rockchip" == "1" ]] elif [[ "$is_rockchip" == "1" ]]
......
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