File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
storage/TESTS/kvstore/direct_access_devicekey_test Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 20
20
#include " stdint.h"
21
21
#include " platform/NonCopyable.h"
22
22
23
- #define DEVICEKEY_ENABLED 1
24
-
25
23
// Whole class is not supported if entropy is not enabled
26
24
// Flash device is required as Device Key is currently depending on it
27
- #if !DEVICE_FLASH || !defined(COMPONENT_FLASHIAP)
28
- #undef DEVICEKEY_ENABLED
25
+ // and KVStore needs to be configured properly, as Device key lives inside it
26
+ #if DEVICE_FLASH && defined(COMPONENT_FLASHIAP) && MBED_CONF_STORAGE_TDB_INTERNAL_INTERNAL_SIZE
27
+ #define DEVICEKEY_ENABLED 1
28
+ #else
29
29
#define DEVICEKEY_ENABLED 0
30
30
#endif
31
31
Original file line number Diff line number Diff line change 15
15
* limitations under the License.
16
16
*/
17
17
18
- #ifndef COMPONENT_FLASHIAP
19
- #error [NOT_SUPPORTED] Target must have internal FlashIAP for this test
20
- #else
21
-
22
18
#include " mbed.h"
23
19
#include < stdio.h>
24
20
#include < string.h>
35
31
#include " utest.h"
36
32
#include < stdlib.h>
37
33
34
+ #if !defined(COMPONENT_FLASHIAP) || !DEVICEKEY_ENABLED
35
+ #error [NOT_SUPPORTED] Target must have internal FlashIAP and Device Key configured for this test
36
+ #else
37
+
38
38
using namespace utest ::v1;
39
39
using namespace mbed ;
40
40
You can’t perform that action at this time.
0 commit comments