File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,10 +31,14 @@ include(${CMAKE_DIR}/supported_platforms.cmake)
3131# Package options
3232#------------------------------------------------------------------------------
3333option (UZMTP_ENABLE_TESTING "build libuzmtp tests" OFF )
34- set (UZMTP_PLATFORM "LINUX" CACHE STRING "Host operating system [${SUPPORTED_PLATFORMS} ]" )
3534
36- if (UZMTP_PLATFORM STREQUAL ZEPHYR)
35+ #------------------------------------------------------------------------------
36+ # Platform detection
37+ #------------------------------------------------------------------------------
38+ if (DEFINED ZEPHYR_BASE)
39+ message (STATUS "Detected Zephyr platform" )
3740 include (${CMAKE_DIR} /build_zephyr.cmake )
38- elseif (UZMTP_PLATFORM STREQUAL LINUX )
41+ else ()
42+ message (STATUS "Assuming Linux platform" )
3943 include (${CMAKE_DIR} /build_linux.cmake )
4044endif ()
Original file line number Diff line number Diff line change 11CONFIG_LIBUZMTP=y
22CONFIG_LIBUZMTP_LOG_LEVEL_DBG=y
3- CONFIG_NATIVE_POSIX_CONSOLE=y
43CONFIG_MINIMAL_LIBC_MALLOC=y
54CONFIG_MINIMAL_LIBC_MALLOC_ARENA_SIZE=2048
65CONFIG_MAIN_STACK_SIZE=2048
@@ -35,7 +34,4 @@ CONFIG_LOG_PRINTK=y
3534CONFIG_LOG_DEFAULT_LEVEL=3
3635CONFIG_LOG_OVERRIDE_LEVEL=0
3736CONFIG_LOG_MAX_LEVEL=4
38- CONFIG_LOG_BACKEND_NATIVE_POSIX=y
39- CONFIG_LOG_BACKEND_SHOW_COLOR=y
40- CONFIG_LOG_BACKEND_FORMAT_TIMESTAMP=y
4137CONFIG_LOG_MODE_IMMEDIATE=y
You can’t perform that action at this time.
0 commit comments