blob: 4457a78f8eab9d4a452cb0d56856e4be89ed5afc [file] [log] [blame]
Vadim Bendebury5e124722011-10-17 08:36:14 +00001# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2#
Wolfgang Denk1a459662013-07-08 09:37:19 +02003# SPDX-License-Identifier: GPL-2.0+
Vadim Bendebury5e124722011-10-17 08:36:14 +00004#
5
6include $(TOPDIR)/config.mk
7
8LIB := $(obj)libtpm.o
9
Rong Changf6267992013-04-12 10:44:57 +000010$(shell mkdir -p $(obj)slb9635_i2c)
11
Tom Wai-Hong Tam1b393db2013-04-12 11:04:37 +000012# TODO: Merge tpm_tis_lpc.c with tpm.c
Dirk Eibachc01939c2013-06-26 15:55:15 +020013COBJS-$(CONFIG_TPM_ATMEL_TWI) += tpm_atmel_twi.o
Tom Wai-Hong Tam1b393db2013-04-12 11:04:37 +000014COBJS-$(CONFIG_TPM_TIS_I2C) += tpm.o
15COBJS-$(CONFIG_TPM_TIS_I2C) += tpm_tis_i2c.o
16COBJS-$(CONFIG_TPM_TIS_LPC) += tpm_tis_lpc.o
Vadim Bendebury5e124722011-10-17 08:36:14 +000017
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#########################################################################