commit | 521b93c373320a60ebbd845261934b207dc93846 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Sat Apr 19 12:39:38 2025 -0400 |
committer | Patrick Williams <patrick@stwcx.xyz> | Mon Apr 21 11:03:08 2025 -0400 |
tree | 04cf8a25c49b06c7676676c84e14effba9247f59 | |
parent | caa889e905af4f433289daff701285eb19597e9e [diff] [blame] |
phosphor-bmc-side-switch: move to libexec Non-user executables are suppose to be installed into libexec[1]. [1]: https://github.com/openbmc/docs/blob/master/anti-patterns.md#incorrect-placement-of-executables-in-sbin-usrsbin-or-bin-usrbin Tested: ``` $ meson install -C builddir --destdir /tmp/phosphor-bmc-code-mgmt $ find /tmp/phosphor-bmc-code-mgmt/ -name phosphor-bmc-side-switch /tmp/phosphor-bmc-code-mgmt/usr/local/libexec/phosphor-bmc-code-mgmt/phosphor-bmc-side-switch ``` Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ifbfbc598603e7606e4a1d2d832a467796cd11fde
diff --git a/bmc/side-switch/meson.build b/bmc/side-switch/meson.build index 4eda07a..e04a456 100644 --- a/bmc/side-switch/meson.build +++ b/bmc/side-switch/meson.build
@@ -6,7 +6,7 @@ include_directories: ['..'], dependencies: [phosphor_logging_dep], install: true, - install_dir: get_option('bindir'), + install_dir: get_option('libexecdir') / 'phosphor-code-mgmt', ) systemd_system_unit_dir = dependency('systemd').get_variable(