diff options
author | Yilun Lin <yllin@google.com> | 2018-05-29 12:39:39 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-07-02 04:34:53 -0700 |
commit | 90e5f21c4e104aa7861875dd4b66f2828a578fbb (patch) | |
tree | e82febd9307f7ce242bb4a57dda04fde80056e57 /Makefile.rules | |
parent | f18fa2977539fd3460d808637503d8fcb6d0b594 (diff) | |
download | chrome-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 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 9ca18284ea..29a1a27b85 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -103,6 +103,9 @@ cmd_link_taskinfo = $(BUILDCC) $(BUILD_CFLAGS) --shared -fPIC $^ \ cmd_tp_hash = $(out)/util/gen_touchpad_hash \ $(if $(TOUCHPAD_FW),-f $(TOUCHPAD_FW)) -o $@ +cmd_emmc_bootblock = $(out)/util/gen_emmc_transfer_data \ + $(if $(BOOTBLOCK),-i $(BOOTBLOCK)) -o $@ + # commands for RSA signature: rwsig does not need to sign the whole image # (it signs the RW part separately). usbpd1 type needs to sign the final image. ifeq ($(CONFIG_RWSIG_TYPE_RWSIG),) |