- make html
- ../check_doc_warnings.sh
+verify_cmake_style:
+ stage: build
+ image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
+ script:
+ tools/cmake/run_cmake_lint.sh
+
test_nvs_on_host:
stage: test
image: $CI_DOCKER_REGISTRY/esp32-ci-env$BOT_DOCKER_IMAGE_TAG
set(COMPONENT_SRCDIRS "." "gcov")
set(COMPONENT_ADD_INCLUDEDIRS "include")
-if (CONFIG_SYSVIEW_ENABLE)
+if(CONFIG_SYSVIEW_ENABLE)
list(APPEND COMPONENT_ADD_INCLUDEDIRS
sys_view/Config
sys_view/SEGGER
bluedroid/hci/include
bluedroid/osi/include
bluedroid/external/sbc/decoder/include
- bluedroid/external/sbc/encoder/include
+ bluedroid/external/sbc/encoder/include
bluedroid/btc/profile/esp/blufi/include
bluedroid/btc/profile/esp/include
bluedroid/btc/profile/std/a2dp/include
bluedroid/main
bluedroid/osi
bluedroid/external/sbc/decoder/srce
- bluedroid/external/sbc/encoder/srce
+ bluedroid/external/sbc/encoder/srce
bluedroid/btc/core
bluedroid/btc/profile/esp/blufi
bluedroid/btc/profile/std/gap
string(REGEX MATCH "crosstool-ng-[0-9a-g\\.-]+" ctng_version "${toolchain_stderr}")
string(REPLACE "crosstool-ng-" "" ctng_version "${ctng_version}")
- # We use FIND to match version instead of STREQUAL because some toolchains are built
- # with longer git hash strings than others. This will match any version which starts with
- # the expected version string.
- string(FIND "${ctng_version}" "${expected_ctng_version}" found_expected_version)
+ # We use FIND to match version instead of STREQUAL because some toolchains are built
+ # with longer git hash strings than others. This will match any version which starts with
+ # the expected version string.
+ string(FIND "${ctng_version}" "${expected_ctng_version}" found_expected_version)
if(NOT ctng_version)
message(WARNING "Xtensa toolchain ${CMAKE_C_COMPILER} does not appear to be built with crosstool-ng. "
"${ctng_version_warning}")
# (cmake calls this CMAKE_SOURCE_DIR, keeping old name for compatibility.)
set(PROJECT_PATH "${CMAKE_SOURCE_DIR}")
- # Note: Unlike older build system, "main" is no longer a component. See build docs for details.
+ # Note: Unlike older build system, "main" is no longer a component. See build docs for details.
set_default(COMPONENT_DIRS "${PROJECT_PATH}/components ${EXTRA_COMPONENT_DIRS} ${IDF_PATH}/components")
spaces2list(COMPONENT_DIRS)
add_compile_options("-I${CMAKE_BINARY_DIR}") # for sdkconfig.h
# Enable ccache if it's on the path
- if(NOT CCACHE_DISABLE)
- find_program(CCACHE_FOUND ccache)
- if(CCACHE_FOUND)
- message(STATUS "ccache will be used for faster builds")
- set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
- endif()
+ if(NOT CCACHE_DISABLE)
+ find_program(CCACHE_FOUND ccache)
+ if(CCACHE_FOUND)
+ message(STATUS "ccache will be used for faster builds")
+ set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
+ endif()
endif()
endfunction()
if(NOT IDF_PATH)
# Documentation says you should set IDF_PATH in your environment, but we
# can infer it here if it's not set.
- set(IDF_PATH ${CMAKE_CURRENT_LIST_DIR})
+ set(IDF_PATH ${CMAKE_CURRENT_LIST_DIR})
endif()
file(TO_CMAKE_PATH "${IDF_PATH}" IDF_PATH)
set($ENV{IDF_PATH} "${IDF_PATH}")