summaryrefstree
path: root/kernel/drivers/nfc/Makefile
blob: bd73690123c2e148709f4680e0f74af86b537ce7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for nfc devices
#
ifneq ($(SEC_BUILD_CONF_USE_ESE_TZ), false)
	ccflags-y += -DENABLE_ESE_SPI_SECURED
endif

ifeq ($(CONFIG_SAMSUNG_NFC),m)
obj-$(CONFIG_SAMSUNG_NFC)		+= nfc.o
nfc-$(CONFIG_NFC_PN547_ESE_SUPPORT)	+= p61.o
nfc-$(CONFIG_NFC_FEATURE_SN100U)	+= cold_reset.o
nfc-$(CONFIG_SEC_NFC_LOGGER)		+= nfc_logger/nfc_logger.o
nfc-$(CONFIG_NFC_PN547)			+= pn547.o
else
obj-$(CONFIG_NFC_PN547)			+= pn547.o
obj-$(CONFIG_NFC_PN547_ESE_SUPPORT)	+= p61.o
obj-$(CONFIG_NFC_FEATURE_SN100U)	+= cold_reset.o
obj-$(CONFIG_SEC_NFC_LOGGER)	+= nfc_logger/nfc_logger.o
endif

ifeq ($(CONFIG_SEC_STAR), m)
obj-$(CONFIG_SEC_STAR) = sec-star/sec_star.o

sec_star-y += \
                        sec-star/sec_star.o \
                        sec-star/protocol/ese_data.o \
                        sec-star/protocol/ese_iso7816_t1.o \
                        sec-star/hal/ese_i2c.o \
                        sec-star/hal/ese_spi.o \
                        sec-star/hal/ese_hal.o

sec_star-$(CONFIG_STAR_K250A) += sec-star/sec_k250a.o
else
obj-$(CONFIG_SEC_STAR) += sec-star/sec_star.o \
                        sec-star/protocol/ese_data.o \
                        sec-star/protocol/ese_memory.o \
                        sec-star/protocol/ese_iso7816_t1.o \
                        sec-star/hal/ese_i2c.o \
                        sec-star/hal/ese_spi.o \
                        sec-star/hal/ese_hal.o

obj-$(CONFIG_STAR_K250A) += sec-star/sec_k250a.o
endif