Age | Commit message (Collapse) | Author |
|
Preparing to compile geode on X 1.13
All compiler errors are gone as far as I can tell,
but I lack the hardware to verify it works as well.
|
|
|
|
On hybrid platforms, such as Debian GNU/KFreeBSD, that support V4L2
and yet without providing the full complement of Linux headers, ZTV
fails to compile because of this missing header.
Given how removing this header does not adversely affect compiling,
plus it might improve portability, we went ahead and removed it.
Nonetheless, as observed by Gaetan Nadon, z4l.c includes code that
explicitly disables the module on any OS other than Linux:
LoaderGetOS(&osname, NULL, NULL, NULL);
if (osname == NULL || strcmp(osname, "linux") != 0) {
if (errmaj)
*errmaj = LDR_BADOS;
if (errmin)
*errmin = 0;
return NULL;
}
Still, in the interest of OS neutrality, we decided to leave recent
autoconf magic in place and to let OS vendors figure out how to get
the module loaded on non-Linux OS themselves. Patches are welcome.
Signed-off-by: Martin-Éric Racine <martin-eric.racine@iki.fi>
|
|
Now we have a clean separation between CPP flags and C Flags
Only the C Flags apply to both geode and ztv driver, however
it is not worth doing a per target compilation.
Should some flags become mutually exclusive and if we want to have
both target in the same makefile, add the incompatible flag
on the appropriate target, example:
geode_drv_la_CFLAGS = $(AM_CFLAGS) -newCFlag
and/or
geode_drv_la_CPPFLAGS = $(AM_CPPFLAGS) -newCPPFlag
Note that both AM_CFLAGS and AM_CPPFLAGS are picked-up by both
geode and ztv driver target.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
The convention is to have the video driver (geode) in the src subdir
and any other targets (utils, apps, other drivers) in their own
directory. It makes it much simpler to right a correct makefile
and to set conditional compile.
This highlighted a few things to fix. For now, the directory includes
have not been copied as they are required. The AM_CCASFLAGS is not required
either as there is no assembler.
Other than that, the gcc command issued has no differences. Other unrequired
defines could be removed later.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
|
|
V4L1 support was dropped as of Linux kernel 2.6.38
|
|
* Replace the deprecated functions with new ones
Refer to "/xserver/include/os.h"
Signed-off-by: Frank Huang <frankr.huang@amd.com>
|
|
*Correct the type from "Q_WORD" to "QQ_WORD" in panel.c
*Correct the tyep from "char" to "const char" in z4l.c
Signed-off-by: Frank Huang <frankr.huang@amd.com>
|
|
|
|
|
|
remove trailing whitespace, zap unused files and
remove blocks of ifdefed out code.
|
|
|
|
|
|
|
|
This closes bug 8290 by applying the patch from Andres Salomon.
|
|
|