#
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 ...
|
#
6d17852d |
| 24-Jun-2024 |
Pavithra Barithaya <pavithrabarithaya07@gmail.com> |
clang-tidy: Enable performance-unnecessary-value-param check
This check flags value parameter declarations of expensive to copy types that are copied for each invocation but it would suffice to pass
clang-tidy: Enable performance-unnecessary-value-param check
This check flags value parameter declarations of expensive to copy types that are copied for each invocation but it would suffice to pass them by const reference.
Change-Id: I631deda63fcbb74362313c9596bf7e72933b0d0c Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
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 ...
|
#
59b640b0 |
| 21-Jan-2022 |
Adriana Kobylak <anoo@us.ibm.com> |
Support uploading same image for multiple times
The code was unable to upload the same image for multiple times because it has the same version ID.
Add a salt when generating the version ID so that
Support uploading same image for multiple times
The code was unable to upload the same image for multiple times because it has the same version ID.
Add a salt when generating the version ID so that we could get different version IDs for the same image, and thus it is possible to upload the images for multiple times. Use a random generator with the time as seed to ensure uniqueness.
When the image updater starts up, use the mount directory name or functional suffix as seeds to make the version ids unique.
The version ID is then necessary in the version object because the Delete interface needs it when the version object is to be deleted.
With this change, it is possible to upload and update the same image for multiple times, and systems with dual BMC chips could have the same image as well.
Tested: Upload a same image for multiple times and verify all the uploads are OK and getting different DBus objects; Verify it is OK to delete the uploaded images by deleting the DBus objects. Verify the code update works on all layouts and that the flash id (Path property) was set.
- static root@romulus:~# busctl --no-pager introspect \ xyz.openbmc_project.Software.BMC.Updater \ /xyz/openbmc_project/software/79139bc0 ... .Path property s "9e3b868e"
root@romulus:~# ls -l /run/media/rofs-9e3b868e-functional/etc/ lrwxrwxrwx 1 root root 15 Jan 22 20:11 os-release -> /etc/os-release
- ubi root@witherspoon:~# busctl --no-pager introspect \ xyz.openbmc_project.Software.BMC.Updater \ /xyz/openbmc_project/software/151bc3d8 ... .Path property s "cfb85943"
root@witherspoon:~# df /dev/ubiblock0_0 18816 18816 0 100% /media/rofs-cfb85943-functional /dev/ubiblock4_0 18816 18816 0 100% /media/rofs-26085328
root@witherspoon:~# cat /var/lib/phosphor-bmc-code-mgmt/cfb85943/priority { "priority": 0 }
- mmc root@p10bmc:~# busctl --no-pager introspect \ xyz.openbmc_project.Software.BMC.Updater \ /xyz/openbmc_project/software/cb5f99e2 ... .Path property s "b"
root@p10bmc:~# df /dev/mmcblk0p5 202095 153782 33107 82% /media/rofs-b-functional
root@p10bmc:~# cat /var/lib/phosphor-bmc-code-mgmt/b/priority { "priority": 0 }
Signed-off-by: Lei YU <yulei.sh@bytedance.com> Signed-off-by: Adriana Kobylak <anoo@us.ibm.com> Change-Id: I76842de4d5b7c5175acc43ed7c57e0deb4057be5
show more ...
|
#
0cd6d84b |
| 26-Dec-2021 |
Lei YU <yulei.sh@bytedance.com> |
cleanup: Fix warnings found by cppcheck
Fix various warnings found by cppcheck.
Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I4db2319f5890d7aa73c8f418f610a6cba338ce24
|
#
58aa7508 |
| 08-Jun-2020 |
Adriana Kobylak <anoo@us.ibm.com> |
clang-format: update to latest from docs repo The openbmc/docs/style/cpp/.clang-format has been updated to support clang-format10, take this opportunity to update it in this repo.
clang-format: update to latest from docs repo The openbmc/docs/style/cpp/.clang-format has been updated to support clang-format10, take this opportunity to update it in this repo. Change-Id: I9e6b9853bf4cd7399b1ae504ea3be5093d763fee Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
show more ...
|
#
9155b713 |
| 16-May-2020 |
Andrew Geissler <geissonator@yahoo.com> |
string: ensure string included Latest upstream yocto appears to have removed a free include of string. This is causing compile failures for files which do not include it properly.
string: ensure string included Latest upstream yocto appears to have removed a free include of string. This is causing compile failures for files which do not include it properly. Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Change-Id: I457b7ca46bd010a9c5b363495d43a9b38e430bcf
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 ...
|
#
2285fe0f |
| 27-Feb-2018 |
Adriana Kobylak <anoo@us.ibm.com> |
Enable clang code format Change-Id: Ia899858c11cff6e4fa26b820b35b1e5dca1b57df Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
|
#
ee13e831 |
| 23-Oct-2017 |
Saqib Khan <khansa@us.ibm.com> |
BMC: Fix the delete implementation. - Implement delete interface inside version class so that both item_updater and image_manager can share the same interface. This meant removin
BMC: Fix the delete implementation. - Implement delete interface inside version class so that both item_updater and image_manager can share the same interface. This meant removing the delete interface from inside the activation class. - The delete is created as a separate object inside version, only if the image is non-functional. This helps remove the delete interface from a running BMC/HOST image. - As part of the activation process, the version from inside the image_manager is deleted and so is the version's tarfile from the image upload dir. Partially resolves openbmc/openbmc#2490 Change-Id: Ib35bf188df85ebd2277d3d9ad04300e434965eea Signed-off-by: Saqib Khan <khansa@us.ibm.com>
show more ...
|
#
9440f491 |
| 30-Aug-2017 |
Eddie James <eajames@us.ibm.com> |
Fix problem requiring two Delete calls to remove an image - Remove Delete inheritance and method from Version object. - Add Delete inheritance and method to Activation object. - Add
Fix problem requiring two Delete calls to remove an image - Remove Delete inheritance and method from Version object. - Add Delete inheritance and method to Activation object. - Add a listener in the image Manager for deleted Versions and remove its 'backup' copy of the Version. Resolves openbmc/openbmc#2086 Change-Id: If41783319cf1ff5b840b747ba457d0570bc52918 Signed-off-by: Eddie James <eajames@us.ibm.com>
show more ...
|
#
50d559c9 |
| 07-Jul-2017 |
Leonel Gonzalez <lgonzalez@us.ibm.com> |
image_manager: Added erase method Image manager deletes image, image directory, and the version from its map. Change-Id: Ica128927b706257eb8c4b28d3b9d2ac9ca397b91 Signed-off
image_manager: Added erase method Image manager deletes image, image directory, and the version from its map. Change-Id: Ica128927b706257eb8c4b28d3b9d2ac9ca397b91 Signed-off-by: Leonel Gonzalez <lgonzalez@us.ibm.com>
show more ...
|
#
ba239881 |
| 26-May-2017 |
Saqib Khan <khansa@us.ibm.com> |
Move Active BMC version object to item_updater. - There needs to be only one version class for both BMC and PNOR images. Thus removing the BMCVERSION class and moving the functio
Move Active BMC version object to item_updater. - There needs to be only one version class for both BMC and PNOR images. Thus removing the BMCVERSION class and moving the functionality to MANAGER class. Change-Id: I6dda818960588cfd9ed345fe93068531efc7a877 Signed-off-by: Saqib Khan <khansa@us.ibm.com>
show more ...
|
#
3027bba9 |
| 27-Apr-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Create version dbus object Read the version and purpose from the manifest. Compute the id from the version. Create the image dir, <IMAGE_UPLOAD_DIR>/<id>/. Create the version object
Create version dbus object Read the version and purpose from the manifest. Compute the id from the version. Create the image dir, <IMAGE_UPLOAD_DIR>/<id>/. Create the version object with the version, purpose, id and image dir path. Change-Id: I6d2d710fb8eeeda085af8ab116f2dafc720a2ade Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
19e4ce5d |
| 27-Apr-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Untar tarball Untar the tarball to the image dir. The image dir is <IMG_UPLOAD_DIR>/<id>/. The MANIFEST is first extracted, the version is read from the MANIFEST and used to compute
Untar tarball Untar the tarball to the image dir. The image dir is <IMG_UPLOAD_DIR>/<id>/. The MANIFEST is first extracted, the version is read from the MANIFEST and used to compute the id. Change-Id: Ifed01e980202404e104ce7c20beb85ab23527913 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
show more ...
|
#
e91d321a |
| 19-Apr-2017 |
Gunnar Mills <gmills@us.ibm.com> |
Call processImage from inotify Change-Id: I0b748f93f8e34552cef67616317c28660284ac99 Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
|