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.
Signed-off-by: nagendra modadugu <firstname.lastname@example.org>
Commit-Ready: Nagendra Modadugu <email@example.com>
Tested-by: Nagendra Modadugu <firstname.lastname@example.org>
Reviewed-by: Vadim Bendebury <email@example.com>
1 file changed