diff options
author | Kaaira Gupta <kgupta@es.iitr.ac.in> | 2020-03-19 21:31:40 +0530 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-03-19 19:04:32 +0200 |
commit | 1b8ac8473c948ee7f5956ea0a71ad264a4485db4 (patch) | |
tree | 1bbf8a0df9e381f0a13572a81933a80e0be1d8d5 /utils/ipu3/ipu3-process.sh | |
parent | 6c34a2d386ac99d3732147fe65d0a2cb69ec3856 (diff) |
libcamera: utils: Adapt libcameraPath to match use cases
The two callers of functions libcameraPath() and isLibcameraInstalled()
end up using the same process and finally use the path with
libcamera.so. Hence write a function libcameraBuildPath() which
combines their functions and returns the root of the build sources
when the library has not been installed, but is running from the build
tree, thereby making call sites simpler.
When the library is installed, libcameraBuildPath() will return an empty
string.
Make changes in the call sites accordingly.
Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'utils/ipu3/ipu3-process.sh')
0 files changed, 0 insertions, 0 deletions