[libcamera-devel] meson: libcamera: Report IPA signature method
diff mbox series

Message ID 20230130225435.2318236-1-kieran.bingham@ideasonboard.com
State Accepted
Headers show
Series
  • [libcamera-devel] meson: libcamera: Report IPA signature method
Related show

Commit Message

Kieran Bingham Jan. 30, 2023, 10:54 p.m. UTC
Use the Configuration section to report which dependency is used to
handle IPA module signatures.

In the event that it is not found, report directly in the configuration
that modules are Isolated.

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/libcamera/meson.build | 3 +++
 1 file changed, 3 insertions(+)

Comments

Laurent Pinchart Feb. 6, 2023, 6:40 p.m. UTC | #1
Hi Kieran,

Thank you for the patch.

On Mon, Jan 30, 2023 at 10:54:35PM +0000, Kieran Bingham via libcamera-devel wrote:
> Use the Configuration section to report which dependency is used to
> handle IPA module signatures.
> 
> In the event that it is not found, report directly in the configuration
> that modules are Isolated.
> 
> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
> ---
>  src/libcamera/meson.build | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
> index 9869bfe77c78..dbf7f016e1b4 100644
> --- a/src/libcamera/meson.build
> +++ b/src/libcamera/meson.build
> @@ -90,6 +90,9 @@ endif
>  
>  if not libcrypto.found()
>      warning('Neither gnutls nor libcrypto found, all IPA modules will be isolated')
> +    summary({'IPA Signatures': 'Isolated'}, section: 'Configuration')

s/Signatures/signatures/ to match the other summary entries.

> +else
> +    summary({'IPA Signatures': libcrypto.name()}, section: 'Configuration')

Same here.

>  endif

Clearly nitpicking, "IPA Signatures: Isolated" sounds a bit weird. How
about

    summary({'IPA modules signed with': 'None (modules will run isolated)'}, section: 'Configuration')
else
    summary({'IPA modules signed with': libcrypto.name()}, section: 'Configuration')
endif

Feel free to adjust or keep your original version.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

>  
>  if liblttng.found()
Umang Jain Feb. 7, 2023, 8:15 p.m. UTC | #2
Hi,

On 2/7/23 12:10 AM, Laurent Pinchart via libcamera-devel wrote:
> Hi Kieran,
>
> Thank you for the patch.
>
> On Mon, Jan 30, 2023 at 10:54:35PM +0000, Kieran Bingham via libcamera-devel wrote:
>> Use the Configuration section to report which dependency is used to
>> handle IPA module signatures.
>>
>> In the event that it is not found, report directly in the configuration
>> that modules are Isolated.
>>
>> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
>> ---
>>   src/libcamera/meson.build | 3 +++
>>   1 file changed, 3 insertions(+)
>>
>> diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
>> index 9869bfe77c78..dbf7f016e1b4 100644
>> --- a/src/libcamera/meson.build
>> +++ b/src/libcamera/meson.build
>> @@ -90,6 +90,9 @@ endif
>>   
>>   if not libcrypto.found()
>>       warning('Neither gnutls nor libcrypto found, all IPA modules will be isolated')
>> +    summary({'IPA Signatures': 'Isolated'}, section: 'Configuration')
> s/Signatures/signatures/ to match the other summary entries.
>
>> +else
>> +    summary({'IPA Signatures': libcrypto.name()}, section: 'Configuration')
> Same here.
>
>>   endif
> Clearly nitpicking, "IPA Signatures: Isolated" sounds a bit weird. How
> about
>
>      summary({'IPA modules signed with': 'None (modules will run isolated)'}, section: 'Configuration')

One related term is 'sandbox' so few suggestions below:

     summary({'IPA modules signed with': 'None (modules will run in sandbox)'}, section: 'Configuration')
     summary({'IPA modules signed with': 'None (modules will be sandboxed)'}, section: 'Configuration')


> else
>      summary({'IPA modules signed with': libcrypto.name()}, section: 'Configuration')
> endif
>
> Feel free to adjust or keep your original version.
>
> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>

>
>>   
>>   if liblttng.found()

Patch
diff mbox series

diff --git a/src/libcamera/meson.build b/src/libcamera/meson.build
index 9869bfe77c78..dbf7f016e1b4 100644
--- a/src/libcamera/meson.build
+++ b/src/libcamera/meson.build
@@ -90,6 +90,9 @@  endif
 
 if not libcrypto.found()
     warning('Neither gnutls nor libcrypto found, all IPA modules will be isolated')
+    summary({'IPA Signatures': 'Isolated'}, section: 'Configuration')
+else
+    summary({'IPA Signatures': libcrypto.name()}, section: 'Configuration')
 endif
 
 if liblttng.found()