From 90e5f21c4e104aa7861875dd4b66f2828a578fbb Mon Sep 17 00:00:00 2001 From: Yilun Lin Date: Tue, 29 May 2018 12:39:39 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1075907 Commit-Ready: Yilun Lin Tested-by: Yilun Lin Reviewed-by: Nicolas Boichat --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 53d49b0155..dcd8944a83 100644 --- a/Makefile +++ b/Makefile @@ -36,6 +36,10 @@ config=$(out)/.config # If no key file is provided, use the default dev key PEM ?= $(BDIR)/dev_key.pem +# If CONFIG_BOOTBLOCK is set, includes AP-FW bootblock in the EC image. +# If no bootblock is provided, just pack an empty file. +BOOTBLOCK ?= + # If CONFIG_TOUCHPAD_HASH_FW is set, include hashes of a touchpad firmware in # the EC image (if no touchpad firmware is provided, just output blank hashes). TOUCHPAD_FW ?= -- cgit v1.2.1