summaryrefslogtreecommitdiff
path: root/v4l/scripts/gentree.pl
AgeCommit message (Collapse)Author
2007-07-16Update script to not remove TEA5761Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-07Allow removing CONFIG_BIGPHYS_AREA from mainstream kernelMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> CONFIG_BIGPHYS_AREA is an out-of-tree patch. While it may be interesting to have this configuration flag when compiling v4l-dvb out-of-tree, for development purposes, there's no sense on keeping those unused code inside kernel. This patch do some cosmetic changes on zoran_driver.c, preserving both supports there, and adds the defaults to be used by gentree.pl. This way, gentree.pl will handle the removal of the dead code when submitting code to mainstream, while keeping the complete code at v4l-dvb tree. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-01Improve compatibility handlingMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> V4L/DVB tree keeps backward compatibility with vanilla 2.6.x kernels. However, if some API changes happens on 2.6.x.y, this wouldn't be handled. This patch improves the compatibility capabilities of the tree by allowing customized scripts to be added on make_config_compat.pl. So, when generating config-compat.h, some compat checks can be done against the kernel tree. The practical effect is allowing compilation on 2.6.17.x trees, used by several distros, where some changes on netdevice.h affects dvb-net, stopping its compilation. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-01Reverting last changeset. There were two different patches merged togetherMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-06-01saa7134-tvaudio: kthread conversionMauro Carvalho Chehab
From: Christoph Hellwig <hch@lst.de> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Hermann Pitton <hermann-pitton@arcor.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-07Allow using tea5761 radio device on tuner-coreMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> tea5761 is a driver wrote back on 2005, to support Philips tea5671 radio, meanting to be used on some devices that would be lauched with those chips. Recently, some people seems to be interested on having support for those chips at Linux Kernel. Let's enable compilation of this driver and ask they to test if this works fine. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-23Fixed credits at gentree.plMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> gentree.pl were part of Gerd Knorr scripts, used to generate patches from his tree against kernel. Several newer capabilities were added to the original script, including the ability to handle with multiple levels of #if/#else/#endif and support for #elif. This patch corrects the credits for this valuable piece of code. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-02-23Largely re-write gentree.plTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Mostly re-write gentree.pl to make a few improvements: About three times faster Correctly processes BTTV_VERSION_CODE checks Properly handles #elif Doesn't need absolute path names specified in command line arguments Improved debug output, which now shows input line number Can handle almost any general expression for a conditional compilation directive. Can understand all these: #if 0 #ifdef BROKEN_XAWTV #ifndef MM_KERNEL #if defined(STV0297_CS2) #if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,20) #elif defined(MM_KERNEL) || !BROKEN_XAWTV #if BTTV_VERSION_CODE > KERNEL_VERSION(0,8,0) || defined(BROKEN_XAWTV) #if (1 > 2) || (I2C_PEC && defined(I2C_CLASS_TV_ANALOG)) #ifndef CONFIG_XC3028 /* Keep */ <- knows to keep this one in the code Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-02-21Updated gentree.plMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Relaxed some regular expressions to better handle whitespaces at the middle of cpp macros; Added #elif processing capability to the script. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-12-09Improved #if parsing to accept other syntaxesMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-17Fix compilation for Miropcm20 and CinergyMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Miropcm compilation were assuming to compile under linux/drivers/media/video, but this is not true when compiling in-tree. Also, make allyesconfig were making "y" to an advanced configuration for Cinergy. gentree.pl also updated. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-05-02Fix checking logic for a broken xawtv versionMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> moved from if to ifndef. Also added such tests at gentree script. Gentree updated to its latest version. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-02-08XC3028 code marked with an special define optionMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> - Current xc3028 support is still experimental, requiring more work to be sent to mainstream. So, it was marked inside some defines, in order to be removed by gentree.pl stript. Script also updated to remove it. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-28Several fixes for using with mercurialMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> cvs commands replaced to hg created a new script to help commiting Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-01-09Several i2C cleanups to compile on both current linux and kernels >2.6.15Mauro Carvalho Chehab
kernel-sync Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-26Fixed some errors at gentree parsing.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-08fixes handling for #if 0/#if 1 with keepMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-08Updated doc to explain usage of #if macros and gentree updatedMauro Carvalho Chehab
- Updated to explain usage of #if macros - gentree was removing linux/version.h from .c files. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-12-07Added some tests for compatibility #ifMauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-20 - This script does create a version-specific V4L tree onMauro Carvalho Chehab
another dir, removing compat references. It allows nested #if or #ifdef. - It needs more testing. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-19 - Fixed to work with CVS.Mauro Carvalho Chehab
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
2005-10-19 * ../v4l/scripts/gentree.pl:Mauro Carvalho Chehab
- Add new script to create a clean tree (without uneeded #if). Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>