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