Commit 2354c214 authored by anyc's avatar anyc

exit script if creating boot.img fails

parent 91a2a446
...@@ -12,7 +12,7 @@ do_compile_append() { ...@@ -12,7 +12,7 @@ do_compile_append() {
cp ${WORKDIR}/img_info . cp ${WORKDIR}/img_info .
sed -i "s@%%KERNEL%%@${B}/${KERNEL_OUTPUT}@" img_info sed -i "s@%%KERNEL%%@${B}/${KERNEL_OUTPUT}@" img_info
sed -i "s@%%RAMDISK%%@${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz@" img_info sed -i "s@%%RAMDISK%%@${DEPLOY_DIR_IMAGE}/initramfs-android-image-${MACHINE}.cpio.gz@" img_info
mkboot . boot.img mkboot . boot.img || { echo "mkboot failed"; exit 1; }
} }
do_deploy_append() { do_deploy_append() {
......
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