commit | 716a46a8f2e9516bd9ac64674a5811374f446792 | [log] [tgz] |
---|---|---|
author | nagendra modadugu <ngm@google.com> | Wed May 25 13:54:36 2016 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Fri May 27 13:43:13 2016 -0700 |
tree | e641aef9c79c04410afc91aefb5f6d1b5fd84d94 | |
parent | 5c18d72e028eb0aa1ad9487589b495889bb3b905 [diff] |
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. BRANCH=none BUG=chrome-os-partner:43025,chrome-os-partner:47524,chrome-os-partner:53782 TEST=compilation succeeds Change-Id: If291dabf7cbb825ea625c8e37f81d6c95737430b Signed-off-by: nagendra modadugu <ngm@google.com> Reviewed-on: https://chromium-review.googlesource.com/347382 Commit-Ready: Nagendra Modadugu <ngm@google.com> Tested-by: Nagendra Modadugu <ngm@google.com> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>