Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1 0/2] v4l-utils build on noMMU platform
@ 2017-06-07 10:12 Hugues Fruchet
  2017-06-07 10:12 ` [Buildroot] [PATCH v1 1/2] package/libv4l: upstream patches for " Hugues Fruchet
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Hugues Fruchet @ 2017-06-07 10:12 UTC (permalink / raw)
  To: buildroot

In order to pass V4L2 compliancy tests on STM32 devices -which are MMU less-,
compliancy utilities -at least v4l2-compliance and cec-compliance- have to be built.
Unfortunately the support of shared libraries (dlopen()) and fork() is a must
have in v4l-utils (libv4l buildroot package).
This have been fixed by:
 - revisiting --disable-libv4l to --disable-dyn-libv4l; first naming
   suggests that libv4l will not be built which is not the case
   (only the dynamic support of libv4l is disabled in this case)
 - for the sake of coherency, configure.ac variables USE_V4L2_CTL & USE_V4L2_COMPLIANCE
   have been changed to USE_V4L2_CTL_LIBV4L & USE_V4L2_COMPLIANCE_LIBV4L
   for the same reason.
 - adding an option --disable-libv4l to really not build libv4l
   - libraries which require dlopen() and libv4lconvert which
     require fork(). For the sake of simplicity, the entire lib/ folder
     is not built with this option.
   - The contrib/ folder is also not built in that case because of its dependency
     on libv4l/libv4lconvert libraries.
   - The utility rds-ctl is also not built for the same reason.
   - configure.ac is also fixed to not trig error on dlopen() missing, further
     test on "enable_shared" will automatically disable the build of libv4l
     and items which have libv4l has dependency.
 - fix configure.ac to allow build of v4l-utils utilities with uclinux.
All those patches have been accepted upstream and are merged in master branch,
see git://linuxtv.org/v4l-utils.git
d57bb8af0c71d82b702e35a7362aa077189dd593 configure.ac: add USE_LIBV4L to summary

Changes are needed in buildroot Config.in in order to remove MMU related
dependencies and let throw build even if no MMU and no shared libraries support.

In order to build the V4L2 compliancy tools, below options have to be selected
in buildroot menuconfig or platform configuration file:
+#v4l utilities
+BR2_TOOLCHAIN_BUILDROOT_CXX=y
+BR2_PACKAGE_LIBV4L=y
+BR2_PACKAGE_LIBV4L_UTILS=y

Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com>

---

Hugues Fruchet (2):
  package/libv4l: upstream patches for noMMU platform
  package/libv4l: build of v4l2 utilities on noMMU platform

 ...04-configure.ac-clarify-configure-summary.patch |  72 ++++++++++
 ...c-revisit-v4l2-ctl-compliance-using-libv4.patch |  43 ++++++
 ...c-revisit-disable-libv4l-to-disable-dyn-l.patch | 114 +++++++++++++++
 ...07-configure.ac-add-disable-libv4l-option.patch | 155 +++++++++++++++++++++
 ...gure.ac-fix-build-of-v4l-utils-on-uclinux.patch |  30 ++++
 ...09-configure.ac-add-USE_LIBV4L-to-summary.patch |  27 ++++
 package/libv4l/Config.in                           |  11 +-
 package/libv4l/libv4l.mk                           |   6 +
 8 files changed, 449 insertions(+), 9 deletions(-)
 create mode 100644 package/libv4l/0004-configure.ac-clarify-configure-summary.patch
 create mode 100644 package/libv4l/0005-configure.ac-revisit-v4l2-ctl-compliance-using-libv4.patch
 create mode 100644 package/libv4l/0006-configure.ac-revisit-disable-libv4l-to-disable-dyn-l.patch
 create mode 100644 package/libv4l/0007-configure.ac-add-disable-libv4l-option.patch
 create mode 100644 package/libv4l/0008-configure.ac-fix-build-of-v4l-utils-on-uclinux.patch
 create mode 100644 package/libv4l/0009-configure.ac-add-USE_LIBV4L-to-summary.patch

-- 
1.9.1

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-06-12  9:03 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-07 10:12 [Buildroot] [PATCH v1 0/2] v4l-utils build on noMMU platform Hugues Fruchet
2017-06-07 10:12 ` [Buildroot] [PATCH v1 1/2] package/libv4l: upstream patches for " Hugues Fruchet
2017-06-08 19:54   ` Thomas Petazzoni
2017-06-09  9:33     ` Hugues FRUCHET
2017-06-09 10:01       ` Thomas Petazzoni
2017-06-09 10:45   ` [Buildroot] From: Hugues Fruchet <hugues.fruchet@st.com> Hugues Fruchet
2017-06-09 10:45     ` [Buildroot] [PATCH v2] package/libv4l: build of v4l2 utilities on noMMU platform Hugues Fruchet
2017-06-09 10:45     ` [Buildroot] [PATCH v2] package/libv4l: toolchain w/ locale is not mandatory Hugues Fruchet
2017-06-07 10:12 ` [Buildroot] [PATCH v1 2/2] package/libv4l: build of v4l2 utilities on noMMU platform Hugues Fruchet
2017-06-08 19:57   ` Thomas Petazzoni
2017-06-09  9:39     ` Hugues FRUCHET
2017-06-09 10:03       ` Thomas Petazzoni
2017-06-09 12:18 ` [Buildroot] [PATCH v2] v4l-utils build " Hugues Fruchet
2017-06-09 12:18   ` [Buildroot] [PATCH v2] package/libv4l: build of v4l2 utilities " Hugues Fruchet
2017-06-09 12:18   ` [Buildroot] [PATCH v2] package/libv4l: toolchain w/ locale is not mandatory Hugues Fruchet
2017-06-10 21:33   ` [Buildroot] [PATCH v2] v4l-utils build on noMMU platform Thomas Petazzoni
2017-06-12  9:03     ` Hugues FRUCHET

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox