]> git.ipfire.org Git - thirdparty/u-boot.git/blame - drivers/tpm/Makefile
drivers: usb: convert makefiles to Kbuild style
[thirdparty/u-boot.git] / drivers / tpm / Makefile
CommitLineData
5e124724
VB
1# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2#
1a459660 3# SPDX-License-Identifier: GPL-2.0+
5e124724
VB
4#
5
6include $(TOPDIR)/config.mk
7
8LIB := $(obj)libtpm.o
9
f6267998
RC
10$(shell mkdir -p $(obj)slb9635_i2c)
11
1b393db5 12# TODO: Merge tpm_tis_lpc.c with tpm.c
c01939c7 13COBJS-$(CONFIG_TPM_ATMEL_TWI) += tpm_atmel_twi.o
1b393db5
TWHT
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
5e124724
VB
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#########################################################################