#
32e9ea16 |
| 01-Feb-2025 |
Patrick Williams <patrick@stwcx.xyz> |
meson: reformat with meson formatter
Apply the `meson format` results.
Change-Id: I116103d8e0994e09ecb6381f5bb7d564608826b2 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
#
acbf8759 |
| 30-Jan-2025 |
Patrick Williams <patrick@stwcx.xyz> |
build: use allowed over enabled or not-disabled
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`)
build: use allowed over enabled or not-disabled
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`. Switch all uses of `not disabled` to `allowed`.
Change-Id: Ia942d083f4ddab68acbbb40699ea1971e09db771 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
deb85cee |
| 07-Dec-2023 |
Patrick Williams <patrick@stwcx.xyz> |
meson: adjust nlohmann-json dependency
Simplify the dependency logic and align wrap file directives with other repositories.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I61209bcd
meson: adjust nlohmann-json dependency
Simplify the dependency logic and align wrap file directives with other repositories.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I61209bcd25995ef447c790e59ad717c1192acbc2
show more ...
|
#
2d57d522 |
| 17-Sep-2023 |
Tim Lee <timlee660101@gmail.com> |
tools/pci: refactor did variable for NuvotonPciBridge
Symptom: Host tool "burn_my_bmc" for in-band firmware update didn't work and exception is about PCI device cannot find in NPCM8xx platform.
roo
tools/pci: refactor did variable for NuvotonPciBridge
Symptom: Host tool "burn_my_bmc" for in-band firmware update didn't work and exception is about PCI device cannot find in NPCM8xx platform.
root@localhost:~# burn_my_bmc --command update --interface ipmipci --image test.sig --sig test.sig --type dummy
Sending over the firmware image. Opening the cleanup blob Committing to the cleanup blob Closing cleanup blob Exception received: Couldn't find supported PCI device
Root cause: There are new Nuvoton PCI device-id in NPCM8xx platform. The previous device-id 0x0750 is hardcode for NPCM7xx platform. However, NPCM8xx PCI device is using new device-id 0x0850. Thus, host tool will throw the exception from NotFoundException().
Solution: We need to refactor this "did" variable to make host tool "burn_my_bmc" can work well for these two kinds of PCI devices.
Tested: In-band firmware update can work well in NPCM8xx with did change to 0x0850. Here is the result of "lspci" from host side for refer it. root@localhost:~# lspci -v | grep d7: d7:01.0 Unassigned class [ff00]: Winbond Electronics Corp Device 0850 (rev 08) d7:02.0 Unassigned class [ff00]: Winbond Electronics Corp Device 0850 (rev 08)
Change-Id: I2917298f13b0bcd7de3b2ff71173c546ea3cb02b Signed-off-by: Tim Lee <timlee660101@gmail.com>
show more ...
|
#
14c78ed1 |
| 16-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
use std::format
Remove use of fmt and replace with the std::format version.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib89de0b3d10866276964db7b3fa8d97991df410d
|
#
41dedad6 |
| 13-Jul-2023 |
Patrick Williams <patrick@stwcx.xyz> |
use std::move_only_function
C++23 has a replacement for function2 in std::move_only_function. Leverage that and remove the extra dependency.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Chan
use std::move_only_function
C++23 has a replacement for function2 in std::move_only_function. Leverage that and remove the extra dependency.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I69fa59627b91fc1f640f7a688926bed7f138ca19
show more ...
|
#
4719ad0b |
| 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: I2abf95de6076e750c0862
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: I2abf95de6076e750c086241161edefcd29f298a4 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
7fb9abd2 |
| 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: I9d6c273f740a62fdbea64cb29ae6db29b8af19da Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
ea65e680 |
| 13-Jul-2022 |
Brandon Kim <brandonkim@google.com> |
meson: Fix meson builds
When building the project from scratch (from a new workstation without docker) I found that there were dependencies missing. Fixed them up.
Tested: Was able to build " tools
meson: Fix meson builds
When building the project from scratch (from a new workstation without docker) I found that there were dependencies missing. Fixed them up.
Tested: Was able to build " tools/" and "bmc/"
Signed-off-by: Brandon Kim <brandonkim@google.com> Change-Id: Id2250c481a37d3cd4ed6915b1b2b0978df6e4649
show more ...
|
#
0df40850 |
| 01-Nov-2021 |
William A. Kennington III <wak@google.com> |
build: Remove unused phosphor-logging dependency
Change-Id: I4f4e5efc998ed9738a548a353a6bd315ebe5f47c Signed-off-by: William A. Kennington III <wak@google.com>
|
#
7ace08a9 |
| 31-Oct-2021 |
Willy Tu <wltu@google.com> |
build: nuvoton-lpc: Add `NUVOTON_LPC` project_arguments
The `NUVOTON_LPC` is not defined when building for `nuvoton-lpc` which resulted in the blob loading to fail on the BMC.
Change-Id: I5833855ee
build: nuvoton-lpc: Add `NUVOTON_LPC` project_arguments
The `NUVOTON_LPC` is not defined when building for `nuvoton-lpc` which resulted in the blob loading to fail on the BMC.
Change-Id: I5833855ee696860ce41b3f136c20060c7638f8df Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
#
bcae9002 |
| 12-Sep-2021 |
Willy Tu <wltu@google.com> |
build: Add meson build
Changes to note, - `with_systemdsystemunitdir` and `with_tmpfilesdir` is removed since it is not being documented nor used in OpenBMC. - Removed the Code coverage feature wi
build: Add meson build
Changes to note, - `with_systemdsystemunitdir` and `with_tmpfilesdir` is removed since it is not being documented nor used in OpenBMC. - Removed the Code coverage feature with `-DDHAVE_GCOV`, since it is not used and meson covers it. - Removed `--enable-oe-sdk` for using the OpenBMC SDK. It should work directly with no change required.
Tested: ``` Jan 01 00:01:54 ipmid[709]: Try loading blob from persistent data Jan 01 00:01:54 ipmid[709]: Stale blob data, resetting internals... Jan 01 00:01:56 ipmid[709]: config loaded: /flash/bios Jan 01 00:01:56 ipmid[709]: config loaded: /flash/image Jan 01 00:01:56 ipmid[709]: config loaded: /flash/dummy ... ```
``` $ ls /usr/lib/blob-ipmid/ libfirmwareblob.so libfirmwarecleanupblob.so libversionblob.so ```
Testing the service, ``` $ echo "hello" > /tmp/test.txt $ burn_my_bmc -command update -layout dummy -image /tmp/test.txt Sending over the firmware image. Opening the verification file Committing to /flash/verify to trigger service Calling stat on /flash/verify session to check status running success Returned success succeeded ```
On the BMC. ``` /run/initramfs$ cat dummy hello ```
Change-Id: I21c7c33bd62c0ee40681cb40da90125c125bea2f Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|