summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2016-09-13 12:42:40 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-09-13 22:22:25 -0700
commit9e7c12b74e96ca123865b0ac4ca96b32aad548a7 (patch)
tree5d8e124f8ec9d9974914f486006be3a5726724b0 /chip
parent1cdd2d52fce3c8689b0357c424bf77a3e72625d4 (diff)
downloadchrome-ec-9e7c12b74e96ca123865b0ac4ca96b32aad548a7.tar.gz
Cr50: #define CR50_DEV in source when used manually
We want the default build to be ready for production use, without any unlocked security features, development-only tests, etc. Running "make buildall" or "make BOARD=cr50" builds the default (production) image. To build a development image, use CR50_DEV=1 make BOARD=cr50 This CL adds "-DCR50_DEV=$(CR50_DEV)" to the CFLAGS for use in compiled code. BUG=chrome-os-partner:55557 BRANCH=none TEST=make buildall Verify that #ifdef CR50_DEV [stuff] #endif works inside C code. Change-Id: Id5e16e9ba0135828f4365fc1ac4a23384f30ba01 Signed-off-by: Bill Richardson <wfrichar@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/385059 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/g/build.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/chip/g/build.mk b/chip/g/build.mk
index ed5c62ccbe..9d34bf0f07 100644
--- a/chip/g/build.mk
+++ b/chip/g/build.mk
@@ -106,6 +106,7 @@ CR50_RW_KEY = loader-testkey-A.pem
SIGNER = $(out)/util/signer
SIGNER_EXTRAS =
else
+CFLAGS += -DCR50_DEV=1
SIGNER = $(HOME)/bin/codesigner
CR50_RW_KEY = cr50_rom0-dev-blsign.pem.pub
RW_SIGNER_EXTRAS = -x util/signer/fuses.xml