From 41997f691cfd87332af4ad155f8cb9268d86cae9 Mon Sep 17 00:00:00 2001 From: Mary Ruthven Date: Tue, 27 Oct 2020 07:46:53 +1100 Subject: tpm_test: fix python3 include BUG=b:171727921 TEST=make Change-Id: I401c35eec2c4c7fe783a348cbc42f0687868acec Signed-off-by: Mary Ruthven Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2499922 Reviewed-by: Vadim Bendebury --- test/tpm_test/Makefile | 6 +++--- 1 file 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 -- cgit v1.2.1