summaryrefslogtreecommitdiff
path: root/v4l/scripts/make_makefile.pl
AgeCommit message (Collapse)Author
2009-02-09build system: preserve debug info inside /v4l dirMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> In order to make easier for debug, preserve debug info inside the /v4l dir. Only the /lib/modules/`uname -r`/drivers/<foo> will have their symbols stripped. This allows using gcc to determine where a code broke, within the asm code. This may also help in the future for its usage with systemtaps. Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-11-20Fix Ubuntu module removal scriptMauro Carvalho Chehab
From: Devin Heitmueller <devin.heitmueller@gmail.com> The generated Makefile.media had entries in it's remove list for Ubuntu that were concatenated together. Add a space when concatenating together the various lists (so there is a space between the lists) Thanks for Mike Krufky <mkrufky@linuxtv.org> for pointing this out and testing the fix. Signed-off-by: Devin Heitmueller <devin.heitmueller@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-25A small improvement at a comment added on the latest patchMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@redhat.com> Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2008-10-25Improve make install to work properly with a distro that use non-standard ↵Mauro Carvalho Chehab
dir for V4L/DVB modules From: Mauro Carvalho Chehab <mchehab@redhat.com> One distro stores kernel/drivers/media files on non-standard dirs. I can't see any logical rule for, once having the kernel original dir position, determine were the kernel driver were placed on that distro. For example, they put xc5000.ko driver inside <foo>/media/au0828, while the expected place would be something like <foo>/media/common/tuners. So, this patch do some tricks, when "make rminstall" or "make install" is called: 1) detect if it is such distro; 2) if so, it will run something like: find <foo>/media -name <module.ko> -exec rm '{}' \; where <module.ko> is the official V4L/DVB name for the compiled modules, and <foo> is the distro non-standard dir. This should remove the new V4L/DVB .ko modules that are located at the non-standard dir or inside one of its sub-directories. NOTICE: If there are other V4L/DVB drivers there that (1) aren't inside V4L/DVB tree; (2) weren't selected to compile; then those drivers will likely stop working. This patch doesn't affect the other distros. Priority: normal Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-10-03build: clean up some ugly perl codeTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> Much better now. Also handles some more error conditions and prints a bit more information. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2007-08-23Add capability to remove obsolete drivers with make rmmodMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-31Script updated to support a more generic shell languageMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-05-31Simplifies make install logsMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Installation logs were very prolific. This patch makes the installation message cleaner, while preserving all information. The generated log is now much more clear, especially if compiling just a few device drivers. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2007-03-09build: Add support for DESTDIR when installing/removing modulesTrent Piepho
From: Ludwig Nussel <ludwig.nussel@suse.de> If defined, use $(DESTDIR) as a prefix for installing and removing modules. depmod will also use $(DESTDIR) as a prefix when it is run as part of module installation. Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de> Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31Only include Makefiles onceTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The script which combines the individual Makefils into Makefile.media would include a Makefile each time it was referenced. This caused some Makefiles to get included multiple times. Also print comments in Makefile.media with the names of the Makefiles that are being included. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-08-31Re-write make_makefile.pl, re-work v4l/MakefileTrent Piepho
From: Trent Piepho <xyzzy@speakeasy.org> The make_makefile.pl script is re-written. The old one was nasty. This one will correctly handle Makefile lines that are continued with a backslash. It will also generate a dependency list of the Makefile used to create Makefile.media. This way if any change, Makefile.media will be automatically re-made by make. The whole business where make_makefile.pl would call make_kconfig.pl is removed. The underlying logic of the main Makefile is completely changed. Make has a feature where it will make sure any included files are up-to-date, and then restart itself if any were updated. We now take advantage of this feature. Detect when make is building only targets which do not need include files like .myconfig or Makefile.media, and don't include them in those cases. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
2006-06-21Some improvements at the building systemMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Building system now looks kernel config.h and autoconf.h files, seeking for the compiled options at kernel. If something is missing, it will disable compilation for that driver, printing a warning message. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-21Fixes circular dependencies at building systemMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> There were a circular dependency at scripts/make_makefile.pl that were affecting mostly building with GNU make 3.81. Also, scripts/make_noconfig.pl is, in fact, building .myconfig file, so, better to name it as make_myconfig.pl. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-06-20Makefile.media were rewritten even when not required.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> make 3.81 were suffering some endless loop that might be caused by Makefile.media rewrites. After this patch, make_makefile will only write Makefile.media if needed. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-27move install / rminstall invocation rules to v4l/MakefileMichael Krufky
From: Michael Krufky <mkrufky@linuxtv.org> This patch moves the 'make install' and 'make rminstall' rules into the central Makefile. This allows for us to assign dependencies to these rules, so that modules built as a reult of a tree-merge don't have to be installed separately. Now, instead of doing 'make install && make ivtv-install', the simple command, 'make install' will call the sub-install rules and take care of the entire task. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
2006-04-26Re-inserting strip at install ruleMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> strip is responsible to remove all debug info from kernel object files. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-13Added missing depmod after the end of installation processMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-09If .myconfig is not found, make will do allmodconfig.Mauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-08Some cleanups at make install/make removeMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Now, it won't generate errors for non-compiled objects. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-08Some cleanups at make installMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-08Fix make installMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Previous patch broke make install. This patch fix it. Also, serveral cleanups were made at core Makefile. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-07Now, make all will replicate old behaviorMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> make all will do allmodconfig before compiling Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
2006-04-07Big changes at v4l-dvb make internal workingMauro Carvalho Chehab
From: Mauro Carvalho Chehab <mchehab@infradead.org> Previously, tree building were based on Make.config. This file contained all compiling stuff. Also, v4l/Makefile contained all drivers that should be copiled, replicating the rules of all other Makefiles under linux. Now, make will rely on linux/*/Makefile to compile the modules. This approach allows usage of Kconfig files, allowing partial compilations. Newer makefile commands introduced: make allmodconfig - Selects all stuff to be compiled as module; make config - Selects packages via text interface; make xconfig - Selects packages via qt interface; make gconfig - selects packages via gtk interface. for config, xconfig and gconfig to be used, those scripts needs to be previously compiled at kernel. So, user needs to use those commands previously at kernel tree. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>