summaryrefslogtreecommitdiff
path: root/Makefile
blob: 8ffee38f0e951f5ba1b8c81278c6baf158d06195 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# SPDX-License-Identifier: GPL-2.0
#
# Makefile for nfc devices
#

obj-$(CONFIG_NFC_ST21NFC)	+= st21nfc.o
obj-$(CONFIG_ESE_ST54)		+= ese/

KERNEL_SRC ?= /lib/modules/$(shell uname -r)/build
M ?= $(shell pwd)

KBUILD_OPTIONS += CONFIG_NFC_ST21NFC=m CONFIG_NFC_ST21NFC_NO_CRYSTAL=y \
		  CONFIG_ESE_ST54=m CONFIG_ESE_ST33=m

ccflags-y := -I$(KERNEL_SRC)/../google-modules/nfc

modules modules_install clean:
	$(MAKE) -C $(KERNEL_SRC) M=$(M) $(KBUILD_OPTIONS) W=1 $(@)