Age | Commit message (Collapse) | Author |
|
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>
|
|
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>
|
|
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
|
|
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>
|
|
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>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
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>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
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>
|
|
From: Mauro Carvalho Chehab <mchehab@infradead.org>
make all will do allmodconfig before compiling
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
|
|
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>
|