#
fc33ba86 |
| 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: I2b9626d95674508bb090745de6471fe2755c89fd Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
1e9a5f1a |
| 23-Aug-2023 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: use non-deprecated namespaces
The sdbusplus repository has deprecated some namespaces and they are currently only enabled with the SDBUSPP_REMOVE_DEPRECATED_NAMESPACE guard. Switch to the
sdbus++: use non-deprecated namespaces
The sdbusplus repository has deprecated some namespaces and they are currently only enabled with the SDBUSPP_REMOVE_DEPRECATED_NAMESPACE guard. Switch to the new namespace names.
Change-Id: Iaab6df118eb4dc65139e759dcb22851422f88389 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
d5e8e73b |
| 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: I50e60f2b1a9db9039cb5450ae509064eaeaa9d2e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
bf2bb2b1 |
| 22-Jul-2022 |
Patrick Williams <patrick@stwcx.xyz> |
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are
sdbusplus: use shorter type aliases
The sdbusplus headers provide shortened aliases for many types. Switch to using them to provide better code clarity and shorter lines. Possible replacements are for: * bus_t * exception_t * manager_t * match_t * message_t * object_t * slot_t
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I96286490697ce5d7fecc1c9c358f5f1d054137ec
show more ...
|
#
25773a7e |
| 21-Jan-2022 |
Adriana Kobylak <anoo@us.ibm.com> |
Use flash id to write image to flash
Update the item updater helper functions to take the flash id instead of the version id since flash id is the name of the volumes/partitions.
The flash id was b
Use flash id to write image to flash
Update the item updater helper functions to take the flash id instead of the version id since flash id is the name of the volumes/partitions.
The flash id was being persisted for the mmc layout with the name of "partlabel". This is not needed anymore since the flash id is now being passed by the service files.
The write functions/service files still use the version id to know where the image files are located in /tmp/. They then set the value of flash id (Path property) which is then used by the other functions such as Delete and setting the u-boot environment variables.
Tested: Code update and Delete functions work on ubi and mmc.
Change-Id: I87c5b8ae2e24af30256dc3b436859835f14cda05 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
b824b2f4 |
| 14-May-2020 |
Adriana Kobylak <anoo@us.ibm.com> |
activation: Make activation flow common The activation flow has a lot of duplicate code such as checking the digital signatures and creating associations, with a few differences depe
activation: Make activation flow common The activation flow has a lot of duplicate code such as checking the digital signatures and creating associations, with a few differences depending on the choice of bmc layout configuration. This makes the code hard to maintain since changes and additions to the activation flow need to be done on more than one place, and also the function becomes bigger and harder to follow. This would be made worse when additional layout supports are added such as eMMC code update support. Make the flow common and move the specific code to its subdirectory. This requires create a new function to handle the end of the update so that we support implementations that are async (need to wait for systemd service files to finish). Still need an if/else statement to differentiate the implementations that are synchronous like the static layout and the async ones like the ubi layout since the async ones have the flash write function return immediately and can call the flash write success later on, for the sync ones need to set the activation value to Active after calling flash write success: Async (ubi): activation(Activating) flashWrite() return Activating onFlashWriteSuccess() activation(Active) Synchronous (static): activation(Activating) flashWrite() onFlashWriteSuccess() activation(Active) return Active By making the code common, the static layout gains some additional features which may not be of consequence due to the short duration of the update, but does not hurt and allow us to remove the if/else blocks: - Progress interface - Blocks transition interface - Updatable association before reboot is done The static layout will also subscribe to systemd signals even though they're not used, but again this is to keep the code as common as possible. Tested: Verified code update worked and expected d-bus interfaces and values were set during ubi and static update. Change-Id: I20a0b752fe3905cca5b6220c88f65eb64d155d75 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
b0ce996a |
| 07-Sep-2018 |
Gunnar Mills <gmills@us.ibm.com> |
clang-format: Update to match docs repo Update the .clang-format file. Now includes header sorting and updating PointerAlignment. Change-Id: I5c7690d8d83cdebe26ff3a73b90a2a8c17d
clang-format: Update to match docs repo Update the .clang-format file. Now includes header sorting and updating PointerAlignment. Change-Id: I5c7690d8d83cdebe26ff3a73b90a2a8c17dd8054 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
fa34e023 |
| 04-Sep-2018 |
Gunnar Mills <gmills@us.ibm.com> |
Clang 6 updates Just some minor fixes. Change-Id: I000c456e51c62220d7a5fed8100cfc6c13ef9551 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|
#
3ce563a0 |
| 06-Jun-2018 |
Adriana Kobylak <anoo@us.ibm.com> |
activation: Move out code that monitors for ubi services Move the code that monitors for ubi services into the ubi subdirectory. Other filesystem layouts can just ignore the service
activation: Move out code that monitors for ubi services Move the code that monitors for ubi services into the ubi subdirectory. Other filesystem layouts can just ignore the service monitoring by setting the *VolumeCreated variables to true. Tested: Verified code update on Witherspoon still worked. Change-Id: I135e66225d0e8d692d430efd864252b822b069db Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
9f89e2e1 |
| 30-May-2018 |
Adriana Kobylak <anoo@us.ibm.com> |
activation: Create ubi write function Move the code that creates the ubi volumes into a separate write flash function to make it easier to implement different flash write functions f
activation: Create ubi write function Move the code that creates the ubi volumes into a separate write flash function to make it easier to implement different flash write functions for other flash layouts. To implement a different write flash function: 1. Modify the Makefile.am file to include the desired code location. Ex: if UBI include ubi/Makefile.am.include else include <other>/Makefile.am.include 2. Implement the Activation::flashWrite in <other>/flash.cpp Tested: Verified code update still worked. Change-Id: Ide4d135695dad27e0dc1b5a776a276dfb2ca9aa6 Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|