1 ###############################################################################
3 # Siano Mobile Silicon, Inc.
4 # MDTV receiver kernel modules.
5 # Copyright (C) 2006-2008, Uri Shkolnik
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.
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.
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/>.
20 ###############################################################################
23 # Local variables initialization
25 SMS_DVB5_S2API_SUBSYS := 0
26 SMS_HOSTLIB_SUBSYS := 0
30 SMS_SPI_PXA310_DRV := 0
33 # Default object, include in every build variant
34 SMSOBJ := smscoreapi.o sms-cards.o smsendian.o
36 EXTRA_CFLAGS += $(extra-cflags-y) $(extra-cflags-m)
39 # Kernel subsystems support
40 ifdef CONFIG_SMS_DVB3_SUBSYS
41 ifneq ($(CONFIG_SMS_DVB3_SUBSYS),n)
43 EXTRA_CFLAGS += -DSMS_DVB3_SUBSYS -Idrivers/media/dvb/dvb-core
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
55 ifdef CONFIG_SMS_HOSTLIB_SUBSYS
56 ifneq ($(CONFIG_SMS_HOSTLIB_SUBSYS),n)
57 SMS_HOSTLIB_SUBSYS := 1
58 EXTRA_CFLAGS += -DSMS_HOSTLIB_SUBSYS
63 ifdef CONFIG_SMS_NET_SUBSYS
64 ifneq ($(CONFIG_SMS_NET_SUBSYS),n)
66 EXTRA_CFLAGS += -DSMS_NET_SUBSYS
71 # Hardware (host) interfaces support
72 ifdef CONFIG_SMS_USB_DRV
73 ifneq ($(CONFIG_SMS_USB_DRV),n)
75 EXTRA_CFLAGS += -DSMS_USB_DRV
80 ifdef CONFIG_SMS_SDIO_DRV
81 ifneq ($(CONFIG_SMS_SDIO_DRV),n)
83 EXTRA_CFLAGS += -DSMS_SDIO_DRV
88 ifdef CONFIG_SMS_SPI_ROCKCHIP
89 ifneq ($(CONFIG_SMS_SPI_ROCKCHIP),n)
91 EXTRA_CFLAGS += -DSMS_SPI_ROCKCHIP
92 SMSOBJ += smsspilog.o smsspicommon.o smsspiphy_rk.o
96 # All selected in one module named smsmdtv
97 smsmdtv-objs := $(SMSOBJ)
99 obj-$(CONFIG_SMS_SIANO_MDTV) := smsmdtv.o