diff options
author | Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net> | 2013-05-06 12:20:01 +0000 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-05-07 18:59:01 +0200 |
commit | 0c47dcf1dfe9cb5fb2fbe06e06d42920c6f4bcc0 (patch) | |
tree | 6f4ed153f77e9cfb221fb5fc21d2328bde0d5797 /meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb | |
parent | 3d6369b7c39d78b0d424dbe5a97e736b694e3c48 (diff) | |
download | meta-openembedded-0c47dcf1dfe9cb5fb2fbe06e06d42920c6f4bcc0.tar.gz |
media-ctl: Use linux-libc-headers instead of linux kernel sources
Use the headers from the linux-libc-headers instead of the headers
from the linux kernel sources because user space programs should
be built against the header files provided by the distribution.
In file included from .../usr/src/kernel/include/linux/media.h:27:0,
from conftest.c:56:
.../usr/src/kernel/include/linux/types.h:13:2: warning: #warning \
"Attempt to use kernel headers from user space, see http://kernelnewbies.org/KernelHeaders" [-Wcpp]
On some platforms (qemu) intern kernel header (linux/types.h) redefines
some types from the system header (sys/types.h, timer.h, stdint.h)
and thereby breaks the checking of the linux media header.
ERROR: Kernel header file not found or not usable!
In file included from .../usr/include/linux/media.h:27:0,
from conftest.c:56:
In file included from .../usr/src/kernel/include/linux/types.h:14:26: error: conflicting types for 'fd_set'
In file included from .../sys/select.h:75:5: note: previous declaration of 'fd_set' was here
Similar errors for dev_t, mode_t, timer_t, uintptr_t and blkcnt_t.
Signed-off-by: Stefan Herbrechtsmeier <stefan@herbrechtsmeier.net>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb')
-rw-r--r-- | meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb b/meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb index d96c1f90b..cb3072b5e 100644 --- a/meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb +++ b/meta-oe/recipes-multimedia/v4l2apps/media-ctl_git.bb | |||
@@ -2,17 +2,18 @@ DESCRIPTION = "Media controller control application" | |||
2 | LICENSE = "LGPLv2+" | 2 | LICENSE = "LGPLv2+" |
3 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=d749e86a105281d7a44c2328acebc4b0" | 3 | LIC_FILES_CHKSUM = "file://COPYING.LIB;md5=d749e86a105281d7a44c2328acebc4b0" |
4 | 4 | ||
5 | DEPENDS = "linux-libc-headers" | ||
6 | |||
5 | SRC_URI = "git://git.ideasonboard.org/media-ctl.git;protocol=git" | 7 | SRC_URI = "git://git.ideasonboard.org/media-ctl.git;protocol=git" |
6 | SRCREV = "a6ec4a37028952ffd6e62eb52648cf66248eb519" | 8 | SRCREV = "a6ec4a37028952ffd6e62eb52648cf66248eb519" |
7 | 9 | ||
8 | PV = "0.0.1" | 10 | PV = "0.0.1" |
9 | PR = "r3" | 11 | PR = "r4" |
10 | S = "${WORKDIR}/git" | 12 | S = "${WORKDIR}/git" |
11 | 13 | ||
12 | inherit autotools | 14 | inherit autotools |
13 | 15 | ||
14 | # It needs some kernel definitions only for v4l2, so it isn't machine specific | 16 | EXTRA_OECONF = "--with-kernel-headers=${STAGING_EXECPREFIXDIR}" |
15 | EXTRA_OECONF = "--with-kernel-headers=${STAGING_KERNEL_DIR}" | ||
16 | 17 | ||
17 | PACKAGES =+ "libmediactl libv4l2subdev" | 18 | PACKAGES =+ "libmediactl libv4l2subdev" |
18 | FILES_libmediactl = "${libdir}/libmediactl${SOLIBS}" | 19 | FILES_libmediactl = "${libdir}/libmediactl${SOLIBS}" |