#
96442c88 |
| 16-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: I014e7670ca4ba57f7e1b80e96c001474cf7a6676 Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
show more ...
|
#
0dea1992 |
| 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: If9a7314dade153dd7dbd149a76352aca8257839d
show more ...
|
#
ab139ce9 |
| 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: Ic1bf10e15071227582e5738336f632d33705c80b
show more ...
|
#
1db9adf3 |
| 05-Mar-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Fix issues found by cppcheck Resolve several issues found by cppcheck: [msl_verify.hpp:28]: (style) Class 'MinimumShipLevel' has a constructor with 1 argument that is
Refactor: Fix issues found by cppcheck Resolve several issues found by cppcheck: [msl_verify.hpp:28]: (style) Class 'MinimumShipLevel' has a constructor with 1 argument that is not explicit. [ubi/watch.hpp:21]: (warning) Assignment of function parameter has no effect outside the function. Did you forget dereferencing it? [item_updater_main.cpp:22] -> [item_updater_main.cpp:49]: (style) Local variable rc shadows outer symbol [serialize.cpp:19]: (performance) Function parameter 'versionId' should be passed by const reference. [ubi/watch.hpp:43]: (style) Struct 'CustomFd' has a constructor with 1 argument that is not explicit. [serialize.cpp:52]: (performance) Function parameter 'versionId' should be passed by const reference. [serialize.cpp:116]: (performance) Function parameter 'versionId' should be passed by const reference. [activation.cpp:115] -> [activation.cpp:152]: (style) Local variable mapperResponseMsg shadows outer symbol [version.hpp:114]: (performance) Variable 'eraseCallback' is assigned in constructor body. Consider performing initialization in initialization list. [image_verify.hpp:53]: (style) Struct 'CustomFd' has a constructor with 1 argument that is not explicit. [ubi/item_updater_ubi.cpp:192]: (performance) Function parameter 'versionId' should be passed by const reference. [ubi/item_updater_ubi.cpp:203]: (performance) Function parameter 'versionId' should be passed by const reference. Tested: Verify the code compiles and cppcheck does not report the above issues. Change-Id: I096392a2a7a283fe198c9c29185125e61295e10f Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
716de5b8 |
| 01-Mar-2019 |
Lei YU <mine260309@gmail.com> |
test: Add sources of static PNOR Add sources in static dir to test. It generates a link error about duplcated GardReset::reset(). Then an issue is found that GardReset::~GardRes
test: Add sources of static PNOR Add sources in static dir to test. It generates a link error about duplcated GardReset::reset(). Then an issue is found that GardReset::~GardReset() is not virtual, this will casuse the destructor not calling its super class' dtor. To fix the above link error, add GardReset[Ubi|Static] to make ubi/static specific implementation in its own class. Tested: Verify the test build works fine. Change-Id: I41bd4d522e8b9c4053283c0cf4373807ef4f2d1c Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
6da3dae3 |
| 28-Feb-2019 |
Lei YU <mine260309@gmail.com> |
Static layout: Do not update PNOR when host is on Static layout only has 1 active and functional PNOR. When host is running, do not update PNOR. This is done by checking the return v
Static layout: Do not update PNOR when host is on Static layout only has 1 active and functional PNOR. When host is running, do not update PNOR. This is done by checking the return value of freeSpace(), and if it returns false, it means there is no space for PNOR because the host is running and erase() returns false. Tested: Verify the status becomes Failed when trying to activate a PNOR while host is running. Change-Id: Ie2986b0c6fd29557685f67eb77ccc29709e1669a Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
a9ac9279 |
| 22-Feb-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Make createActivation() common The function is almost the same for ubi and static layout, except a few differences that creates the ubi objects. Add below pure virtual
Refactor: Make createActivation() common The function is almost the same for ubi and static layout, except a few differences that creates the ubi objects. Add below pure virtual functions for ubi to create ubi specific objects * createActivationObject() * createVersionObject() Then it is possible to move most of the code in createActivation() into the commone one. Tested: On the last commit of the patch series, run code update and factory reset on Witherspoon and all work fine. Change-Id: Ieb3e783bc5b251529a55909f9e9f644230b274e7 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
eaa9b076 |
| 25-Feb-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Remove unused isLowestPriority() The function isLowestPriority() is not used, remove it. Tested: On the last commit of the patch series, run code update and fa
Refactor: Remove unused isLowestPriority() The function isLowestPriority() is not used, remove it. Tested: On the last commit of the patch series, run code update and factory reset on Witherspoon and all work fine. Change-Id: Ib71ce5b9ad0319f8d7db3442d507c3fee7aba7fa Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
bee51406 |
| 25-Feb-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Move determinId to ubi The function determinId is used only in ubi case, move it to ubi. Tested: On the last commit of the patch series, run code update and fa
Refactor: Move determinId to ubi The function determinId is used only in ubi case, move it to ubi. Tested: On the last commit of the patch series, run code update and factory reset on Witherspoon and all work fine. Change-Id: I8974d25bf904a5202b913fc185790c5ecf8eca90 Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|
#
f3ce4337 |
| 21-Feb-2019 |
Lei YU <mine260309@gmail.com> |
Refactor: Split item_updater to common and ubi The existing item_updater is highly coupled with ubifs. It will support static layout and ubi in future. So split the functions in to c
Refactor: Split item_updater to common and ubi The existing item_updater is highly coupled with ubifs. It will support static layout and ubi in future. So split the functions in to common ones and ubi specific ones, and move the ubi specific code in ubi dir. 1. Keep common functions and make them virtual for extension. createActiveAssociation() updateFunctionalAssociation() removeAssociation() erase() 2. Create ubi/item_updater_ubi and move other functions into it. 3. Change updateFunctionalAssociation() parameter for future use. To support static layout, a new item_updater_static will be written. Tested: On the last commit of the patch series, run code update and factory reset on Witherspoon and all work fine. Change-Id: I4cc55b31ee3f37c5b27168611305dee8ce02880a Signed-off-by: Lei YU <mine260309@gmail.com>
show more ...
|