summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chavez <kechavez@google.com>2016-06-30 19:16:17 -0400
committerKevin Chavez <kechavez@google.com>2016-07-07 13:19:03 -0400
commit9c3acb20906850c575bdf4a1b19400a18c7ad4d0 (patch)
tree07eaa8838ea8bb8d0ffe9c1ff65a83f69129262d
parentdd37a6a655f3fb35b86147c736d8fe80d3968f50 (diff)
downloadbrillo-9c3acb20906850c575bdf4a1b19400a18c7ad4d0.tar.gz
brillo: Configure EFI parameters and build image.
BUG=29123391 TEST=Manually tested output full-disk-image.img with qemu. Checked for presence of EFI application and executed it. Change-Id: I87eb08ceca11e8c862465fe33a63752c447c5753
-rw-r--r--brillo_uefi_x86_64/BoardConfig.mk10
-rwxr-xr-xbrillo_uefi_x86_64/provision-device1
2 files changed, 9 insertions, 2 deletions
diff --git a/brillo_uefi_x86_64/BoardConfig.mk b/brillo_uefi_x86_64/BoardConfig.mk
index e552c39..cb00fb0 100644
--- a/brillo_uefi_x86_64/BoardConfig.mk
+++ b/brillo_uefi_x86_64/BoardConfig.mk
@@ -14,7 +14,7 @@
# limitations under the License.
#
-# 512 MiB - keep in sync with brillo_partitions.bpt
+# 512 MiB - keep in sync with brillo_partitions.bpt.
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912
# No ramdisk.
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
@@ -23,7 +23,7 @@ BOARD_USERDATAIMAGE_PARTITION_SIZE := 576716800
# No ramdisk.
BOARD_USES_FULL_RECOVERY_IMAGE := true
-# Additional bpt file specifying EFI
+# Additional bpt file specifying EFI.
BOARD_BPT_INPUT_FILES += device/generic/brillo/brillo_uefi_x86_64/device-partitions.bpt
# Standard devices would usually define an SoC. Here we define
@@ -36,3 +36,9 @@ TARGET_RECOVERY_FSTAB = \
PRODUCT_COPY_FILES += \
device/generic/brillo/brillo_uefi_x86_64/fstab.brillo_uefi_x86_64:root/fstab.brillo_uefi_x86_64 \
device/generic/brillo/brillo_uefi_x86_64/provision-device:provision-device
+
+# EFI partitions size attribute.
+EFI_IMAGE_SIZE := 314572800
+
+# UEFI-specific applications.
+EFI_INPUT_FILES := device/generic/brillo/brillo_uefi_x86_64/boot_loader/brillo_boot_loader.efi:brillo_boot_loader.efi \ No newline at end of file
diff --git a/brillo_uefi_x86_64/provision-device b/brillo_uefi_x86_64/provision-device
index cfd9ab4..e837899 100755
--- a/brillo_uefi_x86_64/provision-device
+++ b/brillo_uefi_x86_64/provision-device
@@ -22,6 +22,7 @@ OS=${ANDROID_PROVISION_OS_PARTITIONS:-${ANDROID_PRODUCT_OUT}}
bpttool make_disk_image \
--output ${OS}/full-disk-image.img \
--input ${OS}/partition-table.bpt \
+ --image EFI:${OS}/EFI.img \
--image boot_a:${OS}/boot.img \
--image boot_b:${OS}/boot.img \
--image system_a:${OS}/system.img \