summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMohammed Habibulla <moch@google.com>2016-02-03 00:08:49 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-02-03 00:08:49 +0000
commit75fd4cc92da6043313b7c38712b4835920a80206 (patch)
tree311dd3c543ad80eba26f14c2924d4948a69b1c3b
parent47b7ebd6c711531a475735d305ccc1a5e3c7d5d0 (diff)
parent620369c1c9f1bad7cd2402b8e2f4b88356365e27 (diff)
downloadedison-75fd4cc92da6043313b7c38712b4835920a80206.tar.gz
Revert "Revert "Build vendor-partition package and update provision-device script""
am: 620369c1c9 * commit '620369c1c9f1bad7cd2402b8e2f4b88356365e27': Revert "Revert "Build vendor-partition package and update provision-device script""
-rw-r--r--BoardConfig.mk5
-rwxr-xr-xflash_tools/brillo-flashall-edison.sh20
2 files changed, 16 insertions, 9 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 2b9d5d0..46f048d 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -58,5 +58,10 @@ WIFI_DRIVER_FW_PATH_P2P := "/vendor/firmware/bcm43340/fw_bcmdhd_p2p.bin"
BOARD_SEPOLICY_DIRS += \
device/intel/edison/sepolicy
+vendor_partition_directory := vendor/bsp/intel/edison
+BRILLO_VENDOR_PARTITIONS := \
+ $(vendor_partition_directory)/uboot_firmware:u-boot-edison.bin \
+ $(vendor_partition_directory)/uboot_firmware:gpt.bin
+
# Must defined at the end of the file
$(call add_device_packages)
diff --git a/flash_tools/brillo-flashall-edison.sh b/flash_tools/brillo-flashall-edison.sh
index a8a971b..761301b 100755
--- a/flash_tools/brillo-flashall-edison.sh
+++ b/flash_tools/brillo-flashall-edison.sh
@@ -22,22 +22,24 @@ function dir_with_file() {
LOCAL_DIR=$(dirname "${0}")
# Location of where the Brillo OS image is built.
-_EDISON_IMG_DIR=$(dir_with_file boot.img \
+OS=$(dir_with_file boot.img \
+ "${ANDROID_PROVISION_OS_PARTITIONS}" \
"${LOCAL_DIR}" \
"${BRILLO_OUT_DIR}" \
"${ANDROID_PRODUCT_OUT}")
# Location of binary blobs supplied by the vendor.
-_EDISON_UBOOT_DIR=$(dir_with_file u-boot-edison.bin \
+VENDOR=$(dir_with_file u-boot-edison.bin \
+ "${ANDROID_PROVISION_VENDOR_PARTITIONS}" \
"${LOCAL_DIR}" \
"${ANDROID_BUILD_TOP}/vendor/bsp/intel/edison/uboot_firmware")
-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 \
+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 \
oem set_active 0 "$@"