History log of /openbmc/service-config-manager/meson.build (Results 1 – 10 of 10)
Revision Date Author Comments
# ee190f03 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: If4484727bbd187b6fb92b7a0997fb8fcda5aec70
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# c241bdee 16-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: I776a96a47c3512

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: I776a96a47c35121b3ba88e3e3387fc70b84d93dd

show more ...


# 70c78fe4 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: I53ff50a3e3eb1b945526f

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: I53ff50a3e3eb1b945526f91654426f5652c15752
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# 070dd971 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: Ib7c944a6c5a7e28dad9c0417caf0ec7543a461ab
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


# eca056ed 21-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: I3ffeb36c566eed00a6070b6c823d9a7b2a8bfbc2


# 25a0f634 11-Nov-2021 Chicago Duan <duanzhijia01@inspur.com>

ADD USB Code Update enable/disable

phosphor_usb_code_update is an application that use USB to do FW
update. phosphor_usb_code_update service is not a daemon, but an app
that will be called after ins

ADD USB Code Update enable/disable

phosphor_usb_code_update is an application that use USB to do FW
update. phosphor_usb_code_update service is not a daemon, but an app
that will be called after inserting a USB flash disk.

This commit creates an object of phosphor_usb_code_update when
phosphor_usb_code_update is not started. We can enable/disable
phosphor_usb_code_update by setting the "Enabled" property to
true/false.

Please configure the “usb-code-update” option in your bb/bbappend to
enable this feature.

For phosphor_usb_code_update, useful rules files is
/lib/udev/rules.d/70-bmc-usb.rules. When usb code update is disabled,
srvcfg_manager creates an empty symlink
/etc/udev/rules.d/70-bmc-usb.rules, which causes
/lib/udev/rules.d/70-bmc-usb.rules inoperative. When usb code update is
enabled, srvcfg_manager deletes /etc/udev/rules.d/70-bmc-usb.rules.

The commits of phosphor_usb_code_update is:
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-bmc-code-mgmt/+/48742/1

Test:
get "Enabled" property:
busctl get-property xyz.openbmc_project.Control.Service.Manager
/xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate
xyz.openbmc_project.Control.Service.Attributes Enabled
b true

set "Enabled" property to false:
busctl set-property xyz.openbmc_project.Control.Service.Manager
/xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate
xyz.openbmc_project.Control.Service.Attributes Enabled b false

busctl get-property xyz.openbmc_project.Control.Service.Manager
/xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate
xyz.openbmc_project.Control.Service.Attributes Enabled
b false

The "Enabled" property will be persisted,reboot the BMC, then get the
"Enabled" property:
busctl get-property xyz.openbmc_project.Control.Service.Manager
/xyz/openbmc_project/control/service/phosphor_2dusb_2dcode_2dupdate
xyz.openbmc_project.Control.Service.Attributes Enabled
b false

Signed-off-by: Chicago Duan <duanzhijia01@inspur.com>
Change-Id: Iba7ffb541628d563e2c54c3e1c8c4dbe85f1507b

show more ...


# b50ebd2f 02-Jun-2021 Patrik Tesarik <patrik.tesarik@rub.de>

Add subproject directory & wrapper files

This commit enables the isolated build of this repository with meson.
This contribution was made possible by Patrick's [blog post][1].

Building standalone w

Add subproject directory & wrapper files

This commit enables the isolated build of this repository with meson.
This contribution was made possible by Patrick's [blog post][1].

Building standalone with `meson setup builddir && ninja -C builddir`
worked up to the point when `phosphor-logging` raised an
[error][2]. So I cannot state that it is fully tested, but setting up
the `builddir` correctly should've been half the way.

[1]: http://www.stwcx.xyz/blog/2021/04/18/meson-subprojects.html
[2]: https://github.com/openbmc/phosphor-logging/issues/22

Signed-off-by: Patrik Tesarik <patrik.tesarik@rub.de>
Change-Id: I8ce6c9292edbb6d72414edd8794c337f30bc0734

show more ...


# 9cd87072 02-Jun-2021 Patrik Tesarik <patrik.tesarik@rub.de>

meson: switch pkgconfig access method

Since meson (>=0.56) the use of `get_pkgconfig_variable()` is deprecated
in favor of the more arbitrary `get_variable()`. See [reference][]
under: "Arbitrary va

meson: switch pkgconfig access method

Since meson (>=0.56) the use of `get_pkgconfig_variable()` is deprecated
in favor of the more arbitrary `get_variable()`. See [reference][]
under: "Arbitrary variables from dependencies that can be found multiple
ways".

[Reference]: https://github.com/mesonbuild/meson/blob/master/docs/markdown/Dependencies.md

Signed-off-by: Patrik Tesarik <patrik.tesarik@9elements.com>
Change-Id: I89d877108f75a4a48f644a75c1fd0e3703e7e1fb
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...


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

build: switch to C++20

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


# 82e9557e 07-May-2020 Tom Joseph <tomjoseph@in.ibm.com>

Add support for building with meson

Follow the OpenBMC herd and support a modern, comprehensible build framework.

To build with meson:
meson build
ninja -C build

The OpenBMC CI scripts look

Add support for building with meson

Follow the OpenBMC herd and support a modern, comprehensible build framework.

To build with meson:
meson build
ninja -C build

The OpenBMC CI scripts look for meson.build before looking for CMakelists so
approval of this patch would change the build system during CI to meson.

Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com>
Change-Id: I23d023d8db8048579926231841f497366ab3d516

show more ...