<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 5 févr. 2020 08 h 04, Kieran Bingham <<a href="mailto:kieran.bingham@ideasonboard.com">kieran.bingham@ideasonboard.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">When developing and testing libcamera, the usual development model is to<br>
compile and run one of the test or utility applications.<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I like it. Be aware that it won't work for me. It only work if the build path matches run path, which isn't the case when cross compiling and exporting over NFS. Any suggestion ?</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
IPA modules are loaded by the IPAManager, from a system path, or by parsing an<br>
environment variable.<br>
<br>
Provide the build path to the library through a temporary storage in the<br>
runpath of the ELF library strings table.  This entry is stripped at install<br>
time, but allows us to identify the location of the recently compiled IPA<br>
modules without the user having to manually declare paths to the build system.<br>
<br>
Previously to this series the IPA tests would only be able to be run from the<br>
root of the build tree, due to the hardcoded path relative to that point. Now<br>
that the IPAs can be found from their build location, we no longer need to<br>
provide this hardcoded path through the LIBCAMERA_IPA_MODULE_PATH for tests,<br>
and as a further consequence they can be run directly without requiring the<br>
launch to be run from the top level of the build tree.<br>
<br>
Kieran Bingham (5):<br>
  libcamera: utils: Provide helper to get dynamic library runpath<br>
  libcamera: ipa_manager: Split path handling<br>
  libcamera: ipa_manager: Allow recursive parsing<br>
  libcamera: ipa_manager: Search the runpath for IPA libraries<br>
  tests: Remove IPA_MODULE_PATH environment variable<br>
<br>
 src/libcamera/include/ipa_manager.h |   5 +-<br>
 src/libcamera/include/utils.h       |   1 +<br>
 src/libcamera/ipa_manager.cpp       | 111 ++++++++++++++++++++++------<br>
 src/libcamera/meson.build           |   1 +<br>
 src/libcamera/utils.cpp             |  26 +++++++<br>
 src/meson.build                     |   7 ++<br>
 test/libtest/test.cpp               |   4 -<br>
 7 files changed, 126 insertions(+), 29 deletions(-)<br>
<br>
-- <br>
2.20.1<br>
<br>
_______________________________________________<br>
libcamera-devel mailing list<br>
<a href="mailto:libcamera-devel@lists.libcamera.org" target="_blank" rel="noreferrer">libcamera-devel@lists.libcamera.org</a><br>
<a href="https://lists.libcamera.org/listinfo/libcamera-devel" rel="noreferrer noreferrer" target="_blank">https://lists.libcamera.org/listinfo/libcamera-devel</a><br>
</blockquote></div></div></div>