-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bare metal: Adding TDBStore API creates many unrelated dependencies #13657
Comments
Filesystem is included also in Furthermore, the include path I believe the whole new structure should be tested with bare metal profile in general. |
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
I'm in favour of (partially) reverting to pre- Mbed OS 6.3 structure - having fine-grained control of which type of KVStore to enable. Working in progress on this. |
@boraozgen I've created a PR to improve this: #13908 |
I'm experiencing this issue in mbed-os 6.15.1.
|
@0xc0170 Yes, I followed those instructions. To reproduce:
Results in this error:
As you can see from the source, |
Any news on this? |
Description of defect
I presume this was introduced with the 6.3.0 restructuring, since it does not occur in 6.2.0.
I use the Storage API, specifically TDBStore in bare metal profile. With 6.2.0 and earlier, I added
tdbstore
to therequires
array and it worked with a couple other dependencies. With 6.3.0, the TDBStore API was moved underkv-global-api
. The issue is, since there are other source files such asFileSystemStore.cpp
underkv-global-api
, it creates a chain of dependencies which is almost impossible to satisfy. This is the compiler error I receive when I only addkv-global-api
:Of course I should not be required to add
filesystem
to my dependencies since I do not use it at all. However when I try to do it, it creates further dependencies such aslittlefs
. It goes on like this.I think the key problem here is
FileSystemStore.cpp
residing under the same API as KVStore.Target(s) affected by this defect ?
All targets.
Toolchain(s) (name and version) displaying this defect ?
GCC ARM 9-2020-q2-update
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.3.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli
How is this defect reproduced ?
Create a bare-metal example.
Try
#include "TDBStore.h"
.The text was updated successfully, but these errors were encountered: