Skip to contentSkip to conversation

[0905_10] Siano - perform clean multi-modules build

PATCH In review Uri Shkolnik 2 participants 2 messages May 14, 2009 – May 18, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [0905_10] Siano - perform clean multi-modules build

# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1242323350 -10800
# Node ID f93a86c6f9785cb60e015e811ddfca6850135887 # Parent 0018ed9bbca31e76a17ead56e2e953c325c7cf3f [0905_10] Siano - perform clean multi-modules build

From: Uri Shkolnik <[email protected]>

Clean up the multi dynamic module build, so no warning/errors will occur either with clean kernel git or Siano's repository.

Priority: normal

linux/drivers/media/dvb/siano/Kconfig +64 -15
diff -r 0018ed9bbca3 -r f93a86c6f978 linux/drivers/media/dvb/siano/Kconfig
@@ -2,25 +2,74 @@
 # 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"
+
+# Kernel sub systems support
+config SMS_DVB3_SUBSYS
+	tristate "DVB v.3 Subsystem support"
+	depends on DVB_CORE
+	default m if DVB_CORE
 	---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 DVB v.3 kernel sub-system support.
 
-	  Choose N here if you would prefer to use Siano's external driver.
+#config SMS_DVB5_S2API_SUBSYS
+#	tristate "DVB v.5 (S2 API) Subsystem support"
+#	default n
+#	---help---
+#	Choose if you would like to have DVB v.5 (S2 API) kernel sub-system support.
+#
+#config SMS_HOSTLIB_SUBSYS
+#	tristate "Host Library Subsystem support"
+#	default n
+#	---help---
+#	Choose if you would like to have Siano's host library kernel sub-system support.
+#
+#if SMS_HOSTLIB_SUBSYS
+#
+#config SMS_NET_SUBSYS
+#	tristate "Siano Network Adapter"
+#	depends on SMS_HOSTLIB_SUBSYS
+#	default n
+#	---help---
+#	Choose if you would like to have Siano's network adapter support.
+#endif # SMS_HOSTLIB_SUBSYS
 
-	  Further documentation on this driver can be found on the WWW at
-	  <http://www.siano-ms.com/>.
+# Hardware interfaces support
 
+config SMS_USB_DRV
+	tristate "USB interface support"
+	depends on USB
+	default m if USB
+	---help---
+	Choose if you would like to have Siano's support for USB interface
+
+config SMS_SDIO_DRV
+	tristate "SDIO interface support"
+	depends on MMC
+	default m if MMC
+	---help---
+	Choose if you would like to have Siano's support for SDIO interface
+
+#config SMS_SPI_PXA310_DRV
+#	tristate "PXA 310 SPI interface support"
+#	depends on ARM && ARCH_PXA && MACH_ZYLONITE && PXA_SSP && SPI
+#	default m if ARM && ARCH_PXA && MACH_ZYLONITE && PXA_SSP && SPI
+#	---help---
+#	Choose if you would like to have Siano's support for PXA 310 SPI interface
+
+endmenu
+endif # SMS_SIANO_MDTV
linux/drivers/media/dvb/siano/Makefile +5 -4
diff -r 0018ed9bbca3 -r f93a86c6f978 linux/drivers/media/dvb/siano/Makefile
@@ -1,8 +1,9 @@ sms1xxx-objs := smscoreapi.o sms-cards.o
-sms1xxx-objs := smscoreapi.o sms-cards.o smsendian.o
+smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o
 
-obj-$(CONFIG_DVB_SIANO_SMS1XXX) += sms1xxx.o
-obj-$(CONFIG_DVB_SIANO_SMS1XXX) += smsusb.o
-obj-$(CONFIG_DVB_SIANO_SMS1XXX) += smsdvb.o
+obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o
+obj-$(CONFIG_SMS_USB_DRV) += smsusb.o
+obj-$(CONFIG_SMS_DVB3_SUBSYS) += smsdvb.o
+#obj-$(CONFIG_SMS_SDIO_DRV) += smssdio.o
 
 EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
 
linux/drivers/media/dvb/siano/smsendian.h +3 -3
diff -r 0018ed9bbca3 -r f93a86c6f978 linux/drivers/media/dvb/siano/smsendian.h
@@ -24,9 +24,9 @@ along with this program.  If not, see <h
 
 #include <asm/byteorder.h>
 
-void smsendian_handle_tx_message(void *buffer);
-void smsendian_handle_rx_message(void *buffer);
-void smsendian_handle_message_header(void *msg);
+extern void smsendian_handle_tx_message(void *buffer);
+extern void smsendian_handle_rx_message(void *buffer);
+extern void smsendian_handle_message_header(void *msg);
 
 #endif /* __SMS_ENDIAN_H__ */
 
#1 lore raw

Em Thu, 14 May 2009 12:26:18 -0700 (PDT)
Uri Shkolnik <[email protected]> escreveu:

Quoted 21 lines

# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1242323350 -10800
# Node ID f93a86c6f9785cb60e015e811ddfca6850135887 # Parent 0018ed9bbca31e76a17ead56e2e953c325c7cf3f [0905_10] Siano - perform clean multi-modules build

From: Uri Shkolnik <[email protected]>

Clean up the multi dynamic module build, so no warning/errors will occur either with clean kernel git or Siano's repository.

Priority: normal

diff -r 0018ed9bbca3 -r f93a86c6f978 linux/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,74 @@
 # 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

Please start with DVB for all DVB config options. The same comment is valid also to the SMS suboptions bellow.

Quoted 8 lines
linux/drivers/media/dvb/siano/Kconfig +3 -3
+	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.

linux/drivers/media/dvb/siano/Kconfig line 16

Quoted 10 lines
linux/drivers/media/dvb/siano/Kconfig +5 -4
+	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/

Please don't use more than 80 characters per line.

Quoted 26 lines
linux/drivers/media/dvb/siano/Kconfig +21 -3
+
+if SMS_SIANO_MDTV
+menu "Siano module components"
+
+# Kernel sub systems support
+config SMS_DVB3_SUBSYS
+	tristate "DVB v.3 Subsystem support"
+	depends on DVB_CORE
+	default m if DVB_CORE
 	---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 DVB v.3 kernel sub-system support.
 
-	  Choose N here if you would prefer to use Siano's external driver.
+#config SMS_DVB5_S2API_SUBSYS
+#	tristate "DVB v.5 (S2 API) Subsystem support"
+#	default n
+#	---help---
+#	Choose if you would like to have DVB v.5 (S2 API) kernel sub-system support.
+#
+#config SMS_HOSTLIB_SUBSYS
+#	tristate "Host Library Subsystem support"
+#	default n
+#	---help---
+#	Choose if you would like to have Siano's host library kernel sub-system support.

linux/drivers/media/dvb/siano/Kconfig line 49

Quoted 10 lines
linux/drivers/media/dvb/siano/Kconfig +10 -0
+#
+#if SMS_HOSTLIB_SUBSYS
+#
+#config SMS_NET_SUBSYS
+#	tristate "Siano Network Adapter"
+#	depends on SMS_HOSTLIB_SUBSYS
+#	default n
+#	---help---
+#	Choose if you would like to have Siano's network adapter support.
+#endif # SMS_HOSTLIB_SUBSYS

Don't add something commented above. Also, please be sure that, before adding those Kconfig items, that the driver will support compilation with all alternatives.

Quoted 15 lines
linux/drivers/media/dvb/siano/Kconfig +11 -2
-	  Further documentation on this driver can be found on the WWW at
-	  <http://www.siano-ms.com/>.
+# Hardware interfaces support
 
+config SMS_USB_DRV
+	tristate "USB interface support"
+	depends on USB
+	default m if USB
+	---help---
+	Choose if you would like to have Siano's support for USB interface
+
+config SMS_SDIO_DRV
+	tristate "SDIO interface support"
+	depends on MMC

linux/drivers/media/dvb/siano/Kconfig line 72

Quoted 10 lines
linux/drivers/media/dvb/siano/Kconfig +10 -0
+	default m if MMC
+	---help---
+	Choose if you would like to have Siano's support for SDIO interface
+
+#config SMS_SPI_PXA310_DRV
+#	tristate "PXA 310 SPI interface support"
+#	depends on ARM && ARCH_PXA && MACH_ZYLONITE && PXA_SSP && SPI
+#	default m if ARM && ARCH_PXA && MACH_ZYLONITE && PXA_SSP && SPI
+#	---help---
+#	Choose if you would like to have Siano's support for PXA 310 SPI interface

Idem.

Quoted 7 lines
linux/drivers/media/dvb/siano/Kconfig +3 -0
+
+endmenu
+endif # SMS_SIANO_MDTV

diff -r 0018ed9bbca3 -r f93a86c6f978 linux/drivers/media/dvb/siano/Makefile

linux/drivers/media/dvb/siano/Makefile sms1xxx-objs := smscoreapi.o sms-cards.o · line 6

Quoted 10 lines
linux/drivers/media/dvb/siano/Makefile +5 -4
@@ -1,8 +1,9 @@ sms1xxx-objs := smscoreapi.o sms-cards.o
-sms1xxx-objs := smscoreapi.o sms-cards.o smsendian.o
+smsmdtv-objs := smscoreapi.o sms-cards.o smsendian.o
 
-obj-$(CONFIG_DVB_SIANO_SMS1XXX) += sms1xxx.o
-obj-$(CONFIG_DVB_SIANO_SMS1XXX) += smsusb.o
-obj-$(CONFIG_DVB_SIANO_SMS1XXX) += smsdvb.o
+obj-$(CONFIG_SMS_SIANO_MDTV) += smsmdtv.o
+obj-$(CONFIG_SMS_USB_DRV) += smsusb.o
+obj-$(CONFIG_SMS_DVB3_SUBSYS) += smsdvb.o
+#obj-$(CONFIG_SMS_SDIO_DRV) += smssdio.o

Please, don't add a commented line here. Just submit a Kconfig addition for smssdio after the patch that adds this new module, as a separate file. I sometimes rearrange the Kconfig patches, if later I discover some git bisection breakage. So, the better is that Kconfig/Makefile patches to be separated than the patches that touches the code.

Quoted 7 lines
linux/drivers/media/dvb/siano/Makefile +0 -0
 EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-core
 

diff -r 0018ed9bbca3 -r f93a86c6f978 linux/drivers/media/dvb/siano/smsendian.h

linux/drivers/media/dvb/siano/smsendian.h +0 -0
@@ -24,9 +24,9 @@ along with this program.  If not, see <h
 

linux/drivers/media/dvb/siano/smsendian.h along with this program. If not, see <h · line 31

Quoted 10 lines
linux/drivers/media/dvb/siano/smsendian.h +3 -3
 #include <asm/byteorder.h>
 
-void smsendian_handle_tx_message(void *buffer);
-void smsendian_handle_rx_message(void *buffer);
-void smsendian_handle_message_header(void *msg);
+extern void smsendian_handle_tx_message(void *buffer);
+extern void smsendian_handle_rx_message(void *buffer);
+extern void smsendian_handle_message_header(void *msg);
 
 #endif /* __SMS_ENDIAN_H__ */

It is better to provide the above as a separate patch. I'll probably rearrange it at my -git to apply it before the patch that started using smdendian

Cheers,
Mauro