diff options
Diffstat (limited to 'flash_tools')
-rwxr-xr-x | flash_tools/brillo-flashall-edison.sh | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/flash_tools/brillo-flashall-edison.sh b/flash_tools/brillo-flashall-edison.sh index 761301b..a8a971b 100755 --- a/flash_tools/brillo-flashall-edison.sh +++ b/flash_tools/brillo-flashall-edison.sh @@ -22,24 +22,22 @@ function dir_with_file() { LOCAL_DIR=$(dirname "${0}") # Location of where the Brillo OS image is built. -OS=$(dir_with_file boot.img \ - "${ANDROID_PROVISION_OS_PARTITIONS}" \ +_EDISON_IMG_DIR=$(dir_with_file boot.img \ "${LOCAL_DIR}" \ "${BRILLO_OUT_DIR}" \ "${ANDROID_PRODUCT_OUT}") # Location of binary blobs supplied by the vendor. -VENDOR=$(dir_with_file u-boot-edison.bin \ - "${ANDROID_PROVISION_VENDOR_PARTITIONS}" \ +_EDISON_UBOOT_DIR=$(dir_with_file u-boot-edison.bin \ "${LOCAL_DIR}" \ "${ANDROID_BUILD_TOP}/vendor/bsp/intel/edison/uboot_firmware") -fastboot flash gpt "${VENDOR}"/gpt.bin \ - flash u-boot "${VENDOR}"/u-boot-edison.bin \ - flash boot_a "${OS}"/boot.img \ - flash system_a "${OS}"/system.img \ - flash boot_b "${OS}"/boot.img \ - flash system_b "${OS}"/system.img \ - flash userdata "${OS}"/userdata.img \ +fastboot flash gpt "${_EDISON_IMG_DIR}"/gpt.bin \ + flash u-boot "${_EDISON_UBOOT_DIR}"/u-boot-edison.bin \ + flash boot_a "${_EDISON_IMG_DIR}"/boot.img \ + flash system_a "${_EDISON_IMG_DIR}"/system.img \ + flash boot_b "${_EDISON_IMG_DIR}"/boot.img \ + flash system_b "${_EDISON_IMG_DIR}"/system.img \ + flash userdata "${_EDISON_IMG_DIR}"/userdata.img \ oem set_active 0 "$@" |