File tree Expand file tree Collapse file tree 39 files changed +165
-64
lines changed
platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA
tests/TESTS/direct_access_devicekey/tdb
TESTS/filesystemstore/general
include/kvstore_global_api
tests/TESTS/securestore/whitebox Expand file tree Collapse file tree 39 files changed +165
-64
lines changed Original file line number Diff line number Diff line change 25
25
" system-storage" ,
26
26
" SecureStore" ,
27
27
" storage" ,
28
+ " kvstore" ,
29
+ " tdbstore" ,
30
+ " filesystemstore" ,
28
31
" kv-global-api" ,
29
32
" direct-access-devicekey" ,
30
33
" kv-config" ,
Original file line number Diff line number Diff line change @@ -122,6 +122,9 @@ set(unittest-includes-base
122
122
"${PROJECT_SOURCE_DIR} /../storage/kvstore/include"
123
123
"${PROJECT_SOURCE_DIR} /../storage/kvstore/kv_config"
124
124
"${PROJECT_SOURCE_DIR} /../storage/kvstore/kv_config/include"
125
+ "${PROJECT_SOURCE_DIR} /../storage/kvstore/tdbstore/include"
126
+ "${PROJECT_SOURCE_DIR} /../storage/kvstore/filesystemstore/include"
127
+ "${PROJECT_SOURCE_DIR} /../storage/kvstore/kvstore_global_api/include"
125
128
"${PROJECT_SOURCE_DIR} /../drivers"
126
129
"${PROJECT_SOURCE_DIR} /../drivers/include"
127
130
"${PROJECT_SOURCE_DIR} /../drivers/include/drivers"
Original file line number Diff line number Diff line change @@ -17,4 +17,6 @@ target_sources(mbed-device_key
17
17
target_link_libraries (mbed-device_key
18
18
INTERFACE
19
19
mbed-storage-kvstore
20
+ mbed-storage-tdbstore
21
+ mbed-storage-kv-global-api
20
22
)
Original file line number Diff line number Diff line change 21
21
#include " mbedtls/cmac.h"
22
22
#include " mbedtls/platform.h"
23
23
#include " kvstore/KVStore.h"
24
- #include " kvstore /TDBStore.h"
25
- #include " kvstore /KVMap.h"
24
+ #include " tdbstore /TDBStore.h"
25
+ #include " kvstore_global_api /KVMap.h"
26
26
#include " kv_config/kv_config.h"
27
27
#include " mbed_wait_api.h"
28
28
#include < stdlib.h>
Original file line number Diff line number Diff line change @@ -24,4 +24,7 @@ target_link_libraries(mbed-psa
24
24
INTERFACE
25
25
mbed-mbedtls
26
26
mbed-storage-kvstore
27
+ mbed-storage-tdbstore
28
+ mbed-storage-kv-global-api
29
+ mbed-device_key
27
30
)
Original file line number Diff line number Diff line change @@ -18,6 +18,12 @@ add_library(mbed-storage-littlefs INTERFACE)
18
18
add_library (mbed-storage-fat INTERFACE )
19
19
20
20
add_library (mbed-storage-kvstore INTERFACE )
21
+ add_library (mbed-storage-tdbstore INTERFACE )
22
+ add_library (mbed-storage-filesystemstore INTERFACE )
23
+ add_library (mbed-storage-securestore INTERFACE )
24
+ add_library (mbed-storage-kv-config INTERFACE )
25
+ add_library (mbed-storage-direct-access-devicekey INTERFACE )
26
+ add_library (mbed-storage-kv-global-api INTERFACE )
21
27
22
28
23
29
add_subdirectory (blockdevice )
@@ -29,8 +35,3 @@ target_include_directories(mbed-storage
29
35
INTERFACE
30
36
.
31
37
)
32
-
33
- target_compile_definitions (mbed-storage
34
- INTERFACE
35
- MBED_CONF_FILESYSTEM_PRESENT=1
36
- )
Original file line number Diff line number Diff line change @@ -18,3 +18,8 @@ target_sources(mbed-storage-filesystem
18
18
source /File.cpp
19
19
source /FileSystem.cpp
20
20
)
21
+
22
+ target_compile_definitions (mbed-storage
23
+ INTERFACE
24
+ MBED_CONF_FILESYSTEM_PRESENT=1
25
+ )
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- add_subdirectory (direct_access_devicekey )
5
- add_subdirectory (kv_config )
4
+ add_subdirectory (tdbstore )
5
+ add_subdirectory (filesystemstore )
6
6
add_subdirectory (securestore )
7
+ add_subdirectory (kv_config )
8
+ add_subdirectory (direct_access_devicekey )
9
+ add_subdirectory (kvstore_global_api )
7
10
8
11
target_include_directories (mbed-storage-kvstore
9
12
INTERFACE
10
13
.
11
- ./include
12
- ./include/kvstore
13
- )
14
-
15
- target_sources (mbed-storage-kvstore
16
- INTERFACE
17
- source /FileSystemStore.cpp
18
- source /KVMap.cpp
19
- source /TDBStore.cpp
20
- source /kvstore_global_api.cpp
21
- )
22
-
23
- target_link_libraries (mbed-storage-kvstore
24
- INTERFACE
25
- mbed-device_key
26
- mbed-storage-blockdevice
27
- mbed-storage-filesystem
28
- mbed-storage-fat
29
- mbed-storage-littlefs
30
- mbed-storage-flashiap
31
- mbed-storage-sd
14
+ include
15
+ include /kvstore
32
16
)
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- target_include_directories (mbed-storage-kvstore
4
+ target_include_directories (mbed-storage-direct-access-devicekey
5
5
INTERFACE
6
6
.
7
- ./ include
8
- ./ include/direct_access_devicekey
7
+ include
8
+ include /direct_access_devicekey
9
9
)
10
10
11
- target_sources (mbed-storage-kvstore
11
+ target_sources (mbed-storage-direct-access-devicekey
12
12
INTERFACE
13
13
source /DirectAccessDevicekey.cpp
14
14
)
15
+
16
+ target_link_libraries (mbed-storage-direct-access-devicekey
17
+ INTERFACE
18
+ mbed-storage-kvstore
19
+ mbed-storage-kv-config
20
+ )
Original file line number Diff line number Diff line change 24
24
#include < string.h>
25
25
#include " DeviceKey.h"
26
26
#include " kvstore/KVStore.h"
27
- #include " kvstore /KVMap.h"
27
+ #include " kvstore_global_api /KVMap.h"
28
28
#include " kv_config/kv_config.h"
29
- #include " kvstore /TDBStore.h"
29
+ #include " tdbstore /TDBStore.h"
30
30
#include " FlashIAP.h"
31
31
#include " FlashIAPBlockDevice.h"
32
32
#include " direct_access_devicekey/DirectAccessDevicekey.h"
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ target_include_directories (mbed-storage-filesystemstore
5
+ INTERFACE
6
+ .
7
+ include
8
+ include /filesystemstore
9
+ )
10
+
11
+ target_sources (mbed-storage-filesystemstore
12
+ INTERFACE
13
+ source /FileSystemStore.cpp
14
+ )
15
+
16
+ target_link_libraries (mbed-storage-filesystemstore
17
+ INTERFACE
18
+ mbed-storage-kvstore
19
+ mbed-storage-filesystem
20
+ mbed-storage-kv-config
21
+ )
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " filesystemstore"
3
+ }
Original file line number Diff line number Diff line change 16
16
* limitations under the License.
17
17
*/
18
18
19
- #include " kvstore /FileSystemStore.h"
19
+ #include " filesystemstore /FileSystemStore.h"
20
20
#include " kv_config/kv_config.h"
21
21
#include " filesystem/Dir.h"
22
22
#include " filesystem/File.h"
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 16
16
17
17
#include " gtest/gtest.h"
18
18
#include " blockdevice/HeapBlockDevice.h"
19
- #include " kvstore /FileSystemStore.h"
19
+ #include " filesystemstore /FileSystemStore.h"
20
20
#include " littlefs/LittleFileSystem.h"
21
21
#include " mbed_error.h"
22
22
#include < stdlib.h>
@@ -34,7 +34,7 @@ class FileSystemStoreModuleTest : public testing::Test {
34
34
virtual void SetUp ()
35
35
{
36
36
fs = new LittleFileSystem (" kvstore" , &heap);
37
- if (fs->mount (&heap) != MBED_SUCCESS) {
37
+ if (fs->mount (&heap) != MBED_SUCCESS) {
38
38
EXPECT_EQ (fs->reformat (&heap), MBED_SUCCESS);
39
39
}
40
40
store = new FileSystemStore (fs);
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ set(unittest-includes ${unittest-includes}
10
10
11
11
set (unittest-sources
12
12
../storage/blockdevice/source/HeapBlockDevice.cpp
13
- ../storage/kvstore/source/FileSystemStore.cpp
13
+ ../storage/kvstore/filesystemstore/ source/FileSystemStore.cpp
14
14
../storage/filesystem/littlefs/source/LittleFileSystem.cpp
15
15
../storage/filesystem/source/Dir.cpp
16
16
../storage/filesystem/source/File.cpp
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- target_include_directories (mbed-storage-kvstore
4
+ target_include_directories (mbed-storage-kv-config
5
5
INTERFACE
6
6
.
7
- ./ include
8
- ./ include/kv_config
7
+ include
8
+ include /kv_config
9
9
)
10
10
11
- target_sources (mbed-storage-kvstore
11
+ target_sources (mbed-storage-kv-config
12
12
INTERFACE
13
13
source /kv_config.cpp
14
14
)
15
+
16
+ target_link_libraries (mbed-storage-kv-config
17
+ INTERFACE
18
+ mbed-storage-kvstore
19
+ mbed-storage-blockdevice
20
+ mbed-storage-tdbstore
21
+ mbed-storage-filesystemstore
22
+ mbed-storage-securestore
23
+ mbed-storage-littlefs
24
+ mbed-storage-fat
25
+ mbed-storage-flashiap
26
+ mbed-storage-sd
27
+ )
Original file line number Diff line number Diff line change 16
16
17
17
#include " kv_config.h"
18
18
#include " kvstore/KVStore.h"
19
- #include " kvstore /KVMap.h"
19
+ #include " kvstore_global_api /KVMap.h"
20
20
#include " blockdevice/BlockDevice.h"
21
21
#include " filesystem/FileSystem.h"
22
- #include " kvstore /FileSystemStore.h"
22
+ #include " filesystemstore /FileSystemStore.h"
23
23
#include " blockdevice/SlicingBlockDevice.h"
24
24
#include " fat/FATFileSystem.h"
25
25
#include " littlefs/LittleFileSystem.h"
26
- #include " kvstore /TDBStore.h"
26
+ #include " tdbstore /TDBStore.h"
27
27
#include " mbed_error.h"
28
28
#include " drivers/FlashIAP.h"
29
29
#include " blockdevice/FlashSimBlockDevice.h"
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ target_include_directories (mbed-storage-kv-global-api
5
+ INTERFACE
6
+ .
7
+ include
8
+ include /kvstore_global_api
9
+ )
10
+
11
+ target_sources (mbed-storage-kv-global-api
12
+ INTERFACE
13
+ source /KVMap.cpp
14
+ source /kvstore_global_api.cpp
15
+ )
16
+
17
+ target_link_libraries (mbed-storage-kv-global-api
18
+ INTERFACE
19
+ mbed-storage-kvstore
20
+ mbed-storage-kv-config
21
+ mbed-storage-blockdevice
22
+ mbed-storage-filesystem
23
+ )
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " kv-global-api" ,
3
+ "requires" : [" kvstore" ]
4
+ }
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
#include " kvstore/KVStore.h"
18
- #include " kvstore /KVMap.h"
18
+ #include " kvstore_global_api /KVMap.h"
19
19
#include " kv_config/kv_config.h"
20
20
#include < stdlib.h>
21
21
#include " string.h"
Original file line number Diff line number Diff line change 13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- #include " kvstore_global_api.h"
16
+ #include " kvstore_global_api/kvstore_global_api .h"
17
17
18
18
#include " kv_config/kv_config.h"
19
- #include " kvstore /KVMap.h"
19
+ #include " kvstore_global_api /KVMap.h"
20
20
#include " kvstore/KVStore.h"
21
21
#include " mbed_error.h"
22
22
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " kv-global-api "
2
+ "name" : " kvstore "
3
3
}
Original file line number Diff line number Diff line change 1
1
# Copyright (c) 2020 ARM Limited. All rights reserved.
2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
- target_include_directories (mbed-storage-kvstore
4
+ target_include_directories (mbed-storage-securestore
5
5
INTERFACE
6
6
.
7
- ./ include
8
- ./ include/securestore
7
+ include
8
+ include /securestore
9
9
)
10
10
11
- target_sources (mbed-storage-kvstore
11
+ target_sources (mbed-storage-securestore
12
12
INTERFACE
13
13
source /SecureStore.cpp
14
14
)
15
+
16
+ target_link_libraries (mbed-storage-securestore
17
+ INTERFACE
18
+ mbed-storage-kvstore
19
+ mbed-device_key
20
+ )
Original file line number Diff line number Diff line change 17
17
*/
18
18
19
19
#include " securestore/SecureStore.h"
20
- #include " kvstore /TDBStore.h"
20
+ #include " tdbstore /TDBStore.h"
21
21
#ifdef MBED_CONF_RTOS_PRESENT
22
22
#include " Thread.h"
23
23
#endif
Original file line number Diff line number Diff line change
1
+ # Copyright (c) 2020 ARM Limited. All rights reserved.
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ target_include_directories (mbed-storage-tdbstore
5
+ INTERFACE
6
+ .
7
+ include
8
+ include /tdbstore
9
+ )
10
+
11
+ target_sources (mbed-storage-tdbstore
12
+ INTERFACE
13
+ source /TDBStore.cpp
14
+ )
15
+
16
+ target_link_libraries (mbed-storage-tdbstore
17
+ INTERFACE
18
+ mbed-storage-kvstore
19
+ mbed-storage-blockdevice
20
+ )
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " tdbstore"
3
+ }
Original file line number Diff line number Diff line change 16
16
17
17
// ----------------------------------------------------------- Includes -----------------------------------------------------------
18
18
19
- #include " kvstore /TDBStore.h"
19
+ #include " tdbstore /TDBStore.h"
20
20
21
21
#include < algorithm>
22
22
#include < string.h>
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ *
You can’t perform that action at this time.
0 commit comments