input: sensors: hall: do not enable hall default
[firefly-linux-kernel-4.4.55.git] / drivers / cmmb / siano / Makefile
1 ###############################################################################
2 #
3 # Siano Mobile Silicon, Inc.
4 # MDTV receiver kernel modules.
5 # Copyright (C) 2006-2008, Uri Shkolnik
6 #
7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation, either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19 #
20 ###############################################################################
21
22
23 # Local variables initialization
24 SMS_DVB3_SUBSYS := 0
25 SMS_DVB5_S2API_SUBSYS := 0
26 SMS_HOSTLIB_SUBSYS := 0
27
28 SMS_USB_DRV := 0
29 SMS_SDIO_DRV := 0
30 SMS_SPI_PXA310_DRV := 0
31
32
33 # Default object, include in every build variant
34 SMSOBJ := smscoreapi.o sms-cards.o smsendian.o
35
36 EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
37
38
39 # Kernel subsystems support
40 ifdef CONFIG_SMS_DVB3_SUBSYS
41 ifneq ($(CONFIG_SMS_DVB3_SUBSYS),n)
42 SMS_DVB3_SUBSYS := 1
43 EXTRA_CFLAGS += -DSMS_DVB3_SUBSYS -Idrivers/media/dvb/dvb-core
44 SMSOBJ += smsdvb.o
45 endif
46 endif
47
48 ifdef CONFIG_SMS_DVB5_S2API_SUBSYS
49 ifneq ($(CONFIG_SMS_DVB5_S2API_SUBSYS),n)
50 SMS_DVB5_S2API_SUBSYS := 1
51 EXTRA_CFLAGS += -DSMS_DVB5_S2API_SUBSYS
52 endif
53 endif
54
55 ifdef CONFIG_SMS_HOSTLIB_SUBSYS
56 ifneq ($(CONFIG_SMS_HOSTLIB_SUBSYS),n)
57 SMS_HOSTLIB_SUBSYS := 1
58 EXTRA_CFLAGS += -DSMS_HOSTLIB_SUBSYS
59 SMSOBJ += smschar.o
60 endif
61 endif
62
63 ifdef CONFIG_SMS_NET_SUBSYS
64 ifneq ($(CONFIG_SMS_NET_SUBSYS),n)
65 SMS_NET_SUBSYS := 1
66 EXTRA_CFLAGS += -DSMS_NET_SUBSYS
67 SMSOBJ += smsnet.o
68 endif
69 endif
70
71 # Hardware (host) interfaces support
72 ifdef CONFIG_SMS_USB_DRV
73 ifneq ($(CONFIG_SMS_USB_DRV),n)
74 SMS_USB_DRV := 1
75 EXTRA_CFLAGS += -DSMS_USB_DRV
76 SMSOBJ += smsusb.o
77 endif
78 endif
79
80 ifdef CONFIG_SMS_SDIO_DRV
81 ifneq ($(CONFIG_SMS_SDIO_DRV),n)
82 SMS_SDIO_DRV := 1
83 EXTRA_CFLAGS += -DSMS_SDIO_DRV
84 SMSOBJ += smssdio.o
85 endif
86 endif
87
88 ifdef CONFIG_SMS_SPI_ROCKCHIP
89 ifneq ($(CONFIG_SMS_SPI_ROCKCHIP),n)
90 SMS_SPI_ROCKCHIP := 1
91 EXTRA_CFLAGS += -DSMS_SPI_ROCKCHIP
92 SMSOBJ += smsspilog.o smsspicommon.o smsspiphy_rk.o
93 endif
94 endif
95
96 # All selected in one module named smsmdtv
97 smsmdtv-objs := $(SMSOBJ)
98
99 obj-$(CONFIG_SMS_SIANO_MDTV) := smsmdtv.o
100
101
102