File tree Expand file tree Collapse file tree 3 files changed +462
-3
lines changed
Expand file tree Collapse file tree 3 files changed +462
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ option(CONFIG_EXTERNAL_CRYPTO_IMPL "Use external crypto implementations")
1616option (CONFIG_EXTERNAL_KEY_LOAD "Use crypto exstension for loading keys" )
1717option (CONFIG_USE_UTILS "Use the extra functionality found in the collective utils folder" )
1818option (CONFIG_NO_DEFAULT_IMPL "Build with no default implementation" )
19+ option (CONFIG_COMPACT_STORAGE "Build with compact storage implementation" )
1920option (CONFIG_BUILD_LIB_ONLY "Build libraries only" )
2021
2122set (CONFIG_SS_STORAGE_PATH_DEFAULT "./files" CACHE STRING "Default storage path for SoftSIM filesystem" )
@@ -46,6 +47,11 @@ if(CONFIG_EXTERNAL_CRYPTO_IMPL)
4647 add_compile_definitions (CONFIG_EXTERNAL_CRYPTO_IMPL )
4748endif ()
4849
50+ if (CONFIG_COMPACT_STORAGE)
51+ message (STATUS "Using compact storage implementation (from nRF91 SoftSIM project)" )
52+ add_compile_definitions (CONFIG_COMPACT_STORAGE )
53+ endif ()
54+
4955if (CONFIG_EXTERNAL_KEY_LOAD)
5056 add_compile_definitions (CONFIG_EXTERNAL_KEY_LOAD )
5157endif ()
Original file line number Diff line number Diff line change @@ -5,12 +5,20 @@ add_subdirectory(crypto)
55add_subdirectory (milenage )
66add_subdirectory (uicc )
77
8- add_library (storage STATIC storage.c
9- $<$<NOT :$<BOOL :${CONFIG_NO_DEFAULT_IMPL} >>:fs .c >)
8+ if (CONFIG_COMPACT_STORAGE)
9+ set (storage_sources storage_compact.c)
10+ else ()
11+ set (storage_sources storage.c)
12+ if (NOT CONFIG_NO_DEFAULT_IMPL)
13+ list (APPEND storage_sources fs.c)
14+ endif ()
15+ endif ()
16+
17+ add_library (storage STATIC ${storage_sources} )
18+
1019target_include_directories (storage PUBLIC ${PROJECT_SOURCE_DIR} /include )
1120
1221if (NOT CONFIG_BUILD_LIB_ONLY)
1322 add_executable (softsim main.c )
1423 target_link_libraries (softsim uicc milenage crypto storage $<$<TARGET_EXISTS :utils >:utils >)
1524endif ()
16-
You can’t perform that action at this time.
0 commit comments