diff options
Diffstat (limited to 'test/tpm_test/Makefile')
-rw-r--r-- | test/tpm_test/Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/tpm_test/Makefile b/test/tpm_test/Makefile index 23f66317f9..29d3e229bc 100644 --- a/test/tpm_test/Makefile +++ b/test/tpm_test/Makefile @@ -22,14 +22,21 @@ SWIG = /usr/bin/swig PYTHON_INCLUDE = $(shell python3 -c 'import sysconfig; \ print(sysconfig.get_paths().get("include"))') +ifeq ($(CR50),) vpath %c $(src) ../../chip/g/dcrypto $(src)/testlib +CFLAGS += -I../../chip/g/dcrypto +else -CFLAGS = -fPIC +# Use BOARD=cr50 specific implementation +vpath %c $(src) ../../board/cr50/dcrypto $(src)/testlib +CFLAGS += -I../../board/cr50/dcrypto +endif + +CFLAGS += -fPIC CFLAGS += -I ${PYTHON_INCLUDE} CFLAGS += -I../../../../third_party/cryptoc/include CFLAGS += -I../../board/cr50 CFLAGS += -I../../chip/g -CFLAGS += -I../../chip/g/dcrypto CFLAGS += -I../../fuzz CFLAGS += -I../../include CFLAGS += -I.. |