#
c35b7018 |
| 04-Mar-2025 |
Patrick Williams <patrick@stwcx.xyz> |
registry: add registry_target to the external dependency
When PDI is used as a subproject, we need some dependency that indicates the registry is populated. Add the internal build rule to the prima
registry: add registry_target to the external dependency
When PDI is used as a subproject, we need some dependency that indicates the registry is populated. Add the internal build rule to the primary external dependency so any dependency on PDI satisfies the registry population.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id16b4c272a82f5451e58b271e02a622b108ffaa3
show more ...
|
#
d25367bd |
| 16-Jan-2025 |
Patrick Williams <patrick@stwcx.xyz> |
meson: remove pc_sysroot from registry_dir
The pkg-config variable 'registry_dir' is intended to represent where the Redfish Message Registries will be installed. When cross-compiling, bitbake prov
meson: remove pc_sysroot from registry_dir
The pkg-config variable 'registry_dir' is intended to represent where the Redfish Message Registries will be installed. When cross-compiling, bitbake provides meson with the `sys_root` as somewhere in the bitbake build tree, which meson then uses as an argument to pkg-config, which uses it as the `${pc_sysrootdir}` value. If we use `${pc_sysrootdir}` in the pkg-config file, it ends up being expanded as the cross-compile sysroot and not the final location. Remove the `${pc_sysroot}` portion so that the value points at the final location.
There is an argument that it is useful to have it contain the sysroot location during the compilation state. Some repositories _could_ choose to process the registry during build time, like phosphor-logging does with the `yamldir` variable. However, cross-compile environments provide an alternative way to get the sysroot, such as `meson.get_external_property('sys_root')`. Having it already included in the pkg-config makes it harder to get the install location (since you have to subtract the path, rather than add it).
Arguably, `yamldir` should also be adjusted but that will require changes in, at least, phosphor-logging that should be made separately.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I12b4ff68478583f6c2a8b438689aeb3a5d66228f
show more ...
|
#
7f154004 |
| 03-Jan-2025 |
Patrick Williams <patrick@stwcx.xyz> |
build: support registry generation
sdbus++-gen-meson version 10 adds support for redfish registry generation and greatly simplifies the install directives.
Regenerate the YAML meson files and modif
build: support registry generation
sdbus++-gen-meson version 10 adds support for redfish registry generation and greatly simplifies the install directives.
Regenerate the YAML meson files and modify the base meson.build as necessary. Also, format meson.build with `meson format`.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I77586fca7742d5468803913cb45276ca57271655
show more ...
|
#
45b095d5 |
| 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: I7bb2188a9627a7390574e
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: I7bb2188a9627a7390574e8d930bec671c15205f1 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
e9981160 |
| 09-Mar-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meta: add compatible strings for BMCs
Add 'com.meta' hierarchy for Meta (Facebook) and define compatible strings for the currently supported BMC types. This will be used to provide hardware compati
meta: add compatible strings for BMCs
Add 'com.meta' hierarchy for Meta (Facebook) and define compatible strings for the currently supported BMC types. This will be used to provide hardware compatibility on BMC update images.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ie8b914784eed88f4f9a8df8e42dfce489d473cfb
show more ...
|
#
3b861bb7 |
| 16-Jan-2023 |
Andrew Jeffery <andrew@aj.id.au> |
meson: Add dependency override for phosphor-dbus-interfaces
Resolves e.g. the following when phosphor-dbus-interfaces is specified as a subproject:
``` $ meson setup build ... phosphor-logging| WAR
meson: Add dependency override for phosphor-dbus-interfaces
Resolves e.g. the following when phosphor-dbus-interfaces is specified as a subproject:
``` $ meson setup build ... phosphor-logging| WARNING: Subproject 'phosphor-dbus-interfaces' did not override 'phosphor-dbus-interfaces' dependency and no variable name specified phosphor-logging| Dependency phosphor-dbus-interfaces from subproject subprojects/phosphor-dbus-interfaces found: NO
subprojects/phosphor-logging/meson.build:26:0: ERROR: Dependency 'phosphor-dbus-interfaces' is required but not found. ... ```
Change-Id: Ie549c377e71297e9748322be2f2e0c0153c104f7 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
show more ...
|
#
11335246 |
| 12-Sep-2022 |
Patrick Williams <patrick@stwcx.xyz> |
gen: update due to sdbusplus-gen-meson change
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I9491eb608d9c6849b3e39fe212054a3651bfb824
|
#
69292c29 |
| 23-Mar-2022 |
Patrick Williams <patrick@stwcx.xyz> |
meson: simplify dependencies
Leverage wrapfile `[provide]` directives to simplify the dependency searching in the meson.build.
Change-Id: Ibbf0b490ba9ea5dc8e171b1e6212d2d2d71b5550 Signed-off-by: Pa
meson: simplify dependencies
Leverage wrapfile `[provide]` directives to simplify the dependency searching in the meson.build.
Change-Id: Ibbf0b490ba9ea5dc8e171b1e6212d2d2d71b5550 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
2b2784a5 |
| 03-Feb-2022 |
John Edward Broadbent <jebr@google.com> |
Add Hoth interface
Create a new google namespace and add the Hoth interface to this namespace.
Signed-off-by: John Edward Broadbent <jebr@google.com> Change-Id: I001dc34ef081885b6094d3d1aab578b0d88
Add Hoth interface
Create a new google namespace and add the Hoth interface to this namespace.
Signed-off-by: John Edward Broadbent <jebr@google.com> Change-Id: I001dc34ef081885b6094d3d1aab578b0d882b53a
show more ...
|
#
36ed8ad2 |
| 16-Nov-2021 |
Jason M. Bills <jason.m.bills@linux.intel.com> |
Add interface for sending raw PECI commands
This adds a D-Bus interface to send raw PECI commands to the CPU.
Change-Id: I37c8c0b9fc713705b3afc81adca22ca313e91701 Signed-off-by: Jason M. Bills <jas
Add interface for sending raw PECI commands
This adds a D-Bus interface to send raw PECI commands to the CPU.
Change-Id: I37c8c0b9fc713705b3afc81adca22ca313e91701 Signed-off-by: Jason M. Bills <jason.m.bills@linux.intel.com>
show more ...
|
#
54ed0a11 |
| 08-Dec-2021 |
Shawn McCarney <shawnmm@us.ibm.com> |
Add UPower Device interface
Add a YAML description of the UPower Device interface defined at https://upower.freedesktop.org/docs/Device.html
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Chang
Add UPower Device interface
Add a YAML description of the UPower Device interface defined at https://upower.freedesktop.org/docs/Device.html
Signed-off-by: Shawn McCarney <shawnmm@us.ibm.com> Change-Id: Ib70d6525b913cf06da4e93a53e332487126f1db0
show more ...
|
#
90116920 |
| 01-Nov-2021 |
Jonathan Doman <jonathan.doman@intel.com> |
Fix install_subdir setup error
meson 0.60 gives the following error when attempting to setup: meson.build:100:0: ERROR: install_subdir keyword argument "exclude_files" cannot be absolute
It's due t
Fix install_subdir setup error
meson 0.60 gives the following error when attempting to setup: meson.build:100:0: ERROR: install_subdir keyword argument "exclude_files" cannot be absolute
It's due to an internal change in string path construction. See https://github.com/mesonbuild/meson/issues/9450 for a related bug report.
Technically this behavior should go away with the next meson release, but we can harden our own meson.build rather than rely on undocumented behavior regarding whether or not the trailing slash will be removed.
Tested: `meson setup` is successful with meson 0.60
Change-Id: I34a919586975dffb4cfe71e77dcca31e5902af36 Signed-off-by: Jonathan Doman <jonathan.doman@intel.com>
show more ...
|
#
0e6cea83 |
| 18-Jun-2021 |
William A. Kennington III <wak@google.com> |
build: Don't depend on sdbusplus.found()
We can't depend on this for determining if we are using sdbusplus from a subproject or not. If the project including phosphor-dbus-interfaces finds the sdbus
build: Don't depend on sdbusplus.found()
We can't depend on this for determining if we are using sdbusplus from a subproject or not. If the project including phosphor-dbus-interfaces finds the sdbusplus dependency first, this will show as found and use the wrong routine for finding the tools.
Change-Id: Id1870ecc5a330cc26ea242657255ebfe13fd0448 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
b1b4d261 |
| 05-Jun-2021 |
William A. Kennington III <wak@google.com> |
treewide: Create yaml directory
This allows the propagated yamldir paramter to work correctly in subproject style builds. We don't want other files in the project conflicting with tools that scan th
treewide: Create yaml directory
This allows the propagated yamldir paramter to work correctly in subproject style builds. We don't want other files in the project conflicting with tools that scan the yamldir.
Change-Id: Ie2759c7f3baf399392cdda0e507055ceb262d2e1 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
71892004 |
| 14-May-2021 |
William A. Kennington III <wak@google.com> |
build: Don't generate markdown for subprojects
Change-Id: Ib4351fc4601b00d54470d4069a78a2b23efb54aa Signed-off-by: William A. Kennington III <wak@google.com>
|
#
795b437d |
| 14-May-2021 |
William A. Kennington III <wak@google.com> |
build: Add headers to dependency
When we don't have this specified, dependant source code can sometimes get built in parallel prior to the headers being generated and compilation will fail.
Change-
build: Add headers to dependency
When we don't have this specified, dependant source code can sometimes get built in parallel prior to the headers being generated and compilation will fail.
Change-Id: I1e165adfb86e0978fdbf143913328ca83327c497 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
db24111a |
| 14-May-2021 |
William A. Kennington III <wak@google.com> |
build: Don't use implicit includes
Otherwise, our compiler gets littered with an include path for every single header. This creates a combinatorial explosion of paths and slows down compilation.
Ch
build: Don't use implicit includes
Otherwise, our compiler gets littered with an include path for every single header. This creates a combinatorial explosion of paths and slows down compilation.
Change-Id: Ief69e91f5e75e0c743918e473b5888e12ec5e068 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
d2180a95 |
| 14-May-2021 |
William A. Kennington III <wak@google.com> |
build: Use meson built-ins instead of realpath
realpath has to traverse filesystem metadata and is significantly slower than handling all of the exclude files in pure meson. This cuts configure time
build: Use meson built-ins instead of realpath
realpath has to traverse filesystem metadata and is significantly slower than handling all of the exclude files in pure meson. This cuts configure time by 4x.
Change-Id: I90b1b3735a12dced8e1195c7623c0ec8d21d42ed Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
8548f037 |
| 14-May-2021 |
William A. Kennington III <wak@google.com> |
build: Tools should be native
They should be pulled from the native path not the cross path.
Change-Id: Iec5cd8cbef7fc74f7171a33eda50f3175d376414 Signed-off-by: William A. Kennington III <wak@googl
build: Tools should be native
They should be pulled from the native path not the cross path.
Change-Id: Iec5cd8cbef7fc74f7171a33eda50f3175d376414 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
2600affc |
| 05-Jun-2021 |
William A. Kennington III <wak@google.com> |
build: Regenerate meson for sdbus++ update
Change-Id: I6c7b9fc22d7acf593c268713b2ef837ab983b956 Signed-off-by: William A. Kennington III <wak@google.com>
|
#
32fbd5df |
| 21-Apr-2021 |
Patrick Williams <patrick@stwcx.xyz> |
build: fix pkgconfig yamldir var again
pkgconfig's should not have a fully formed prefix but instead should use a '${prefix}' redirection. This allows alternative installed root paths, like you wou
build: fix pkgconfig yamldir var again
pkgconfig's should not have a fully formed prefix but instead should use a '${prefix}' redirection. This allows alternative installed root paths, like you would find in the OE-SDK. Without this '${prefix}', the phosphor-dbus-interfaces.pc in the SDK will have a literal '/usr/share/...' path and packages using this variable will be unable to find the SDK-relative path.
Also, since the 'yamldir' variable is intended to be used at cross-compile time (as opposed to execution time) it should similarly be prefixed by '${pc_sysrootdir}' according to [1].
Tested: Copied the generated pkgconfig into an OE-SDK (to overwrite the original one) and confirmed a successful meson build using this variable and by manually running pkgconfig:
``` $ .../sdk/sysroots/x86_64-oesdk-linux/usr/bin/pkg-config \ --variable=yamldir phosphor-dbus-interfaces
.../sdk/sysroots/arm1176jzs-openbmc-linux-gnueabi/usr/share/phosphor-dbus-yaml/yaml ```
1. https://autotools.io/pkgconfig/cross-compiling.html
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I6b078fac65aac7c642358ad73a4acf9df1594174
show more ...
|
#
30417976 |
| 17-Apr-2021 |
Patrick Williams <patrick@stwcx.xyz> |
build: fix pkgconfig yamldir var for prefix
The pkgconfig variable 'yamldir' was missing the install prefix (ex. /usr/local), which makes it rather useless for being consumed. Fix it to add the pre
build: fix pkgconfig yamldir var for prefix
The pkgconfig variable 'yamldir' was missing the install prefix (ex. /usr/local), which makes it rather useless for being consumed. Fix it to add the prefix onto the path to get the full install path of the YAML.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I0c6e599477f4c8ae47e611c7b104870c7af61948
show more ...
|
#
6f70d9ff |
| 15-Apr-2021 |
Patrick Williams <patrick@stwcx.xyz> |
build: create pkgconfig var for yaml output
Some packages that depend on phosphor-dbus-interfaces try to re-process the YAML for their own purposes. Add variables to pkgconfig and subproject-depend
build: create pkgconfig var for yaml output
Some packages that depend on phosphor-dbus-interfaces try to re-process the YAML for their own purposes. Add variables to pkgconfig and subproject-dependency so that those users can determine where the YAML is at. For pkgconfig it is in the install path and for subproject's it is at the source-root.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I222b4394a22b45fe493ac13b9d50538dc0349bbb
show more ...
|
#
41a7b450 |
| 15-Apr-2021 |
Patrick Williams <patrick@stwcx.xyz> |
build: add dependency for subproject use
When phosphor-dbus-interfaces is used as a subproject, it needs to expose a 'dependency' which can be used by the consuming project to get at the libphosphor
build: add dependency for subproject use
When phosphor-dbus-interfaces is used as a subproject, it needs to expose a 'dependency' which can be used by the consuming project to get at the libphosphor_dbus. Add it using the 'declare_dependency' call.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If8984d86704d2109b826e3c10512d01e90fd6bbc
show more ...
|
#
aff7017d |
| 15-Apr-2021 |
Patrick Williams <patrick@stwcx.xyz> |
build: fix meson deprecation warning
The library for which a pkg_config is being generated should be the first parameter to 'generate' and not passed via the 'libraries' property.
Signed-off-by: Pa
build: fix meson deprecation warning
The library for which a pkg_config is being generated should be the first parameter to 'generate' and not passed via the 'libraries' property.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ibea4f1ee7962690b7964a01254a5ce657ee02b0a
show more ...
|