summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Yang <hcyang@google.com>2023-03-14 12:37:26 +0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-03 19:40:54 +0000
commitd3bf1cc6d40a1e4c991ce09454b7ab85d4480e31 (patch)
tree27050cb83186a9131d0308ace46f1713d3e23b78
parent2e1d20d35db63a5e2e8a8630eab771335a3c14a8 (diff)
downloadchrome-ec-d3bf1cc6d40a1e4c991ce09454b7ab85d4480e31.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> (cherry picked from commit f9a09730386ddb3a770569b01efebe20b17c0619) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4482192 Reviewed-by: Jett Rink <jettrink@chromium.org> Auto-Submit: Mary Ruthven <mruthven@chromium.org> Tested-by: Mary Ruthven <mruthven@chromium.org> Commit-Queue: Mary Ruthven <mruthven@chromium.org> (cherry picked from commit 782ac0af178ae171eee3ae74a5c1364f6025c705) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4501316 Reviewed-by: Andrey Pronin <apronin@chromium.org>
-rw-r--r--builtin/stdint.h4
-rw-r--r--common/build.mk2
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