From 8a0ba8f0c266d4939002cb71e745f84c2b370f41 Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Mon, 20 Jul 2020 04:49:40 -0700 Subject: [PATCH 1/2] Refactor storage/system_storage directory --- .../tests/TESTS/blockdevice/general_block_device/README.md | 2 +- storage/{system_storage => platform}/mbed_lib.json | 0 .../SystemStorage.cpp => platform/source/PlatformStorage.cpp} | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename storage/{system_storage => platform}/mbed_lib.json (100%) rename storage/{system_storage/SystemStorage.cpp => platform/source/PlatformStorage.cpp} (100%) diff --git a/storage/blockdevice/tests/TESTS/blockdevice/general_block_device/README.md b/storage/blockdevice/tests/TESTS/blockdevice/general_block_device/README.md index 586137f9c04..2b9fc1486ce 100644 --- a/storage/blockdevice/tests/TESTS/blockdevice/general_block_device/README.md +++ b/storage/blockdevice/tests/TESTS/blockdevice/general_block_device/README.md @@ -43,7 +43,7 @@ Please review the [documentation](https://os.mbed.com/docs/latest/tutorials/debu In Mbed OS, a C++ class that inherits from the [BlockDevice](https://os.mbed.com/docs/latest/reference/storage.html#block-devices) interface represents each block device. -This test uses the default block device that the function `get_default_instance()` receives. [SystemStorage.cpp](https://github.com/ARMmbed/mbed-os/blob/master/storage/system_storage/SystemStorage.cpp#L35-L77) defines this as `MBED_WEAK`. If you would like to test a new block device, you have to override it. +This test uses the default block device that the function `get_default_instance()` receives. [PlatformStorage.cpp](https://github.com/ARMmbed/mbed-os/blob/master/storage/platform/source/PlatformStorage.cpp#L35-L77) defines this as `MBED_WEAK`. If you would like to test a new block device, you have to override it. First add the new block device .cpp and header files to the [blockdevice folder](https://github.com/ARMmbed/mbed-os/tree/master/storage/blockdevice). Then, implement `get_default_instance()` inside the test `main.cpp`. diff --git a/storage/system_storage/mbed_lib.json b/storage/platform/mbed_lib.json similarity index 100% rename from storage/system_storage/mbed_lib.json rename to storage/platform/mbed_lib.json diff --git a/storage/system_storage/SystemStorage.cpp b/storage/platform/source/PlatformStorage.cpp similarity index 100% rename from storage/system_storage/SystemStorage.cpp rename to storage/platform/source/PlatformStorage.cpp From 59072e9f5888cd50db290841bbadb753c3f6000b Mon Sep 17 00:00:00 2001 From: Rajkumar Kanagaraj Date: Mon, 20 Jul 2020 04:51:06 -0700 Subject: [PATCH 2/2] Update documentation reference --- UNITTESTS/empty_baseline/unittest.cmake | 4 ---- 1 file changed, 4 deletions(-) diff --git a/UNITTESTS/empty_baseline/unittest.cmake b/UNITTESTS/empty_baseline/unittest.cmake index 2dc0fa46488..e6a4da5bcf2 100644 --- a/UNITTESTS/empty_baseline/unittest.cmake +++ b/UNITTESTS/empty_baseline/unittest.cmake @@ -11,10 +11,6 @@ set(unittest-includes ${unittest-includes} ../features/frameworks/mbed-trace/mbed-trace/ ) -set(unittest-sources - ../storage/system_storage/SystemStorage.cpp -) - set(unittest-test-sources empty_baseline/empty_baseline.cpp )