Add option to flash images from differen out directory

To make build faster sometime, developer uses "OUT_DIR_COMMON_BASE" variable to change
build out directory
(i.e. putting out directory on separate ssd/X volume)

For such case, option is added to specify out directory path as a argument to
script
e.g.
if out directory is at - /mnt/ssd_1/build_out/out/target/product/hikey
then run script with additional out parameter:
sudo ./flash_all.sh /dev/ttyUSBX --out \
                /mnt/ssd_1/build_out/out/target/product/hikey

Testing Done: Flash & boot with both the options

Change-Id: I9f9b8d57c8f35f03f429e942b05e2b0b8a4ffb60
Signed-off-by: Satish Patel <satish.patel@linaro.org>
1 file changed