diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-12 19:24:23 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-05-13 22:06:43 +0300 |
commit | 924778eb073c47a0defc7319e98029c712129ede (patch) | |
tree | 441d509df8c7a921a023edab3f1e2f02ff1e237a /src/ipa/meson.build | |
parent | e8655c2161a97261971ef19621a34651980b76d6 (diff) |
ipa: Only sign IPA modules that are being installed
The ipa-sign-install.sh script, run when installing libcamera, signs all
IPA modules present in the module directory. This would result in
third-party modules being signed if any are present in the directory.
Fix it by explicitly passing the list of IPA modules to the
ipa-sign-install.sh script.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Diffstat (limited to 'src/ipa/meson.build')
-rw-r--r-- | src/ipa/meson.build | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ipa/meson.build b/src/ipa/meson.build index 64deb601..ab73c347 100644 --- a/src/ipa/meson.build +++ b/src/ipa/meson.build @@ -21,10 +21,12 @@ subdir('libipa') ipa_sign = files('ipa-sign.sh') ipas = ['raspberrypi', 'rkisp1', 'vimc'] +ipa_names = [] foreach pipeline : get_option('pipelines') if ipas.contains(pipeline) subdir(pipeline) + ipa_names += join_paths(ipa_install_dir, ipa_name + '.so') endif endforeach @@ -33,6 +35,6 @@ if ipa_sign_module # .sign files, as meson strips the DT_RPATH and DT_RUNPATH from binaries at # install time, which invalidates the signatures. meson.add_install_script('ipa-sign-install.sh', - ipa_install_dir, - ipa_priv_key.full_path()) + ipa_priv_key.full_path(), + ipa_names) endif |