mirror of
https://git.code.sf.net/p/linux-ima/ima-evm-utils
synced 2025-04-30 15:43:36 +02:00

This patch makes it possible to use the Intel TSS2 for getting PCR values from the SHA1/SHA256 banks on a TPM2. It is somewhat naive as it doesn't use the multi-PCR selection that TSS2 is capable of, that is for a future patch. Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org> [zohar@linux.ibm.com: added missing "stdint.h" in pcr_tsspcrread.c] Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
39 lines
934 B
Makefile
39 lines
934 B
Makefile
lib_LTLIBRARIES = libimaevm.la
|
|
|
|
libimaevm_la_SOURCES = libimaevm.c
|
|
libimaevm_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBCRYPTO_CFLAGS)
|
|
# current[:revision[:age]]
|
|
# result: [current-age].age.revision
|
|
libimaevm_la_LDFLAGS = -version-info 1:0:0
|
|
libimaevm_la_LIBADD = $(LIBCRYPTO_LIBS)
|
|
|
|
include_HEADERS = imaevm.h
|
|
|
|
nodist_libimaevm_la_SOURCES = hash_info.h
|
|
BUILT_SOURCES = hash_info.h
|
|
EXTRA_DIST = hash_info.gen
|
|
hash_info.h: Makefile
|
|
$(srcdir)/hash_info.gen $(KERNEL_HEADERS) >$@
|
|
|
|
bin_PROGRAMS = evmctl
|
|
|
|
evmctl_SOURCES = evmctl.c utils.c
|
|
evmctl_CPPFLAGS = $(AM_CPPFLAGS) $(LIBCRYPTO_CFLAGS)
|
|
evmctl_LDFLAGS = $(LDFLAGS_READLINE)
|
|
evmctl_LDADD = $(LIBCRYPTO_LIBS) -lkeyutils libimaevm.la
|
|
|
|
if USE_PCRTSS
|
|
evmctl_SOURCES += pcr_tss.c
|
|
else
|
|
if USE_PCRTSSPCRREAD
|
|
evmctl_SOURCES += pcr_tsspcrread.c
|
|
else
|
|
evmctl_SOURCES += pcr_none.c
|
|
endif
|
|
endif
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir) -include config.h
|
|
|
|
CLEANFILES = hash_info.h
|
|
DISTCLEANFILES = @DISTCLEANFILES@
|