diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2018-03-30 21:23:52 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-04-04 18:52:03 -0700 |
commit | f2eac533dcad117e4f631f00d27977ca611dc497 (patch) | |
tree | 935a292c53bde606da7f19a75fe7e8bd59b4fc93 /common/build.mk | |
parent | 5d8a4ba6f252fbda1111c25a05523c73ebe3343d (diff) | |
download | chrome-ec-f2eac533dcad117e4f631f00d27977ca611dc497.tar.gz |
cr50: use run time generated public RMA key definition
Use RMA public key definition generated based on the binary blob
containing the key and key ID.
Key generation is controlled by the make file in common/, but actual
key blob comes from the board directory.
The structure holding the key and key ID is being modified to allow
initialization using a flat array.
No more need in defining CONFIG_RMA_AUTH_SERVER_PUBLIC_KEY and
CONFIG_RMA_AUTH_SERVER_KEY_ID.
BRANCH=cr50, cr50-mp
BUG=b:73296144, b:74100307
TEST='make buildall' still succeeds.
test RMA server generated authentication codes are accepted when
unlocking RMA.
Change-Id: I8ade94de6eb69b3e49bc5b948dbac20e59962acf
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/990783
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/build.mk')
-rw-r--r-- | common/build.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/build.mk b/common/build.mk index e6b6a2da6c..37e8a322c1 100644 --- a/common/build.mk +++ b/common/build.mk @@ -172,3 +172,12 @@ ifneq ($(touchpad_fw_ls),$(old_touchpad_fw_ls)) .PHONY: $(out)/.touchpad_fw endif endif + +ifeq ($(TEST_BUILD),) + +$(out)/RW/common/rma_auth.o: $(out)/rma_key_from_blob.h + +$(out)/rma_key_from_blob.h: board/$(BOARD)/rma_key_blob.test util/bin2h.sh + $(Q)util/bin2h.sh RMA_KEY_BLOB $< $@ + +endif |