path: root/src/libcamera
diff options
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-08-07 01:12:07 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-08-09 16:05:58 +0300
commitfe6703247118b04fe09e677f99b428dc40393655 (patch)
tree754a87583e55a6b9d17f6020d1ea0d1cad9eb331 /src/libcamera
parent12f48aa65e45a50bba6df07db56b77ccfbdb3f77 (diff)
libcamera: Make IPA module signing recommended instead of mandatory
Commit b382f67c833d ("libcamera: Make IPA module signing mandatory for the meantime") made openssl and gnutls dependencies mandatory to work around the lack of proper IPA module isolation support, which broke operation without module signatures. This has now been fixed, so IPA module isolation isn't strictly required anymore. There are few use cases for disabling module signing completely, given that the openssl or gnutls dependencies are available on the vast majority of systems and the overheard introduced by isolating all IPA modules when signatures are not available is better avoided. Nonetheless, libcamera should operate properly with forced IPA module isolation, so we can support those use cases. Adopt a middle-ground approach to avoid unintentional isolation by documenting the dependencies as recommended, and warn at meson setup time if they are not found. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Eric Curtin <ecurtin@redhat.com> Reviewed-by: Eric Curtin <ecurtin@redhat.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/libcamera')
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index 1f02494a..ce1f0f2f 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -73,8 +73,14 @@ libcrypto = dependency('gnutls', required : false)
if libcrypto.found()
config_h.set('HAVE_GNUTLS', 1)
- libcrypto = dependency('libcrypto', required : true)
- config_h.set('HAVE_CRYPTO', 1)
+ libcrypto = dependency('libcrypto', required : false)
+ if libcrypto.found()
+ config_h.set('HAVE_CRYPTO', 1)
+ endif
+if not libcrypto.found()
+ warning('Neither gnutls nor libcrypto found, all IPA modules will be isolated')
if liblttng.found()

Privacy Policy