History log of /external/tpm2/PropertyCap.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
71e3b99f0af42b8fbc6024232dcf968e5cdc665a 14-Aug-2015 Jocelyn Bohr <bohr@chromium.org> Allow compilation with -O2 flag, add -fPIC flag.

CL:292945 introduces CFLAGS environment variable, which contains -O2 in
emerge environment. This patch fixes compiler errors "warning:
dereferencing type-punned pointer will break strict-aliasing rules"
introduced by using -O2 flag.

This flag also introduces -fPIC when compiling not for embedded. This is
needed to link against libtpm2.

TEST=$ sudo emerge tpm2
builds libtpm2.a with all compiler flags
$ sudo emerge tpm2-simulator
builds tpm2-simulator
The simulator works as before with trunks (can run --startup,
--clear, and partially --own --owner_password="")
$ make EMBEDDED_MODE=1 ROOTDIR=1
builds libtpm2.a for embedded
BUG=none

Change-Id: Iacc821fb840b653af1466edfaa8e5615fd73b36e
Signed-off-by: Jocelyn Bohr <bohr@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/293815
Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
/external/tpm2/PropertyCap.c
5679752bf24c21135884e987c4077e2f71848971 20-May-2015 Vadim Bendebury <vbendeb@chromium.org> Initial commit to seed TPM2.0 source code directory

LICENSE file text copied from TCG library specification. README
describes the procedure used to extract source code from parts 3 and 4
of the specification.

The python scripts and part{34}.txt files will be removed in the
following commits.

Change-Id: Ie281e6e988481831f33483053455e8aff8f3f75f
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
/external/tpm2/PropertyCap.c