History log of /openbmc/phosphor-power/meson.build (Results 1 – 25 of 51)
Revision Date Author Comments
# 516e22fe 01-Feb-2025 Patrick Williams <patrick@stwcx.xyz>

meson: reformat with meson formatter

Apply the `meson format` results.

Change-Id: Ie0fb147f556c18eb226736dd9b688afba5636a9b
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>


# b59b1fa2 06-Dec-2024 Jayanth Othayoth <ojayanth@gmail.com>

clang-tidy: Suppress move assignment warning

The following error was reported during clang-tidy enablement due to
the explicitly defaulted move assignment operator being implicitly
deleted. This tem

clang-tidy: Suppress move assignment warning

The following error was reported during clang-tidy enablement due to
the explicitly defaulted move assignment operator being implicitly
deleted. This temporary fix suppresses the warning using Meson build
configuration until a permanent solution is implemented.

'''
phosphor-regulators/src/config_file_parser_error.hpp:39:28:
error: explicitly defaulted move assignment operator is implicitly deleted [-Werro
phosphor-regulators/src/pmbus_error.hpp:38:17:
error: explicitly defaulted move assignment operator is implicitly deleted [-Werror
phosphor-regulators/src/write_verification_error.hpp:41:29:
error: explicitly defaulted move assignment operator is implicitly deleted [-Werror
pmbus.hpp:216:12: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror
gpio.hpp:53:11: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror
pmbus.hpp:214:12: error: explicitly defaulted copy assignment operator is implicitly deleted [-Werror
device.hpp:25:13: error: explicitly defaulted move assignment operator is implicitly deleted [-Werror
phosphor-power-sequencer/src/config_file_parser_error.hpp:37:28:
error: explicitly defaulted copy assignment operator is implicitly deleted [-Werror
power-sequencer/mihawk-cpld.hpp:32:17:
error: explicitly defaulted move assignment operator is implicitly deleted [-Werror
power-sequencer/ucd90160.hpp:38:15:
error: explicitly defaulted move assignment operator is implicitly deleted [-Werror
'''

Tested: Verified build and unit testing.

Change-Id: I123e7ba0fdcd7d3e8f74c8e333a3294046a152d7
Signed-off-by: Jayanth Othayoth <ojayanth@gmail.com>

show more ...


# df2f4cb8 03-Sep-2024 Patrick Williams <patrick@stwcx.xyz>

meson: switch code dependency to libsystemd

For a while now systemd has packaged a separate `libsystemd`. For
meson dependency, `systemd` should be used when looking for systemd
service file paths

meson: switch code dependency to libsystemd

For a while now systemd has packaged a separate `libsystemd`. For
meson dependency, `systemd` should be used when looking for systemd
service file paths and `libsystemd` should be used for `sd_*` functions.

Update the dependency accordingly.

Change-Id: Ia48b6da8923f2955e88819120f1bfc464fec2c97
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 768d2269 09-Jul-2024 Shawn McCarney <shawnmm@us.ibm.com>

Move to std::format

The OpenBMC project is moving from the fmt project to the built-in
std::format() support.

Update source files and meson files to move to std::format().

Tested:
* Verified build

Move to std::format

The OpenBMC project is moving from the fmt project to the built-in
std::format() support.

Update source files and meson files to move to std::format().

Tested:
* Verified builds cleanly in local CI
* Verified all automated tests run successfully
* Verified builds cleanly in bitbake
* Verified an affected phosphor-psu-monitor journal message still works
correctly.
* Verified an affected phosphor-power-sequencer journal message still
works correctly.

Change-Id: I97b63cf9d132e2b6f173afb30953a9083d68133f
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>

show more ...


# 3cc348ce 29-May-2024 Shawn McCarney <shawnmm@us.ibm.com>

Create class for finding compatible system types

Create class for finding the list of compatible system types for the
current system.

Use the new D-Bus interface
xyz.openbmc_project.Inventory.Decor

Create class for finding compatible system types

Create class for finding the list of compatible system types for the
current system.

Use the new D-Bus interface
xyz.openbmc_project.Inventory.Decorator.Compatible to find the system
types.

Tested:
* See test plan at
https://gist.github.com/smccarney/7bfc20b258cd6ccfba908730102a32dd

Change-Id: I47063642a601991aac8e63f39d8d1f29c4896db0
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>

show more ...


# 98f42947 24-May-2024 Shawn McCarney <shawnmm@us.ibm.com>

Create class for finding D-Bus interfaces

Create a class for finding instances of D-Bus interfaces. The class
finds existing instances using the ObjectMapper. It also finds new
instances using an

Create class for finding D-Bus interfaces

Create a class for finding instances of D-Bus interfaces. The class
finds existing instances using the ObjectMapper. It also finds new
instances using an InterfacesAdded listener.

Tested:
* See test plan at
https://gist.github.com/smccarney/67d7719f0cf9cea2d134b0796aa408da

Change-Id: Ia6fba9cb69ad73607dc971dd6d63ba2efecabe0d
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>

show more ...


# de5434d8 22-May-2024 Shawn McCarney <shawnmm@us.ibm.com>

Create TemporarySubDirectory class

Create class that automatically creates and deletes a temporary
subdirectory.

The subdirectory will be located beneath the system temporary directory
(such as /tm

Create TemporarySubDirectory class

Create class that automatically creates and deletes a temporary
subdirectory.

The subdirectory will be located beneath the system temporary directory
(such as /tmp).

Change-Id: Id14d33b47658f144ad17c6741ec36f58492a88e2
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>

show more ...


# 5f51444d 04-Jan-2024 Shawn McCarney <shawnmm@us.ibm.com>

Move TemporaryFile class to root directory

Source code that is shared across applications is located in the root
directory of the phosphor-power repository.

The TemporaryFile class was originally c

Move TemporaryFile class to root directory

Source code that is shared across applications is located in the root
directory of the phosphor-power repository.

The TemporaryFile class was originally created for the
phosphor-regulators application. However it is general purpose and is
now needed by the phosphor-power-sequencer application.

Move the TemporaryFile class to the root directory. Update C++ files
that use the TemporaryFile class since it is now in a different
namespace. Update affected meson.build files.

Change-Id: I6d18080d2436a5da87b7ab51ac003c503caa36a3
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com>

show more ...


# d694d8fc 07-Dec-2023 Patrick Williams <patrick@stwcx.xyz>

meson: adjust nlohmann-json dependency

Simplify the dependency detection logic and align the wrap file name
with other repositories.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I

meson: adjust nlohmann-json dependency

Simplify the dependency detection logic and align the wrap file name
with other repositories.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I93c52a9c4de5fedb47d396ebe12bccbaad701728

show more ...


# 5c6a693e 29-Nov-2023 Patrick Williams <patrick@stwcx.xyz>

build: use allowed over enabled

Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer retur

build: use allowed over enabled

Meson feature options are typically in a tri-state of enabled, disabled,
or auto. The enabled and disabled functions on an option (from
`get_option`) no longer return true for auto features. Instead, the
expectation is to use `allowed()` which is true for both enabled and auto.

Switch all uses of `enabled` to `allowed`.

Change-Id: I37fcb391dcb215a86a60c26f7512f6ccb8312dc4
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# b0475e7a 17-Jul-2023 Matt Spinler <spinler@us.ibm.com>

Update nlohmann-json subproject handling

Without this, a build with subprojects would fail with:

```
meson.build:89:24: ERROR: Include dir subprojects/nlohmann-json/single_include does not exist.
`

Update nlohmann-json subproject handling

Without this, a build with subprojects would fail with:

```
meson.build:89:24: ERROR: Include dir subprojects/nlohmann-json/single_include does not exist.
```

Change-Id: I26e26a7a0473ffb163fc4ca9f1ac291f13de261e
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...


# 6f499e68 14-Aug-2023 George Liu <liuxiwei@inspur.com>

meson: Replace configure_file with fs.copyfile

configure_file is deprecated since 0.64.0, and replace it with
fs.copyfile.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I6eacc451a8eb9f

meson: Replace configure_file with fs.copyfile

configure_file is deprecated since 0.64.0, and replace it with
fs.copyfile.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: I6eacc451a8eb9f4597f2f42240e5091f8eacc9ba

show more ...


# d3de3643 17-Jul-2023 Matt Spinler <spinler@us.ibm.com>

Fix fmt subproject handling

Without this standalone builds were failing with:

meson.build:70:6: ERROR: Dependency 'fmt' is required but not found.

Change-Id: Ic85937bdfb5a6c837df844e2eb26331a9b6eb

Fix fmt subproject handling

Without this standalone builds were failing with:

meson.build:70:6: ERROR: Dependency 'fmt' is required but not found.

Change-Id: Ic85937bdfb5a6c837df844e2eb26331a9b6eb755
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...


# 220c246a 17-Jul-2023 Matt Spinler <spinler@us.ibm.com>

Add googletest wrap

Add the wrap so tests can be done standalone.

The "'BUILD_SHARED_LIBS': 'ON'" option is needed or else stdplus, which
is indirectly pulled in as a subproject, fails with:

```
s

Add googletest wrap

Add the wrap so tests can be done standalone.

The "'BUILD_SHARED_LIBS': 'ON'" option is needed or else stdplus, which
is indirectly pulled in as a subproject, fails with:

```
subprojects/stdplus/src/meson.build:207:22: ERROR: Can't link non-PIC static library 'gtest' into shared library 'stdplus-gtest'.
Use the 'pic' option to static_library to build with PIC.
```

Change-Id: Ia1847cab885e2b6adb72bec08621f5d154990e79
Signed-off-by: Matt Spinler <spinler@us.ibm.com>

show more ...


# 5d79d36a 12-Jul-2023 Patrick Williams <patrick@stwcx.xyz>

build: upgrade to C++23

Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of
the standard has been implemented. Upgrade the build to leverage it.

Change-Id: I2611b11724b134077becb

build: upgrade to C++23

Meson 1.1.1 and GCC-13 both support C++23 and a sufficient portion of
the standard has been implemented. Upgrade the build to leverage it.

Change-Id: I2611b11724b134077becb1c193a94a2f50e5b685
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 888bebde 31-May-2023 Patrick Williams <patrick@stwcx.xyz>

meson: add necessary subprojects

Add subprojects for all the direct dependencies of the project such
that the project can be built outside of a Yocto SDK on a typical
Linux development system.

-

meson: add necessary subprojects

Add subprojects for all the direct dependencies of the project such
that the project can be built outside of a Yocto SDK on a typical
Linux development system.

- Update the .gitignore to ignore the subproject source directories.
- Update the .gitignore to ignore alternative build subdirectory
names as is typical with most projects in the openbmc organization.
- Add wrap files for direct dependencies, copied from other
repositories that already have the same dependencies.
- Modify the meson.build dependency for libgpiod so that the C++
bindings are included.
- Add many missing dependencies throughout.
- Sort all dependencies alphabetically for consistency.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I0feb6f0f175e6dba0b00a2c2b666eb0801575734

show more ...


# 683c8b04 31-May-2023 Patrick Williams <patrick@stwcx.xyz>

meson: remove cppfs dependency

The dependency on the c++fs library is something very old from the C++14
era and is no longer necessary with a modern compiler. Remove the
explicit dependency from th

meson: remove cppfs dependency

The dependency on the c++fs library is something very old from the C++14
era and is no longer necessary with a modern compiler. Remove the
explicit dependency from the meson setup.

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ia6aaf743a142f0b460c7f14dfa8bae3dbcd2be83

show more ...


# 95f6aab2 12-Apr-2023 Patrick Williams <patrick@stwcx.xyz>

meson: remove deprecated get_pkgconfig_variable

Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In
meson 0.58 the `get_variable` was enhanced to no longer require the
`pkgconfig

meson: remove deprecated get_pkgconfig_variable

Since meson 0.56, the `get_pkgconfig_variable` has been deprecated. In
meson 0.58 the `get_variable` was enhanced to no longer require the
`pkgconfig` keyword argument. Ensure meson 0.58 is required and update
the usage of all `get_pkgconfig_variable` and `get_variable` to be the
modern variant.

Change-Id: I5c96e289619a9677867d3fcf4a7b690d370b80c2
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 96593383 27-Feb-2023 George Liu <liuxiwei@inspur.com>

meson: Fix deprecated meson warnings

Fix the warnings related to deprecated meson functions:

WARNING: Project targeting '>= 0.57.0' but tried to use feature
deprecated since '0.56.0': Dependency.ge

meson: Fix deprecated meson warnings

Fix the warnings related to deprecated meson functions:

WARNING: Project targeting '>= 0.57.0' but tried to use feature
deprecated since '0.56.0': Dependency.get_pkgconfig_variable. use
Dependency.get_variable(pkgconfig : ...) instead
WARNING: Project targeting '>= 0.57.0' but tried to use feature
deprecated since '0.56.0': meson.source_root. use
meson.project_source_root() or meson.global_source_root() instead.

Tested: Verify that there are no such warnings in local CI.

Signed-off-by: George Liu <liuxiwei@inspur.com>
Change-Id: Id076918558f8988c9aa5275cf6585ffc51aa1d9e

show more ...


# 18a24d92 19-Apr-2022 Brandon Wyman <bjwyman@gmail.com>

psu-ng: INPUT_HISTORY syncHistory

Add in the function that syncs the power supply input history data
between all the installed power supplies.

Use the GPIO line name instead of gpiochip and number.

psu-ng: INPUT_HISTORY syncHistory

Add in the function that syncs the power supply input history data
between all the installed power supplies.

Use the GPIO line name instead of gpiochip and number. Use libgpiod via
helper utility. Create a toggleLowHigh() to use for synchronizing the
input history.

Add in indicator and helper functions to indicate a syncHistory is
needed if a power supply goes from missing to present.

Trace when syncHistory is called. This should be infrequent enough that
I do not think it would be a problem.

Initial testing on Rainier 2S2U did not need a lengthy delay between
lowering and raising the power-ffs-sync-history GPIO, but testing on
Rainier 2S4u required a longer delay.

Depends-On: Ib1ac2456f7f715360d089dfa4b6b379b516439ab

Change-Id: I022806155139d70fb4a42cc27eb9f279f6a3aedc
Signed-off-by: Brandon Wyman <bjwyman@gmail.com>

show more ...


# 5f99bc02 28-Jan-2022 Jim Wright <jlwright@us.ibm.com>

pseq: Add service file

Add service file for power control and power sequence monitoring
combined application. Change meson build files to support.

Signed-off-by: Jim Wright <jlwright@us.ibm.com>
Ch

pseq: Add service file

Add service file for power control and power sequence monitoring
combined application. Change meson build files to support.

Signed-off-by: Jim Wright <jlwright@us.ibm.com>
Change-Id: I0c06b0b66c7d02145516564dc98123a4633498b3

show more ...


# b837887c 06-Oct-2021 Patrick Williams <patrick@stwcx.xyz>

build: switch to C++20

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ibf1de88c53762a85f105b7b3a9fbe71a434af3c5


# 681b2a36 20-Apr-2021 B. J. Wyman <bjwyman@gmail.com>

psu-ng: Add in ability to get presence via GPIO

The device tree and entity-manager (D-Bus) properties have the power
supply GPIO presence lines named, so we can use those GPIO line names to
find the

psu-ng: Add in ability to get presence via GPIO

The device tree and entity-manager (D-Bus) properties have the power
supply GPIO presence lines named, so we can use those GPIO line names to
find the GPIO device to read for determining power supply presence.

Some systems have the power supply presence lines in a gpio-keys section
(notably IBM Rainier). To facilitate continued function while running
with a device tree that has not removed those device tree entries, allow
for a fallback to the old inventory D-Bus propertiesChanged or
interfaceAdded matches for presence.

Change-Id: I5002aa62e5b460463cc26328c889a3786b467a3c
Signed-off-by: B. J. Wyman <bjwyman@gmail.com>

show more ...


# 1553cd9a 31-Mar-2021 Jim Wright <jlwright@us.ibm.com>

pseq: Create phosphor-power-sequencer application

Create the initial version of the phosphor-power-sequencer application.

Update or create meson and README files to support.

Signed-off-by: Jim Wri

pseq: Create phosphor-power-sequencer application

Create the initial version of the phosphor-power-sequencer application.

Update or create meson and README files to support.

Signed-off-by: Jim Wright <jlwright@us.ibm.com>
Change-Id: I385358cc601448a35b3aae9bfa1c6488f1512c59

show more ...


# 81d6cde4 09-Mar-2021 Brandon Wyman <bjwyman@gmail.com>

Fix SDK build issue due to updated arm-sdk

After a recent change to enable security flags:
d47f9a099a4ef992351237b0f2f562b5dc843397
compilation of the code in this repository with the arm-sdk result

Fix SDK build issue due to updated arm-sdk

After a recent change to enable security flags:
d47f9a099a4ef992351237b0f2f562b5dc843397
compilation of the code in this repository with the arm-sdk results in
error messages from FORTIFY_SOURCE, which only compiles with
optimization levels 1 and 2.

Change the default build type to debugoptimized.

Reference changes:
I910256c3aeffcbab0cbc33ced541b90576ce4151
Ic1a91e58253fed283f67c44989fbc9126e18b7fe
I7eb1cdd23a8b4d8674de7d403b41114a44b8984c

Tested:
SDK build with arm-sdk passes.
Bitbake build passes.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I3f4bbd73a2db25d4414187f0d8ef5ab3dcbc1554

show more ...


123