summaryrefslogtreecommitdiff
path: root/util/getversion.sh
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2019-07-16 11:08:21 -0700
committerCommit Bot <commit-bot@chromium.org>2019-07-17 19:39:52 +0000
commite425f0d7ef7f6e56b783e20a35709fbb1cc2e2b7 (patch)
tree404e6ba89b8524819c192691cc09a98ae43d3451 /util/getversion.sh
parente7d2f636cb9c80e0c391b0eb4dddd5f15cd15d21 (diff)
downloadchrome-ec-e425f0d7ef7f6e56b783e20a35709fbb1cc2e2b7.tar.gz
cr50: do not enable TPM when compiling for dcrypto tests
There is no room in the flash for both dcrypto tests and the TPM library. Let's disable TPM function (and not link the library) when the image is compiled with dcrypto tests included. BRANCH=cr50, cr50-mp BUG=b:137659935 TEST=verified that there is plenty of room for tests now: $ make BOARD=cr50 -j -k CRYPTO_TEST=1 CR50_DEV=1 . . . *** 8124 bytes in flash and 61564 bytes in RAM still ... in cr50 RO *** *** 66100 bytes in flash and 6000 bytes in RAM still ... in cr50 RW *** - building without CRYPTO_TEST=1 still produces a functional Cr50 image; - when building with CRYPTO_TEST=1, the version string reflects it: $ strings build/cr50/ec.bin | grep cr50_v | head -1 DBG/CT/cr50_v2.0.1776-46b015f6a - CCD of the images built with crypto test enabled is fully functional, in particular USB updates are operational. Change-Id: Iae91ca36dc203301ac423fe048fc67eb44ef5de6 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1704608 Reviewed-by: Namyoon Woo <namyoon@chromium.org>
Diffstat (limited to 'util/getversion.sh')
-rwxr-xr-xutil/getversion.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/getversion.sh b/util/getversion.sh
index de9a74fc52..d775100e8d 100755
--- a/util/getversion.sh
+++ b/util/getversion.sh
@@ -89,7 +89,7 @@ main() {
local ver
IFS="${dc}"
- ver="${CR50_SQA:+SQA/}${CR50_DEV:+DBG/}${BOARD}_"
+ ver="${CR50_SQA:+SQA/}${CR50_DEV:+DBG/}${CRYPTO_TEST:+CT/}${BOARD}_"
tool_ver=""
global_dirty= # set if any of the component repos is 'dirty'.
dir_list=( . ) # list of component directories, always includes the EC tree