[09061_01] Siano: Update KConfig and Makefile
PATCH 1/1 [09061_01] Siano: Update KConfig and Makefile
# HG changeset patch
# User Udi Atar <[email protected]>
# Date 1245248482 -10800
# Node ID 46081b3e60046b900c9c8110513224911df8e106 # Parent b385a43af222b6c8d2d93937644eb936f63d81e3 Update Siano KConfig file
From: Udi Atar <[email protected]>
Priority: normal
linux/drivers/media/dvb/siano/Kconfig +23 -16
@@ -2,25 +2,32 @@ # Siano Mobile Silicon Digital TV device configuration # -config DVB_SIANO_SMS1XXX - tristate "Siano SMS1XXX USB dongle support" - depends on DVB_CORE && USB +config SMS_SIANO_MDTV + tristate "Siano SMS1xxx based MDTV receiver" + default m ---help--- - Choose Y here if you have a USB dongle with a SMS1XXX chipset. + Choose Y or M here if you have MDTV receiver with a Siano chipset. - To compile this driver as a module, choose M here: the - module will be called sms1xxx. + To compile this driver as a module, choose M here + (The modules will be called smsmdtv). -config DVB_SIANO_SMS1XXX_SMS_IDS - bool "Enable support for Siano Mobile Silicon default USB IDs" - depends on DVB_SIANO_SMS1XXX - default y + Note: All dependents, if selected, will be part of this module. + + Further documentation on this driver can be found on the WWW + at http://www.siano-ms.com/ + +if SMS_SIANO_MDTV +menu "Siano module components" + +# Hardware interfaces support + +config SMS_USB_DRV + tristate "USB interface support" + depends on USB + default m if USB ---help--- - Choose Y here if you have a USB dongle with a SMS1XXX chipset - that uses Siano Mobile Silicon's default usb vid:pid. + Choose if you would like to have Siano's support for USB interface - Choose N here if you would prefer to use Siano's external driver. - Further documentation on this driver can be found on the WWW at - <http://www.siano-ms.com/>. - +endmenu +endif # SMS_SIANO_MDTV
linux/drivers/media/dvb/siano/Makefile +4 -4
@@ -1,8 +1,8 @@ -sms1xxx-objs := smscoreapi.o sms-cards.o smsendian.o smsir.o -obj-$(CONFIG_DVB_SIANO_SMS1XXX) += sms1xxx.o -obj-$(CONFIG_DVB_SIANO_SMS1XXX) += smsusb.o -obj-$(CONFIG_DVB_SIANO_SMS1XXX) += smsdvb.o +smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o smsir.o + +obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o smsdvb.o +obj-$(CONFIG_SMS_USB_DRV) += smsusb.o EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
Em Wed, 17 Jun 2009 17:36:21 +0300
Udi Atar <[email protected]> escreveu:
Quoted 17 lines
# HG changeset patch
# User Udi Atar <[email protected]>
# Date 1245248482 -10800
# Node ID46081b3e60046b900c9c8110513224911df8e106# Parentb385a43af222b6c8d2d93937644eb936f63d81e3Update Siano KConfig fileFrom: Udi Atar <[email protected]>
Priority: normal
Signed-off-by Udi Atar <[email protected]>diff -r
b385a43af222-r46081b3e6004linux/drivers/media/dvb/siano/Kconfig
linux/drivers/media/dvb/siano/Kconfig line 5
Quoted 7 lines
linux/drivers/media/dvb/siano/Kconfig +1
-3@@ -2,25 +2,32 @@ # Siano Mobile Silicon Digital TV device configuration # -config DVB_SIANO_SMS1XXX - tristate "Siano SMS1XXX USB dongle support" - depends on DVB_CORE && USB +config SMS_SIANO_MDTV
All DVB devices should start with DVB_.
linux/drivers/media/dvb/siano/Kconfig line 7
Quoted 2 lines
linux/drivers/media/dvb/siano/Kconfig +2
-0+ tristate "Siano SMS1xxx based MDTV receiver" + default m
Don't use "default". You shouldn't assume that most of the kernel users are interested on this module.
Quoted 4 lines
linux/drivers/media/dvb/siano/Kconfig +1
-1---help--- - Choose Y here if you have a USB dongle with a SMS1XXX chipset. + Choose Y or M here if you have MDTV receiver with a Siano chipset.
linux/drivers/media/dvb/siano/Kconfig line 14
Quoted 10 lines
linux/drivers/media/dvb/siano/Kconfig +3
-6- To compile this driver as a module, choose M here: the - module will be called sms1xxx. + To compile this driver as a module, choose M here + (The modules will be called smsmdtv). -config DVB_SIANO_SMS1XXX_SMS_IDS - bool "Enable support for Siano Mobile Silicon default USB IDs" - depends on DVB_SIANO_SMS1XXX - default y + Note: All dependents, if selected, will be part of this module.
As already discussed, the driver should be kept modular. So, the note above doesn't apply.
Quoted 15 lines
linux/drivers/media/dvb/siano/Kconfig +13
-1+ + Further documentation on this driver can be found on the WWW + at http://www.siano-ms.com/ + +if SMS_SIANO_MDTV +menu "Siano module components" + +# Hardware interfaces support + +config SMS_USB_DRV + tristate "USB interface support" + depends on USB + default m if USB ---help--- - Choose Y here if you have a USB dongle with a SMS1XXX chipset
linux/drivers/media/dvb/siano/Kconfig line 33
Quoted 10 lines
linux/drivers/media/dvb/siano/Kconfig +3
-5- that uses Siano Mobile Silicon's default usb vid:pid. + Choose if you would like to have Siano's support for USB interface - Choose N here if you would prefer to use Siano's external driver. - Further documentation on this driver can be found on the WWW at - <http://www.siano-ms.com/>. - +endmenu +endif # SMS_SIANO_MDTV
What kind of support the driver will provide without USB ?
I suspect that you are wanting to have several bus options like for example USB and MMC. Since, without a bus, the core module makes no sense to be compiled, you should, instead, use a different Kbuild struct. Something something like:
comment "Siano devices"
config DVB_SIANO_MDTV
tristate
default n
config DVB_SIANO_USB
tristate "USB bus support for Siano devices" depends on DVB_CORE && USB select DVB_SIANO_MDTV
---help---
Choose if you would like to have Siano's support for USB interface
config DVB_SIANO_MMC
tristate "MMC bus support for Siano devices" depends on DVB_CORE && USB select DVB_SIANO_MDTV
---help---
Choose if you would like to have Siano's support for MMC interface
<other bus options here>
With the above syntax, the core module will be built only if at least one of the supported bus is selected.
Cheers,
Mauro