summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2020-10-27 07:46:53 +1100
committerCommit Bot <commit-bot@chromium.org>2020-10-27 00:47:16 +0000
commit41997f691cfd87332af4ad155f8cb9268d86cae9 (patch)
tree9ec8f4f1da7063c70562fdb9f7055b5a52cadd40
parent79d75dccecc66b067b1c0d6ef0ff7d69d01c2b5d (diff)
downloadchrome-ec-stabilize-rust-13562.B-cr50_stab.tar.gz
tpm_test: fix python3 includestabilize-rust-13562.B-cr50_stab
BUG=b:171727921 TEST=make Change-Id: I401c35eec2c4c7fe783a348cbc42f0687868acec Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2499922 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--test/tpm_test/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tpm_test/Makefile b/test/tpm_test/Makefile
index d7a2174587..23f66317f9 100644
--- a/test/tpm_test/Makefile
+++ b/test/tpm_test/Makefile
@@ -19,13 +19,13 @@ endif
obj = ../../build/tpm_test
src = .
SWIG = /usr/bin/swig
-PYTHON_VERSION = $(shell python3 -c 'import sys; print("%d.%d" % \
-( sys.version_info.major, sys.version_info.minor))')
+PYTHON_INCLUDE = $(shell python3 -c 'import sysconfig; \
+print(sysconfig.get_paths().get("include"))')
vpath %c $(src) ../../chip/g/dcrypto $(src)/testlib
CFLAGS = -fPIC
-CFLAGS += -I /usr/include/python$(PYTHON_VERSION)
+CFLAGS += -I ${PYTHON_INCLUDE}
CFLAGS += -I../../../../third_party/cryptoc/include
CFLAGS += -I../../board/cr50
CFLAGS += -I../../chip/g