Searched hist:"670 d92a7" (Results 1 – 3 of 3) sorted by relevance
/openbmc/phosphor-hwmon/ |
H A D | meson.options | 670d92a7 Mon Jul 22 15:52:02 CDT 2024 Matt Spinler <spinler@us.ibm.com> Provide option to always use device path
The application has the ability to use either the 'OF_FULLNAME' udev environment variable or the udev device path as the path to the config file, though it defaults to OF_FULLNAME if it's there.
The disadvantage of using OF_FULLNAME is that the file name then has to match what someone manually typed into the device tree for the system, for example mydevice@72.conf. The device path method, on the other hand, has a file name that matches the stable I2C details, such as 7-0052.conf.
To force phosphor-hwmon to always use the device path for its config and avoid being dependent on the device tree name, this commits adds a new --always-use-devpath meson option.
When enabled, it add an '|| true' into the start_hwmon.sh script to force it down the path to use the device path when starting the hwmon service.
Tested: When disabled, diffed start_hwmon.sh to that built from previous HEAD and the files matched.
When enabled, start_hwmon.sh now has ``` if [ -z "${path}" ] || true ```
and app now uses device path for config file path.
Change-Id: I5a03ebb6e6e967bc663ec747941258173dfd3363 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
H A D | start_hwmon.sh.in | 670d92a7 Mon Jul 22 15:52:02 CDT 2024 Matt Spinler <spinler@us.ibm.com> Provide option to always use device path
The application has the ability to use either the 'OF_FULLNAME' udev environment variable or the udev device path as the path to the config file, though it defaults to OF_FULLNAME if it's there.
The disadvantage of using OF_FULLNAME is that the file name then has to match what someone manually typed into the device tree for the system, for example mydevice@72.conf. The device path method, on the other hand, has a file name that matches the stable I2C details, such as 7-0052.conf.
To force phosphor-hwmon to always use the device path for its config and avoid being dependent on the device tree name, this commits adds a new --always-use-devpath meson option.
When enabled, it add an '|| true' into the start_hwmon.sh script to force it down the path to use the device path when starting the hwmon service.
Tested: When disabled, diffed start_hwmon.sh to that built from previous HEAD and the files matched.
When enabled, start_hwmon.sh now has ``` if [ -z "${path}" ] || true ```
and app now uses device path for config file path.
Change-Id: I5a03ebb6e6e967bc663ec747941258173dfd3363 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|
H A D | meson.build | 670d92a7 Mon Jul 22 15:52:02 CDT 2024 Matt Spinler <spinler@us.ibm.com> Provide option to always use device path
The application has the ability to use either the 'OF_FULLNAME' udev environment variable or the udev device path as the path to the config file, though it defaults to OF_FULLNAME if it's there.
The disadvantage of using OF_FULLNAME is that the file name then has to match what someone manually typed into the device tree for the system, for example mydevice@72.conf. The device path method, on the other hand, has a file name that matches the stable I2C details, such as 7-0052.conf.
To force phosphor-hwmon to always use the device path for its config and avoid being dependent on the device tree name, this commits adds a new --always-use-devpath meson option.
When enabled, it add an '|| true' into the start_hwmon.sh script to force it down the path to use the device path when starting the hwmon service.
Tested: When disabled, diffed start_hwmon.sh to that built from previous HEAD and the files matched.
When enabled, start_hwmon.sh now has ``` if [ -z "${path}" ] || true ```
and app now uses device path for config file path.
Change-Id: I5a03ebb6e6e967bc663ec747941258173dfd3363 Signed-off-by: Matt Spinler <spinler@us.ibm.com>
|