Add -DTHIRD_PARTY to CFLAGS so as to configure system headers.

EC includes such as common.h are required for CONFIG_* defines,
which configure system headers, e.g. assert.h includes "common.h".
This means that third_party code would need broader include paths
beyond -Ibuiltin.  This is not desirable.

This change adds a -DTHIRD_PARTY to the tpm2 library and works
in tandem with a corresponding change to builtin/ that
guards against inclusion of platform headers.

The build environment will have to pass appropriate
-DCONFIG_* via CFLAGS to third_party libraries in order
to get the desired platform behavior.

TEST=compilation succeeds

Change-Id: I63300b0b200bb55a583a85a5b1f8aabc9dd5e56c
Signed-off-by: nagendra modadugu <>
Commit-Ready: Nagendra Modadugu <>
Tested-by: Nagendra Modadugu <>
Reviewed-by: Vadim Bendebury <>
1 file changed