summaryrefslogtreecommitdiff
path: root/board/cr50/build.mk
diff options
context:
space:
mode:
authorPhilip Chen <philipchen@google.com>2017-05-12 15:17:32 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2017-07-05 19:41:46 +0000
commit8ea1e7303099ba804a09015c37e7bbc08e026b55 (patch)
tree7e60731e77bf9c18bc5cf7e392909499eecb3781 /board/cr50/build.mk
parent1013e3073a52ae0ac157d08fec57bdaac205f1ea (diff)
downloadchrome-ec-release-R59-9460.B.tar.gz
cr50: Add console and TPM vendor commands to get/set board IDstabilize-9460.73.Brelease-R59-9460.B
This patch adds vendor and console commands to read and write the board ID space in the INFO1 block. Current image's board ID settings are saved in the image header by the latest codesigner. Board ID write attempts are rejected if the board ID space is already initialized, or if the currently running image will not be allowed to run with the new board ID space settings. Error codes are returned to the caller as a single byte value. Successful read command returns 12 bytes of the board ID space contents. The console command always allows to read the board ID value, and allows to write it if the image was built with debug enabled. BUG=b:35586335 BRANCH=cr50 TEST=as follows: - verified that board ID can be read by any image and set by debug images. - with the upcoming patches verified the ability to set and read board ID values using vendor commands. Change-Id: I35a3e2db92175a29de8011172b80091065b27414 Signed-off-by: Philip Chen <philipchen@google.com> Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/522234 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Mary Ruthven <mruthven@chromium.org> (cherry picked from commit ee545922389739b39cc0ac7e0f0d1dd8c2c67607) Reviewed-on: https://chromium-review.googlesource.com/557386
Diffstat (limited to 'board/cr50/build.mk')
-rw-r--r--board/cr50/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/cr50/build.mk b/board/cr50/build.mk
index 688f36882f..e625a1f93c 100644
--- a/board/cr50/build.mk
+++ b/board/cr50/build.mk
@@ -30,6 +30,7 @@ dirs-y += $(BDIR)/tpm2
# Objects that we need to build
board-y = board.o
+board-y += board_id.o
board-${CONFIG_RDD} += rdd.o
board-${CONFIG_USB_SPI} += usb_spi.o
board-${CONFIG_USB_I2C} += usb_i2c.o