summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-04-10 07:59:37 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-04-11 11:25:15 -0700
commit80f0f5c7cf42d32ce27690cb303d6ea26b2e01b9 (patch)
treeab5dbdc4fcffc1cc04478cba5476d7e6a1a2dbe7 /chip
parent209f47b692bd74fc5afcfeaf0e713ceaa99b9932 (diff)
downloadchrome-ec-80f0f5c7cf42d32ce27690cb303d6ea26b2e01b9.tar.gz
cr50: bypass signing step if cr50-codesigner is not available
When building EC targets in the setups where the Cr50 codesigner utility is not present let's just bypass the signing step. Also removing bitrotten source code of the old codesigner. BRANCH=none BUG=chromium:830302 TEST='make buildall' succeeds even if cr50-codesigner is not available. Change-Id: Ic6c4988455bcee6c45504e1fe781f6e03636d57a Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1005401 Reviewed-by: Allen Webb <allenwebb@google.com> Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/g/build.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/chip/g/build.mk b/chip/g/build.mk
index 331c5b085f..0c80af042d 100644
--- a/chip/g/build.mk
+++ b/chip/g/build.mk
@@ -4,8 +4,6 @@
# found in the LICENSE file.
#
-SIGNED_IMAGES = 1
-
CORE:=cortex-m
CFLAGS_CPU+=-march=armv7-m -mcpu=cortex-m3
@@ -126,7 +124,11 @@ endif
MANIFEST := util/signer/ec_RW-manifest-dev.json
CR50_RO_KEY ?= rom-testkey-A.pem
-SIGNER = /usr/bin/cr50-codesigner
+REAL_SIGNER = /usr/bin/cr50-codesigner
+ifneq ($(wildcard $(REAL_SIGNER)),)
+SIGNED_IMAGES = 1
+SIGNER := $(REAL_SIGNER)
+endif
ifeq ($(H1_DEVIDS),)
CR50_RW_KEY = loader-testkey-A.pem