diff options
author | Howard Yang <hcyang@google.com> | 2023-03-14 12:37:26 +0800 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-16 12:25:54 +0000 |
commit | f9a09730386ddb3a770569b01efebe20b17c0619 (patch) | |
tree | e4fb709d5c9a2730ddf7343cf9594a95d2f44499 | |
parent | ed10ce4730d37a4ae7eab60ad70257720399f289 (diff) | |
download | chrome-ec-f9a09730386ddb3a770569b01efebe20b17c0619.tar.gz |
cr50: Increase PinWeaver version to v2
Add the definition for UINT64_MAX which is used in v2 PinWeaver code,
and toggle the BIOMETRICS_DEV flag to increase PinWeaver version to 2.
BUG=b:262040869
TEST=make buildall -j
TEST=tast run $DUT hwsec.PINWeaver*
Cq-Depend: chromium:4337476
Change-Id: I54642a098bbe697e461d636a416ed5512c8ae528
Signed-off-by: Howard Yang <hcyang@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4337180
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
-rw-r--r-- | builtin/stdint.h | 4 | ||||
-rw-r--r-- | common/build.mk | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/builtin/stdint.h b/builtin/stdint.h index cc1cec9ec8..3568bf0321 100644 --- a/builtin/stdint.h +++ b/builtin/stdint.h @@ -44,6 +44,10 @@ typedef uint8_t uint_least8_t; #define INT32_MAX (2147483647U) #endif +#ifndef UINT64_MAX +#define UINT64_MAX (18446744073709551615ULL) +#endif + #ifndef UINT64_C #define UINT64_C(c) c ## ULL #endif diff --git a/common/build.mk b/common/build.mk index 8f445c4815..5d0efa7083 100644 --- a/common/build.mk +++ b/common/build.mk @@ -223,7 +223,7 @@ endif ifeq ($(CONFIG_PLATFORM_PINWEAVER),y) PINWEAVERLIB := $(realpath ../pinweaver) CPPFLAGS += -I$(PINWEAVERLIB) -I$(PINWEAVERLIB)/eal/cr50 -CPPFLAGS += -D BIOMETRICS_DEV=false +CPPFLAGS += -D BIOMETRICS_DEV=true common-y += pinweaver.o common-y += pinweaver_eal.o |