[Buildroot] [RFC v1] libv4l: build utils only on MMU (with fork support) platforms

Hugues FRUCHET hugues.fruchet at st.com
Tue Jul 25 07:54:21 UTC 2017


Hi Peter,

On 07/24/2017 07:51 PM, Peter Seiderer wrote:
> Hello Hugues,
> 
> On Mon, 24 Jul 2017 19:38:22 +0200, Peter Seiderer <ps.report at gmx.net> wrote:
> 
>> Hello Hugues,
>>
>> On Mon, 24 Jul 2017 08:08:45 +0000, Hugues FRUCHET <hugues.fruchet at st.com> wrote:
>>
>>> Hi Peter,
>>>
>>> Sorry, typo in patch, this one should work as expected.
>>>
>>> Best regards,
>>> Hugues.
>>>
>>
>> Yes, the new version of the patch works:
>>
>> 	$ make libv4l
>> [...]
>> Applying 0010-configure.ac-disable-libv4l-if-no-fork.patch using patch:
>> [...]
>> compile time options summary
>> ============================
>>
>>      Host OS                    : linux-uclibc
>>      X11                        : no
>>      GL                         : no
>>      glu                        : no
>>      libjpeg                    :
>>      libudev                    : no
>>      pthread                    : yes
>>      fork                       : no
>>      QT version                 : none
>>      ALSA support               : no
>>
>>      build dynamic libs         : yes
>>      build static libs          : no
>>
>>      gconv                      : no
>>
>>      libv4l                     : no
>>      dynamic libv4l             : yes
>>      v4l_plugins                : yes
>>      v4l_wrappers               : yes
>>      libdvbv5                   : no
>>      dvbv5-daemon               : no
>>      v4lutils                   : yes
>>      qv4l2                      : no
>>      v4l2-ctl uses libv4l       : yes
>>      v4l2-compliance uses libv4l: yes
>> [...]
>>
>> 	$ ls -ltr target/usr/bin/
>> [...]
>> -rwxr-xr-x 1 seiderer users 259172 Jul 24 19:29 decode_tm6000
>> -rwxr-xr-x 1 seiderer users  13988 Jul 24 19:29 ivtv-ctl
>> -rwxr-xr-x 1 seiderer users 198868 Jul 24 19:29 ir-ctl
>> -rwxr-xr-x 1 seiderer users  12240 Jul 24 19:29 cx18-ctl
>> -rwxr-xr-x 1 seiderer users 215068 Jul 24 19:29 ir-keytable
>> -rwxr-xr-x 1 seiderer users  53452 Jul 24 19:29 media-ctl
>> -rwxr-xr-x 1 seiderer users 206532 Jul 24 19:29 v4l2-compliance
>> -rwxr-xr-x 1 seiderer users 265676 Jul 24 19:29 v4l2-ctl
>> -rwxr-xr-x 1 seiderer users 188496 Jul 24 19:29 v4l2-sysfs-path
>> -rwxr-xr-x 1 seiderer users 154228 Jul 24 19:29 cec-ctl
>> -rwxr-xr-x 1 seiderer users 122344 Jul 24 19:29 cec-compliance
>> -rwxr-xr-x 1 seiderer users  69860 Jul 24 19:29 cec-follower

That is OK, you have the compliancy tools.

>>
>> 	$ ls -ltr target/usr/lib
>> drwxr-xr-x 3 seiderer users    4096 Jul 11 19:06 libv4l
>> -rwxr-xr-x 1 seiderer users   39408 Jul 11 19:06 libv4l2.so.0.0.0
>> -rwxr-xr-x 1 seiderer users   17032 Jul 11 19:06 libv4l1.so.0.0.0
>> -rwxr-xr-x 1 seiderer users  105432 Jul 11 19:06 libv4lconvert.so.0.0.0
>> -rwxr-xr-x 1 seiderer users   18384 Jul 11 19:06 libv4l2rds.so.0.0.0
>>
> 
> Ups, mind the timestamps, libraries are from a previous build...with your
> patch no libraries are build/installed...

That is also intentional, no libv4l if no fork() & dlopen().

Please note that before the commit "package/libv4l: build of v4l2 
utilities on noMMU", nothing was built at all (utilities and libraries) 
on no-MMU platforms due to dependency on BR2_USE_MMU.

> 
> Regards,
> Peter
> 
>> Thanks for your efforts...
>>
>> Regards,
>> Peter
>>

Thanks for testing, I will push the fix now.

BR,
Hugues.


More information about the buildroot mailing list