xref: /openbmc/u-boot/drivers/tpm/Makefile (revision 3765b3e7)
1# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2#
3# SPDX-License-Identifier:	GPL-2.0+
4#
5
6include $(TOPDIR)/config.mk
7
8LIB := $(obj)libtpm.o
9
10$(shell mkdir -p $(obj)slb9635_i2c)
11
12# TODO: Merge tpm_tis_lpc.c with tpm.c
13COBJS-$(CONFIG_TPM_ATMEL_TWI) += tpm_atmel_twi.o
14COBJS-$(CONFIG_TPM_TIS_I2C) += tpm.o
15COBJS-$(CONFIG_TPM_TIS_I2C) += tpm_tis_i2c.o
16COBJS-$(CONFIG_TPM_TIS_LPC) += tpm_tis_lpc.o
17
18COBJS	:= $(COBJS-y)
19SRCS	:= $(COBJS:.o=.c)
20OBJS	:= $(addprefix $(obj),$(COBJS))
21
22all:	$(LIB)
23
24$(LIB): $(obj).depend $(OBJS)
25	$(call cmd_link_o_target, $(OBJS))
26
27#########################################################################
28
29include $(SRCTREE)/rules.mk
30
31sinclude $(obj).depend
32
33#########################################################################
34