summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornagendra modadugu <ngm@google.com>2016-02-02 14:05:35 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-02-02 23:48:11 -0800
commit83b9a7ea705e6f1a4c91370f46f6a69387540202 (patch)
tree0ffef51fceac8280e8e1d2b70fbe2f12f6149c50
parent990ca7a1bc0428ef2c705a1330ebffb87382d596 (diff)
downloadchrome-ec-83b9a7ea705e6f1a4c91370f46f6a69387540202.tar.gz
CR50: define EMBEDDED_MODE=1 for code under cr50.
EMBEDDED_MODE was missing from code compiled under cr50/tpm2, which resulted in code under third_party/tpm2 and cr50/tpm2 inferring differing declarations for a given type. BRANCH=none TEST=tests under test/tpm2 pass BUG=chrome-os-partner:43025,chrome-os-partner:47524 Change-Id: I56935f5ae8fc45e6b7f71eb239b3e0c325086795 Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/325471 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Vadim Bendebury <vbendeb@google.com>
-rw-r--r--board/cr50/build.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/cr50/build.mk b/board/cr50/build.mk
index 67a2e94eff..cf5735acb0 100644
--- a/board/cr50/build.mk
+++ b/board/cr50/build.mk
@@ -49,6 +49,8 @@ CFLAGS += -I$(INCLUDE_ROOT)
# Make sure the context of the software sha256 implementation fits. If it ever
# increases, a compile time assert will fire in tpm2/hash.c.
CFLAGS += -DUSER_MIN_HASH_STATE_SIZE=210
+# Configure TPM2 headers accordingly.
+CFLAGS += -DEMBEDDED_MODE=1
# Add dependencies on that library
$(out)/RO/ec.RO.elf: $(out)/tpm2/libtpm2.a