Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dv, bazel] : run opentitantool with shared libs outside system lib path
This commit enables opentitantool to find and link to its library dependencies like libftdi, libusb, libudev that are installed in user's work area. This is particularly useful when the user's compute enironment does not have these libraries preinstalled as part of the system and the user doesn't have root permissions to install these libraries using syatem package managers. While the custom paths to the headers and shared libs needed for building the opentitantool can be specified by setting the PKG_CONFIG_PATH environment variable through the bazel build action_env property in site specific .bazelrc-site file, these paths are not available in the bazel sandbox that runs the opentitantool to generate the otp json. for example, bazel build //hw/ip/otp_ctrl/data:otp_json_alert_digest_cfg. Attempts to pass in the user provided LD_LIBRARY_PATH using the bazel build action_env fail as this doesn't get propagated to the bazel subcommand that runs the opentitantool. Hence adding use_default_shell_env = True which then allows the LD_LIBRARY_PATH specified via the action_env to be made available to the opentitantool run sandbox. Signed-off-by: Venkat Krishnan <[email protected]>
- Loading branch information