Jakub Czapiga has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/62516 )
Change subject: libpayload/bin/lpgcc: Make lpgcc provide TPM configuration for vboot ......................................................................
libpayload/bin/lpgcc: Make lpgcc provide TPM configuration for vboot
TPM1_MODE and TPM2_MODE defines have to be added to vboot and payload cflags to make them build correctly without requiring payloads to provide defines.
Signed-off-by: Jakub Czapiga jacz@semihalf.com Change-Id: I567a9f04d7089699840dc7e0a063cf3030fb934b --- M payloads/libpayload/bin/lpgcc 1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/16/62516/1
diff --git a/payloads/libpayload/bin/lpgcc b/payloads/libpayload/bin/lpgcc index 8bc46a6..77ceda3 100755 --- a/payloads/libpayload/bin/lpgcc +++ b/payloads/libpayload/bin/lpgcc @@ -182,6 +182,14 @@ _CFLAGS="$_CFLAGS -include $BASE/../include/kconfig.h -include $BASE/../include/compiler.h" _CFLAGS="$_CFLAGS -I`$DEFAULT_CC $_ARCHEXTRA -print-search-dirs | head -n 1 | cut -d' ' -f2`include"
+if [ "$CONFIG_LP_VBOOT_LIB" = y ]; then + if [ "$CONFIG_LP_VBOOT_TPM2_MODE" = y ]; then + _CFLAGS="$_CFLAGS -DTPM2_MODE" + else + _CFLAGS="$_CFLAGS -DTPM1_MODE" + fi +fi + _LDFLAGS="-L$_LIBDIR $_LDSCRIPT -static -Wl,--gc-sections"
if [ $DOLINK -eq 0 ]; then