Age | Commit message (Collapse) | Author | Files | Lines |
|
Check if there is a .git directory at the top-level, and only
then get the SHA of the HEAD.
If the release tarball (which doesn't have a .git directory) is
extracted inside another git repo, then the current SHA code
would find the SHA of the enclosing git repo, which is not what
you want.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
|
|
|
|
Create v4l2-info.cpp/h to centralize the code used by
v4l2-ctl and v4l2-compliance to log V4L2 data structs.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
The code that displays the media information for an interface
is now centralized in common/media-info.cpp and used by both
v4l2-ctl and v4l2-compliance.
In addition, this code now uses G_TOPOLOGY if available.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Add simple support for the media controller.
One could argue that this should go to a media-compliance test, but
that will just need to call v4l2-compliance in turn when you want to
test all the constituent devices in the topology. And since we currently
use it for 90% for V4L2, we might as well add it here.
Perhaps at some point v4l2-compliance will be renamed to media-compliance.
At least now we have a starting point that we can build on top of.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Note: this does not yet iterate over all pads, that is not yet
implemented.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
In commit 2e604dfbcd09b93f0808cedb2a0b324c5569a599 ("configure.ac: add
--disable-libv4l option"), an option --disable-libv4l was added. As
part of this, libv4l is no longer built at all in static linking
configurations, just because libv4l uses dlopen() for plugin support.
However, plugin support is only a side feature of libv4l, and one may
need to use libv4l in static configurations, just without plugin
support.
Therefore, this commit:
- Essentially reverts 2e604dfbcd09b93f0808cedb2a0b324c5569a599, so
that libv4l can be built in static linking configurations again.
- Adjusts the compilation of libv4l2 so that the plugin support is
not compiled in when dlopen() in static linking configuration
(dlopen is not available).
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Add an option to disable libv4l libraries and plugins compilation.
If system is not supporting dynamic shared libraries, this option
is automatically set.
dlopen() is no more a mandatory dependency (warning is kept).
lib/ and contrib/ folders are no more built with this option set
because of libv4l dependency.
utils/ folder is still built with this options set but without
rds-ctl because of its libv4l dependency.
v4l2-compliance and v4l2-ctl are also built but without any links
on libv4l and libv4lconvert libraries.
Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Apply git command on source worktree instead of derived objects
working directory.
This is needed within openembedded build environment.
Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Use $(top_srcdir) as reference for include paths and buildtime scripts.
Otherwise compilation outside of project root directory will fail
because header and script paths are wrong.
To reproduce: mkdir b; cd b; ../configure; make
Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Use git rev-parse HEAD to get the SHA for the HEAD instead of
git show-ref -s HEAD: the latter didn't do what I expected if a
specific git commit was checked out.
I just want the SHA for the current checked out HEAD.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
v4l2-compliance and v4l2-ctl depend on librt and libpthread. The symbols
are found by the linker only if these libraries are specified after the
objects that depend on them.
As LDFLAGS variable end up expanded on libtool command line before LDADD,
move the libraries to LDADD after local objects. -lpthread is added as on
some systems librt depends on libpthread. This is the case on Ubuntu 16.04
for instance.
After this patch, creating a static build using the command
LDFLAGS="--static -static" ./configure --disable-shared --enable-static
works again.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
|
|
To be able to check which version of v4l2-compliance was used when testing, add
the SHA so this can be printed in the output.
It is important that a recent version is used, but without the SHA I can't tell
that.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Several headers and sources where used by several utilities (v4l2-ctl,
v4l2-compliance and qv4l2).
Move those shared files to the common directory.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Sometimes you want to compile these two utilities without the libv4l2 wrapper.
This patch adds new configure options to do this:
--disable-v4l2-compliance-libv4l
--disable-v4l2-ctl-libv4l
This is useful when building for an embedded system where you do not want
to use the libv4l2 wrapper library.
The capability to do this was already available, but not hooked up to
the configure system.
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Add a manual page for v4l2-compliance. This contains much more precise
instructions on how this utility should be used.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Add a new test to check if the video input is red, green or blue,
and test this for all supported (non-compressed) formats.
This allows you to verify if the supported pixelformats are implemented
correctly.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
|
|
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
|
|
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
|
|
Debian based libtool packages suffer from a cross compiling problem
where the rpaths are not picked up properly. See:
- https://bugs.lttng.org/issues/321
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=297726
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
|
|
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
|
|
Use autoreconf -vfi to bootstrap
Signed-off-by: Gregor Jasny <gjasny@googlemail.com>
|