buildroot/package/libcamera
Quentin Schulz fc54c57625 package/libcamera: add explicit dependency on libevent if libevent package to be built
The cam application requires libevent. Since there's no Kconfig option
for it, cam building ability is checked by meson build system by default.

If libevent is present in the sysroot, cam is built.

The issue is that there's no explicit dependency on libevent in
libcamera package. This means that it is possible for libevent AND
libcamera to be built, but have libcamera be built before libevent.
Meaning that even if all requirements seem to be fulfilled, cam still
won't be enabled in some cases.

This fixes the possible race by expliciting the dependency to libevent
if the libevent package is enabled. Otherwise, explicitly disable cam
building as it's already known that it isn't going to build.

Cc: Quentin Schulz <foss+buildroot@0leil.net>
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 030baf89fc)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-08-09 16:51:12 +02:00
..
Config.in package/gtest: needs gcc >= 5 2022-07-11 19:25:03 +02:00
libcamera.hash package/libcamera: bump to 1966b9a58436fab51f8270aad6a228b935e4fac4 2022-02-12 17:51:25 +01:00
libcamera.mk package/libcamera: add explicit dependency on libevent if libevent package to be built 2022-08-09 16:51:12 +02:00