summaryrefslogtreecommitdiff
path: root/util/build.mk
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2018-05-29 12:39:39 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-07-02 04:34:53 -0700
commit90e5f21c4e104aa7861875dd4b66f2828a578fbb (patch)
treee82febd9307f7ce242bb4a57dda04fde80056e57 /util/build.mk
parentf18fa2977539fd3460d808637503d8fcb6d0b594 (diff)
downloadchrome-ec-90e5f21c4e104aa7861875dd4b66f2828a578fbb.tar.gz
common/bootblock: Pack bootblock in EC image.
Packs a bootblock into EC image. The bootblock content will be firstly tranlated to eMMC emulated data, and then been packed to the RO image. Getting idear from: CL:1039105(which generates eMMC data as a header file). BRANCH=none BUG=b:80159522 TEST=BOOTBLOCK=xyz make BOARD=kukui -j BOOTBLOCK=xyz make BOARD=kukui -j # check it doesn't repack. BOOTBLOCK=abc make BOARD=kukui -j # check it repacks the bootblock. Change-Id: Ia1564d6c54aed7a91fc42210d6247bdecfd82f4e Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1075907 Commit-Ready: Yilun Lin <yllin@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'util/build.mk')
-rw-r--r--util/build.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/build.mk b/util/build.mk
index 065528a681..ad9f5656c2 100644
--- a/util/build.mk
+++ b/util/build.mk
@@ -58,6 +58,13 @@ $(out)/util/%/usb_pd_policy.o: %/usb_pd_policy.c
$(call quiet,c_to_vif,BUILDCC)
endif # CONFIG_USB_POWER_DELIVERY
+ifneq ($(CONFIG_BOOTBLOCK),)
+build-util-bin += gen_emmc_transfer_data
+
+# Bootblock is only packed in RO image.
+$(out)/util/gen_emmc_transfer_data: BUILD_LDFLAGS += -DSECTION_IS_RO
+endif # CONFIG_BOOTBLOCK
+
ifneq ($(CONFIG_TOUCHPAD_HASH_FW),)
build-util-bin += gen_touchpad_hash