summaryrefslogtreecommitdiff
path: root/chip/g/build.mk
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-04-04 09:01:52 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-04-05 22:12:13 -0700
commit9e50bb04730c312f2f950963d8bce89aa4dab0bc (patch)
tree585ded4f19bdcb6d4f013bc63b3f8890bd55ed30 /chip/g/build.mk
parentbf6be57ca25be07ff3f949ff5b5b943f7ad95fc2 (diff)
downloadchrome-ec-9e50bb04730c312f2f950963d8bce89aa4dab0bc.tar.gz
cr50: use codesigner from chroot
Source code for Cr50 codesigner has been added to the chroot and the executable is installed as /usr/bin/cr50-codesigner when cros sdk is created/updated. Let's use the 'official' version instead of outdated local one. BRANCH=cr50,cr50-mp BUG=b:73296144 TEST=verified that properly signed Cr50 images can be built. Change-Id: Ibc68340a26011c7d5ac028bbee73cd0f2c39c291 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/996512 Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'chip/g/build.mk')
-rw-r--r--chip/g/build.mk8
1 files changed, 2 insertions, 6 deletions
diff --git a/chip/g/build.mk b/chip/g/build.mk
index c2a5bd360c..7e68564387 100644
--- a/chip/g/build.mk
+++ b/chip/g/build.mk
@@ -114,14 +114,10 @@ dirs-y += chip/g/dcrypto
dirs-y += chip/g/loader
endif
-$(out)/RO/ec.RO.flat: $(out)/util/signer
-$(out)/RW/ec.RW.flat: $(out)/util/signer
-
%.hex: %.flat
ifneq ($(CONFIG_RW_B),)
$(out)/$(PROJECT).obj: $(out)/RW/ec.RW_B.flat
-$(out)/RW/ec.RW_B.flat: $(out)/util/signer
endif
ifneq ($(CR50_DEV),)
@@ -130,13 +126,13 @@ endif
MANIFEST := util/signer/ec_RW-manifest-dev.json
CR50_RO_KEY ?= rom-testkey-A.pem
+SIGNER = /usr/bin/cr50-codesigner
+
ifeq ($(H1_DEVIDS),)
CR50_RW_KEY = loader-testkey-A.pem
-SIGNER = $(out)/util/signer
SIGNER_EXTRAS =
SIGNER_MANIFEST := $(MANIFEST)
else
-SIGNER = sudo $(HOME)/bin/codesigner
CR50_RW_KEY = cr50_rom0-dev-blsign.pem.pub
RW_SIGNER_EXTRAS = -x util/signer/fuses.xml