Commit 104655a7 authored by fuyanbin's avatar fuyanbin
Browse files

fix: build path

parent 955d6454
...@@ -51,7 +51,7 @@ build_image() { ...@@ -51,7 +51,7 @@ build_image() {
systemfile="$build_dir/system.PARTITION" systemfile="$build_dir/system.PARTITION"
systemfile_ext4="$build_dir/system.PARTITION.ext4" systemfile_ext4="$build_dir/system.PARTITION.ext4"
aml_image_v2_packer -d "$img" "./$build_dir" aml_image_v2_packer -d "$img" "$build_dir"
if file "$systemfile" | grep "Android sparse image" if file "$systemfile" | grep "Android sparse image"
then then
simg2img "$systemfile" "$systemfile_ext4" simg2img "$systemfile" "$systemfile_ext4"
...@@ -86,8 +86,8 @@ build_image() { ...@@ -86,8 +86,8 @@ build_image() {
img2simg "$systemfile_ext4" "$systemfile" img2simg "$systemfile_ext4" "$systemfile"
rm -f "$systemfile_ext4" rm -f "$systemfile_ext4"
fi fi
aml_image_v2_packer -r "./$build_dir/image.cfg" "$build_dir" "${packge_dir}/$(basename "$img")" aml_image_v2_packer -r "/$build_dir/image.cfg" "$build_dir" "${packge_dir}/$(basename "$img")"
rm -rf "./$build_dir/" rm -rf "$build_dir/"
} }
generate_vendor_confg() { generate_vendor_confg() {
......
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