tpm: Only build the required objects for TPM v03 and v05 firmware

The driver of Infineon SLB9635 supports both v03 and v05 firmware.
But the current Makefile built them all. The CL makes it only build
v05 code when CONFIG_TPM_SLB9635_I2C set and only build v03 code
when CONFIG_TPM_SLB9635_I2C_V03 set. It reduces our code size and
dependency.

BUG=chrome-os-partner:8868
TEST=Built successfully on both v03 and v05

Change-Id: I535aa6b347ac6f052cfcf87d6a2357d0857d8635
Signed-off-by: Tom Wai-Hong Tam <waihong@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/22204
Reviewed-by: Rong Chang <rongchang@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
1 file changed