summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagendra modadugu <ngm@google.com>2016-12-10 10:54:30 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-12-15 22:25:32 -0800
commitf4314410839542ef34280818c4e7a12665a361d5 (patch)
tree24c006828f39b287a9defa983257b0abef11c32d
parent3ca6ca9a121c1cd4b326a7235254ca905d5d5f90 (diff)
downloadchrome-ec-stabilize-9093.B.tar.gz
CR50: only build crypto test code on DEV buildsstabilize-9093.B
Avoid building and including crypto test code in prod builds: only define CRYPTO_TEST_SETUP when CR50_DEV is defined. At HEAD, this change drops the size of prod ec.RW.bin from 200704 to 188416. BRANCH=none BUG=chrome-os-partner:54104 TEST=build succeeds Change-Id: I1e6018ec917dbe71cb445206ce232b8ea7a46cb1 Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/418489 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-by: Andrey Pronin <apronin@chromium.org>
-rw-r--r--chip/g/dcrypto/dcrypto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chip/g/dcrypto/dcrypto.h b/chip/g/dcrypto/dcrypto.h
index 4cbb6dfd07..dfe04b2111 100644
--- a/chip/g/dcrypto/dcrypto.h
+++ b/chip/g/dcrypto/dcrypto.h
@@ -9,8 +9,9 @@
#ifndef __EC_CHIP_G_DCRYPTO_DCRYPTO_H
#define __EC_CHIP_G_DCRYPTO_DCRYPTO_H
-/* TODO(vbendeb) don't forget to disable this for prod builds. */
+#ifdef CR50_DEV
#define CRYPTO_TEST_SETUP
+#endif
#include "internal.h"