History log of /openbmc/bios-settings-mgr/meson.build (Results 1 – 13 of 13)
Revision Date Author Comments
# 72bed802 24-Jan-2024 Manojkiran Eda <manojkiran.eda@gmail.com>

Update cereal dependency

It seems that, we cannot directly make the cereal packages as required,
since the libcereal bitbake recipe does not seem to supply the necessary
package config files which m

Update cereal dependency

It seems that, we cannot directly make the cereal packages as required,
since the libcereal bitbake recipe does not seem to supply the necessary
package config files which meson build system could find using the
dependency() call.

The libcereal bitbake recipe does not seem to put the package
config files but seem to install the necessary header files into the
includes, so mark the cereal dependency as not required, but
add the checks for finding the necessary cereal headers rather than
the package config file.

Just copied the cereal dependency check code from other repositories
like phosphor-state-manager & pldm.

Tested by :
1. Did a bitbake build with this change and made sure that the
bios-config-mgr builds & figure outs the cereal dependency.

Change-Id: Ib1139bfc41024a9f29953ed0427fa9fc0bbf238c
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>

show more ...


# e7f0b66c 16-Dec-2023 Manojkiran Eda <manojkiran.eda@gmail.com>

Add missing cereal dependency

The repository uses cereal as a serialization library to persist
the dbus object changes.So we better add it to the dependency list
so that , there will be an explicit

Add missing cereal dependency

The repository uses cereal as a serialization library to persist
the dbus object changes.So we better add it to the dependency list
so that , there will be an explicit checking in the configuration
stage rather than bailing out with a compile failure.

Change-Id: Id674c3a1eb47d9df9a9aaeaba278509f467765b8
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>

show more ...


# f5911653 16-Dec-2023 Manojkiran Eda <manojkiran.eda@gmail.com>

Add missing nlohmann_json dependency

The bios-password part of code relies on seed file which is
in JSON format and also uses the nlohmann parse functions to
parse it, so add it to the dependency li

Add missing nlohmann_json dependency

The bios-password part of code relies on seed file which is
in JSON format and also uses the nlohmann parse functions to
parse it, so add it to the dependency list.

Change-Id: I7f4ab5a79f8909ee527861a9275ddc2282599a67
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>

show more ...


# e62033ca 16-Dec-2023 Manojkiran Eda <manojkiran.eda@gmail.com>

Remove executable permissions for text files

In the current state of the repository, meson.build, README.md
and LICENSE files are checked in with executable permissions.
They dont need executable pe

Remove executable permissions for text files

In the current state of the repository, meson.build, README.md
and LICENSE files are checked in with executable permissions.
They dont need executable permissions as they are not executables
themselves, so removing the permissions.

Change-Id: Id693bd165ab3a2cf1d3478cd78bd4171bf2a38db
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>

show more ...


# 628e4aa4 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: I258e8dbdd8108a

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

show more ...


# 9ace6ac5 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: Ia1f83dde45a080bf854a3

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

show more ...


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

show more ...


# 1a1dfbd2 17-Jan-2023 Arun Lal K M <arun.lal@intel.com>

Make BiosConfig run as one service.

As of now BiosConfig runs in two service as seen below.
1) xyz.openbmc_project.biosconfig_manager.service
busctl tree xyz.openbmc_project.BIOSConfigManager
`-/xyz

Make BiosConfig run as one service.

As of now BiosConfig runs in two service as seen below.
1) xyz.openbmc_project.biosconfig_manager.service
busctl tree xyz.openbmc_project.BIOSConfigManager
`-/xyz
`-/xyz/openbmc_project
`-/xyz/openbmc_project/bios_config
`-/xyz/openbmc_project/bios_config/manager

2) xyz.openbmc_project.biosconfig_password.service
busctl tree xyz.openbmc_project.BIOSConfigPassword
`-/xyz
`-/xyz/openbmc_project
`-/xyz/openbmc_project/bios_config
`-/xyz/openbmc_project/bios_config/password

The code changes are to move functionalities of
xyz.openbmc_project.biosconfig_password.service to
xyz.openbmc_project.biosconfig_manager.service as
shown below

busctl tree xyz.openbmc_project.BIOSConfigManager
`-/xyz
`-/xyz/openbmc_project
`-/xyz/openbmc_project/bios_config
|-/xyz/openbmc_project/bios_config/manager
`-/xyz/openbmc_project/bios_config/password

Tested:
Made sure BiosConfig functionality is not affected.
Note that calls from bmcweb will now require to use
service as xyz.openbmc_project.biosconfig_manager.service

Change-Id: I8adeb57ed3758041b2b9b0d1ddc714e418c4484e
Signed-off-by: Arun Lal K M <arun.lal@intel.com>

show more ...


# 6a7ee5c2 28-Dec-2021 George Liu <liuxiwei@inspur.com>

meson: Fix deprecated meson warning

The get_pkgconfig_variable method supports versions below 0.56.0,
and the current meson version is above 0.58.0, so the new method
get_variable should be used.

W

meson: Fix deprecated meson warning

The get_pkgconfig_variable method supports versions below 0.56.0,
and the current meson version is above 0.58.0, so the new method
get_variable should be used.

WARNING: Project targeting '>=0.58.0' but tried to use feature
deprecated since '0.56.0': Dependency.get_pkgconfig_variable. use
Dependency.get_variable(pkgconfig : ...) instead
WARNING: Deprecated features used:
* 0.56.0: {'Dependency.get_pkgconfig_variable'}

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

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

show more ...


# fb928424 07-Dec-2021 George Liu <liuxiwei@inspur.com>

build: switch to C++20

1. Updated to C++20
2. Limit meson version >= 0.58.0
3. Added the default buildtype to debugoptimized

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

build: switch to C++20

1. Updated to C++20
2. Limit meson version >= 0.58.0
3. Added the default buildtype to debugoptimized

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

show more ...


# 8f706213 16-Dec-2020 Kuiying Wang <kuiying.wang@intel.com>

oob bios config password and bios reset

Tested:
1. Bios reset flag can be modified throw redfish
POST https://IP_ADDR/redfish/v1/Systems/system/Bios/Actions/Bios.ResetBios
{
"ResetFlag": "Factor

oob bios config password and bios reset

Tested:
1. Bios reset flag can be modified throw redfish
POST https://IP_ADDR/redfish/v1/Systems/system/Bios/Actions/Bios.ResetBios
{
"ResetFlag": "Factory"
}
root@intel-obmc:~# busctl call xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager org.freedesktop.DBus.Properties Get ss xyz.openbmc_project.BIOSConfig.Manager ResetBIOSSettings
v s "xyz.openbmc_project.BIOSConfig.Manager.ResetFlag.FactoryDefaults"

2. Bios change password:
root@intel-obmc:~# cat /var/lib/bios-settings-manager/seedData
{
"UserPwdHash": "08D91157785366CDC3AA64D87E5E3C621EDAB13E26B6E484397EBA5E459E54C567BF5B1FFB36A43B6142B18F8D642E9D",
"AdminPwdHash": "08D91157785366CDC3AA64D87E5E3C621EDAB13E26B6E484397EBA5E459E54C567BF5B1FFB36A43B6142B18F8D642E9D",
"Seed": "123456",
"HashAlgo": "SHA384"
}
POST https://IP_ADDR/redfish/v1/Systems/system/Bios/Actions/Bios.ChangePassword
{
"NewPassword": "12345678",
"OldPassword": "1234567890",
"PasswordName": "Administrator"
}
root@intel-obmc:~# cat /var/lib/bios-settings-manager/passwordData
{
"CurrentPassword": "1234567890",
"IsAdminPwdChanged": 1,
"IsUserPwdChanged": 0,
"NewPassword": "2DD65D57EB60B1D92C5F3D2DC84724FCEE7BC02E57AA75E834712266ED94CAC704047B2FF7CEC1C36BED280B36BB5AC6",
"UserName": "Administrator"
}

Change-Id: Ib54b36819e49c891c6169c95d9cdaebd5bcb06f3
Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>

show more ...


# f1101df2 05-Nov-2020 Tom Joseph <tomjoseph@in.ibm.com>

Add serialization for bios-settings-manager

Tested: Restarted the biosconfig-manager application and
BaseBIOSTable and PendingAttributes were restored.

Signed-off-by: Tom Joseph <tomjoseph@

Add serialization for bios-settings-manager

Tested: Restarted the biosconfig-manager application and
BaseBIOSTable and PendingAttributes were restored.

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

show more ...


# 642f437e 12-Aug-2020 Kuiying Wang <kuiying.wang@intel.com>

Initial patch for RBC BIOS Config Manager

ResetBIOSSettings is not implemented as part of this patch apart from
that GetAttribute, SetAttribute and setters for BaseBIOSTable,
PendingAttributes is im

Initial patch for RBC BIOS Config Manager

ResetBIOSSettings is not implemented as part of this patch apart from
that GetAttribute, SetAttribute and setters for BaseBIOSTable,
PendingAttributes is implemeted.

Interface:
xyz.openbmc_project.BIOSConfig.Manager
Properties:
.BaseBIOSTable property a{s(sbsssvva(sv))} 1 "testAttributeName" "xyz.openbmc_pr... emits-change writable
.PendingAttributes property a{s(sv)} 2 "test1" "xyz.openbmc_project.BIOSCo... emits-change writable
.ResetBIOSSettings property s "xyz.openbmc_project.BIOSConfig.Manag... emits-change writable
Methods:
.GetAttribute method s svv -
.SetAttribute method sv - -

Tested:
1. Service is working well.
2. All the dbus methods and properties are shown correctly.
3. Unit test done.
a). Tree
root@intel-obmc:~# busctl tree xyz.openbmc_project.BIOSConfigManager
`-/xyz
`-/xyz/openbmc_project
`-/xyz/openbmc_project/bios_config
`-/xyz/openbmc_project/bios_config/manager
b). Instrospect
root@intel-obmc:~# busctl introspect xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.DBus.Introspectable interface - - -
.Introspect method - s -
org.freedesktop.DBus.Peer interface - - -
.GetMachineId method - s -
.Ping method - - -
org.freedesktop.DBus.Properties interface - - -
.Get method ss v -
.GetAll method s a{sv} -
.Set method ssv - -
.PropertiesChanged signal sa{sv}as - -
xyz.openbmc_project.BIOSConfig.Manager interface - - -
.GetAttribute method s svv -
.SetAttribute method sv - -
.BaseBIOSTable property a{s(sbsssvva(sv))} 2 "attr0" "xyz.openbmc_project.BIOSCo... emits-change writable
.PendingAttributes property a{s(sv)} 1 "test1" "xyz.openbmc_project.BIOSCo... emits-change writable
.ResetBIOSSettings property s "xyz.openbmc_project.BIOSConfig.Manag... emits-change writable
c). Method: GetAttribute/SetAttribute
root@intel-obmc:~# busctl call xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager SetAttribute sv test1 s "value"
root@intel-obmc:~# busctl call xyz.openbmc_project.BIOSConfigManager /xyz/openbmc_project/bios_config/manager xyz.openbmc_project.BIOSConfig.Manager GetAttribute s test1
svv "xyz.openbmc_project.BIOSConfig.Manager.AttributeType.String" x 0 s "value"
d). Service
root@intel-obmc:~# systemctl status xyz.openbmc_project.biosconfig_manager
* xyz.openbmc_project.biosconfig_manager.service - BIOS Config Manager - For Remote BIOS configuration update
Loaded: loaded (8;;file://intel-obmc/lib/systemd/system/xyz.openbmc_project.biosconfig_manager.service/lib/systemd/system/xyz.openbmc_project.biosconfig_manager.service8;;; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/xyz.openbmc_project.biosconfig_manager.service.d
`-8;;file://intel-obmc/etc/systemd/system/xyz.openbmc_project.biosconfig_manager.service.d/watchdog.confwatchdog.conf8;;
Active: active (running) since Thu 1970-01-01 00:00:56 UTC; 25min ago
Main PID: 394 (biosconfig-mana)
CGroup: /system.slice/xyz.openbmc_project.biosconfig_manager.service
`-394 /usr/bin/biosconfig-manager

Jan 01 00:00:56 intel-obmc systemd[1]: Started BIOS Config Manager - For Remote BIOS configuration update.

Change-Id: I7a7312ffbdf000aab254c77ed5e4f9a8d4ec4d45
Signed-off-by: Kuiying Wang <kuiying.wang@intel.com>

show more ...