42a44c28 | 16-Aug-2024 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda forma
clang-format: re-format for clang-18
clang-format-18 isn't compatible with the clang-format-17 output, so we need to reformat the code with the latest version. The way clang-18 handles lambda formatting also changed, so we have made changes to the organization default style format to better handle lambda formatting.
See I5e08687e696dd240402a2780158664b7113def0e for updated style. See Iea0776aaa7edd483fa395e23de25ebf5a6288f71 for clang-18 enablement.
Change-Id: I09e19a126d456dc184fd70e82d4e4e4217fa8ee7 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
166b4f19 | 17-Jun-2024 |
Manojkiran Eda <manojkiran.eda@gmail.com> |
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://githu
Fix spelling mistakes using codespell
This commit corrects various spelling mistakes throughout the repository. The corrections were made automatically using `codespell`[1] tool.
[1]: https://github.com/codespell-project/codespell
Change-Id: I0ffaae547bff9679343b36c337436af0260c8f73 Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
a9423469 | 20-Oct-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-17 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: Ie6154ef3394b8e652a8cb1ac33d68e3c3cec8cd8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
1038836c | 10-May-2023 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest
clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require additional settings for best compatibility and re-running the formatter. Copy the latest .clang-format from the docs repository and reformat the repository.
Change-Id: I2ee8cbc4581d0c3ccdc130b646357c45fa0373db 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 ...
|
99d292a3 | 08-Feb-2022 |
Willy Tu <wltu@google.com> |
phosphor-ipmi-flash: Code Health Cleanup
Removed the following warning. - using decl '*' is unused - 'push_back' is called inside a loop; consider pre-allocating the container capacity before th
phosphor-ipmi-flash: Code Health Cleanup
Removed the following warning. - using decl '*' is unused - 'push_back' is called inside a loop; consider pre-allocating the container capacity before the loop - function '*' defined in a header file; function definitions in header files can lead to ODR violations
Change-Id: I44e4b0f8056a853fb45b690394be1a8ebec45b20 Signed-off-by: Willy Tu <wltu@google.com>
show more ...
|
35b77c9b | 13-Sep-2021 |
Willy Tu <wltu@google.com> |
build: remove autotool
Change-Id: I662c8a5d29453622744f44c1984416f1303354e6 Signed-off-by: Willy Tu <wltu@google.com> |
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> |
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 ...
|
ba90fd7a | 22-Oct-2021 |
William A. Kennington III <wak@google.com> |
bmc: Simplify file handler
This greatly reduces the number of checks made against file operations and fixes an issue with reading 0 length files.
Change-Id: I3d63ad0a3a49d6efbd047baadff3c0fe363b417
bmc: Simplify file handler
This greatly reduces the number of checks made against file operations and fixes an issue with reading 0 length files.
Change-Id: I3d63ad0a3a49d6efbd047baadff3c0fe363b4174 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
b487eb47 | 16-Sep-2021 |
Willy Tu <wltu@google.com> |
phosphor-ipmi-flash: Fix all C++ warnings
Change-Id: I89236b2dab88ca725e269bb8f5b2cbfd271e807a Signed-off-by: Willy Tu <wltu@google.com> |
f450486f | 25-Apr-2021 |
Willy Tu <wltu@google.com> |
test: Replace the C++ MOCK_METHOD<n> macros with the new MOCK_METHOD
Change-Id: I5099c727e9e918f19fa61acc91ef75250ebc6fa6 Signed-off-by: Willy Tu <wltu@google.com> |
43344a1b | 29-Jan-2021 |
William A. Kennington III <wak@google.com> |
bmc: Create runtime directory for non-persistent configs
Change-Id: I32012e7e798bae5a1c5b02e39b32dc40ba3b580a Signed-off-by: William A. Kennington III <wak@google.com> |
22f8bf33 | 29-Jan-2021 |
William A. Kennington III <wak@google.com> |
configure: Refactor systemunitdir expression to use PKG_CHECK_VAR
Change-Id: Ia78044b47d2e01ec2629ba2bc7d8033c0107afb9 Signed-off-by: William A. Kennington III <wak@google.com> |
d0dc723d | 28-Jan-2021 |
William A. Kennington III <wak@google.com> |
buildjson: Support multiple configuration paths
This will allow us to parse configurations from multiple paths in the filesystem when they are added.
Right now this does not enable new behavior, bu
buildjson: Support multiple configuration paths
This will allow us to parse configurations from multiple paths in the filesystem when they are added.
Right now this does not enable new behavior, but a future change will enable a non-persistent configuration location.
Change-Id: Ifa9bc5eff9cfca84c923be381ec9927c62c2a2e5 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
bfcf1326 | 29-Jan-2021 |
William A. Kennington III <wak@google.com> |
bmc/fs: Ignore missing directories
We shouldn't error out for a missing directory, just ignore it as they don't have to be present.
Change-Id: I00bd66ca079059753480c73587e0ee41941cd7e6 Signed-off-b
bmc/fs: Ignore missing directories
We shouldn't error out for a missing directory, just ignore it as they don't have to be present.
Change-Id: I00bd66ca079059753480c73587e0ee41941cd7e6 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
bec23189 | 21-Jan-2021 |
William A. Kennington III <wak@google.com> |
buildjson: Reduce include scope as needed
Change-Id: I8dfa600680fb253cd828f284ff217f35f76c0b46 Signed-off-by: William A. Kennington III <wak@google.com> |
4175b4ca | 24-Dec-2020 |
William A. Kennington III <wak@google.com> |
Add callback support to triggerable actions
Change-Id: Icc27fbe9403eda418f41e12c76af7f3216f4b72a Signed-off-by: William A. Kennington III <wak@google.com> |
6ee93c6d | 22-Dec-2020 |
William A. Kennington III <wak@google.com> |
Makefile: Consistently use tabs
Change-Id: I312c81a2ceba88c925ef268ca3bc8d74f264768e Signed-off-by: William A. Kennington III <wak@google.com> |
e82d7395 | 19-Nov-2020 |
Jason Ling <jasonling@google.com> |
json builder: fix error with buildHandlerConfigs
Problem: mistakenly defined the implementation of buildHandlerConfigs in a separate cpp file. This breaks calling buildHandlerConfigs from a derived
json builder: fix error with buildHandlerConfigs
Problem: mistakenly defined the implementation of buildHandlerConfigs in a separate cpp file. This breaks calling buildHandlerConfigs from a derived class.
Solution: move implementation of buildHandlerConfigs into the header.
unit tests added: firmware_json_unittest.cpp * add a test to parse json from file * add a test to parse an invalid json file
Signed-off-by: Jason Ling <jasonling@google.com> Change-Id: I5cd93ad01a329850a8ee516fae8a35339c991ae0
show more ...
|
84bff8be | 06-Nov-2020 |
Jason Ling <jasonling@google.com> |
test: move shared mocks to common area
Move mocks that can be shared between version and firmware handler tests to parent directory (bmc/test).
This will eliminate the need to duplicate the definit
test: move shared mocks to common area
Move mocks that can be shared between version and firmware handler tests to parent directory (bmc/test).
This will eliminate the need to duplicate the definition of testing mocks.
Signed-off-by: Jason Ling <jasonling@google.com> Change-Id: Id41c56271d0bfbcb8c18da1f903c7786699508d4
show more ...
|
c893f43d | 24-Oct-2020 |
Jason Ling <jasonling@google.com> |
make building handlers from json more generic
Problem: version-handler, a new feature that will be added to this repository will also parse json files from the same directory ipmi-flash does. Curren
make building handlers from json more generic
Problem: version-handler, a new feature that will be added to this repository will also parse json files from the same directory ipmi-flash does. Currently buildjson is a mix of some code that can be reused and other code that is pretty specific to firmware updates; this makes it hard to reuse the code.
Solution: factor out the generic parts and place it in bmc and then leave the specific parts in firmware-handler. Also code changes have been made to buildjson: wrap functions in a templated class that leaves feature specific parsing as a pure virtual method.
Tested: Ran the unit tests, which do test the parsing functionality.
Signed-off-by: Jason Ling <jasonling@google.com> Change-Id: I021dc829a82d1719b4cb862cdfb224eca629a44d
show more ...
|
56a2273f | 23-Oct-2020 |
Jason Ling <jasonling@google.com> |
extend file_handler to support reads
Problem: the upcomming version handler will need to read from files. Currently file hander (image handler) does not support reads.
Solution: Add read support by
extend file_handler to support reads
Problem: the upcomming version handler will need to read from files. Currently file hander (image handler) does not support reads.
Solution: Add read support by providing an optional mode parameter.
Tests added: FileHanderTest added to - Test out open for reads - Test out reading out bytes and verifying size and content - Test out trying to read beyond EOF - Test out offset reads that go beyond EOF
Tested: Existing unit tests pass New unit tests for reading all pass
Signed-off-by: Jason Ling <jasonling@google.com> Change-Id: Ie416a6b4b452d8d04fa158bd55989d07a891896f
show more ...
|
a6065507 | 26-Oct-2020 |
Patrick Venture <venture@google.com> |
bmc: firmware-handler: lpc: minor cleanup
Moves the setInitializedAndReturn method to the source file to remove the exception dependency from the header.
Signed-off-by: Patrick Venture <venture@goo
bmc: firmware-handler: lpc: minor cleanup
Moves the setInitializedAndReturn method to the source file to remove the exception dependency from the header.
Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I17ad9a116f47e729dd5b12b6279ea6986529e6ca
show more ...
|
ded66d0f | 23-Oct-2020 |
Jason Ling <jasonling@google.com> |
move files around to create a common convenience library
Problem: plan is to add another blob handler into ipmi-flash (ipmi-flash-version). This new handler will re-use much of the ipmi-flash (firmw
move files around to create a common convenience library
Problem: plan is to add another blob handler into ipmi-flash (ipmi-flash-version). This new handler will re-use much of the ipmi-flash (firmware-handler) code. The common code should be presented as a convenience library to reduce code duplication.
Solution: move anticipated firmware-handler specific code into the subdirectory bmc/firmware-handler and leave common code in bmc/.
The end goal is to have version-handler re-use as much code as possible.
Tested: rebuilt everything and ran unit tests.
Signed-off-by: Jason Ling <jasonling@google.com> Change-Id: I2128da629b0ddf27b89f1faee358d1941f1dff38
show more ...
|