xref: /openbmc/u-boot/drivers/tpm/Makefile (revision f6267998)
15e124724SVadim Bendebury# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
25e124724SVadim Bendebury#
35e124724SVadim Bendebury# See file CREDITS for list of people who contributed to this
45e124724SVadim Bendebury# project.
55e124724SVadim Bendebury#
65e124724SVadim Bendebury# This program is free software; you can redistribute it and/or
75e124724SVadim Bendebury# modify it under the terms of the GNU General Public License as
85e124724SVadim Bendebury# published by the Free Software Foundation; either version 2 of
95e124724SVadim Bendebury# the License, or (at your option) any later version.
105e124724SVadim Bendebury#
115e124724SVadim Bendebury# This program is distributed in the hope that it will be useful,
125e124724SVadim Bendebury# but WITHOUT ANY WARRANTY; without even the implied warranty of
135e124724SVadim Bendebury# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
145e124724SVadim Bendebury# GNU General Public License for more details.
155e124724SVadim Bendebury#
165e124724SVadim Bendebury# You should have received a copy of the GNU General Public License
175e124724SVadim Bendebury# along with this program; if not, write to the Free Software
185e124724SVadim Bendebury# Foundation, Inc., 59 Temple Place, Suite 330, Boston,
195e124724SVadim Bendebury# MA 02111-1307 USA
205e124724SVadim Bendebury#
215e124724SVadim Bendebury
225e124724SVadim Bendeburyinclude $(TOPDIR)/config.mk
235e124724SVadim Bendebury
245e124724SVadim BendeburyLIB := $(obj)libtpm.o
255e124724SVadim Bendebury
26*f6267998SRong Chang$(shell mkdir -p $(obj)slb9635_i2c)
27*f6267998SRong Chang
285e124724SVadim BendeburyCOBJS-$(CONFIG_GENERIC_LPC_TPM) = generic_lpc_tpm.o
29*f6267998SRong ChangCOBJS-$(CONFIG_INFINEON_TPM_I2C) += tis_i2c.o slb9635_i2c/tpm.o
30*f6267998SRong ChangCOBJS-$(CONFIG_INFINEON_TPM_I2C) += slb9635_i2c/tpm_tis_i2c.o
315e124724SVadim Bendebury
325e124724SVadim BendeburyCOBJS	:= $(COBJS-y)
335e124724SVadim BendeburySRCS	:= $(COBJS:.o=.c)
345e124724SVadim BendeburyOBJS	:= $(addprefix $(obj),$(COBJS))
355e124724SVadim Bendebury
365e124724SVadim Bendeburyall:	$(LIB)
375e124724SVadim Bendebury
385e124724SVadim Bendebury$(LIB): $(obj).depend $(OBJS)
395e124724SVadim Bendebury	$(call cmd_link_o_target, $(OBJS))
405e124724SVadim Bendebury
415e124724SVadim Bendebury#########################################################################
425e124724SVadim Bendebury
435e124724SVadim Bendeburyinclude $(SRCTREE)/rules.mk
445e124724SVadim Bendebury
455e124724SVadim Bendeburysinclude $(obj).depend
465e124724SVadim Bendebury
475e124724SVadim Bendebury#########################################################################
48