|  | 
| 44 | 44 | 
 | 
| 45 | 45 | cmake_minimum_required(VERSION 3.24) | 
| 46 | 46 | project(executorch) | 
|  | 47 | + | 
|  | 48 | +# MARK: - Start EXECUTORCH_H12025_BUILD_MIGRATION -------------------------------------------------- | 
|  | 49 | + | 
|  | 50 | +include(${PROJECT_SOURCE_DIR}/tools/cmake/common/preset.cmake) | 
|  | 51 | + | 
|  | 52 | +load_build_preset() | 
|  | 53 | +include(${PROJECT_SOURCE_DIR}/tools/cmake/preset/default.cmake) | 
|  | 54 | + | 
|  | 55 | +# Print all the configs that were called with announce_configured_options. | 
|  | 56 | +print_configured_options() | 
|  | 57 | + | 
|  | 58 | +# MARK: - End EXECUTORCH_H12025_BUILD_MIGRATION ---------------------------------------------------- | 
|  | 59 | + | 
| 47 | 60 | include(tools/cmake/Utils.cmake) | 
| 48 | 61 | include(CMakeDependentOption) | 
| 49 | 62 | 
 | 
| @@ -96,9 +109,6 @@ set(EXECUTORCH_PAL_DEFAULT | 
| 96 | 109 |           "Which PAL default implementation to use: one of {posix, minimal}" | 
| 97 | 110 | ) | 
| 98 | 111 | 
 | 
| 99 |  | -option(EXECUTORCH_ENABLE_LOGGING "Build with ET_LOG_ENABLED" | 
| 100 |  | -       ${_default_release_disabled_options} | 
| 101 |  | -) | 
| 102 | 112 | if(NOT EXECUTORCH_ENABLE_LOGGING) | 
| 103 | 113 |   # Avoid pulling in the logging strings, which can be large. Note that this | 
| 104 | 114 |   # will set the compiler flag for all targets in this directory, and for all | 
| @@ -170,8 +180,6 @@ option(EXECUTORCH_BUILD_ARM_BAREMETAL | 
| 170 | 180 |        "Build the Arm Baremetal flow for Cortex-M and Ethos-U" OFF | 
| 171 | 181 | ) | 
| 172 | 182 | 
 | 
| 173 |  | -option(EXECUTORCH_BUILD_COREML "Build the Core ML backend" OFF) | 
| 174 |  | - | 
| 175 | 183 | option(EXECUTORCH_BUILD_KERNELS_CUSTOM "Build the custom kernels" OFF) | 
| 176 | 184 | 
 | 
| 177 | 185 | option(EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT "Build the custom ops lib for AOT" | 
| @@ -234,6 +242,8 @@ option(EXECUTORCH_USE_DL "Use libdl library" ON) | 
| 234 | 242 | 
 | 
| 235 | 243 | option(EXECUTORCH_BUILD_CADENCE "Build the Cadence DSP backend" OFF) | 
| 236 | 244 | 
 | 
|  | 245 | +option(EXECUTORCH_BUILD_CORTEX_M "Build the Cortex-M backend" OFF) | 
|  | 246 | + | 
| 237 | 247 | # | 
| 238 | 248 | # pthreadpool: build pthreadpool library. Disable on unsupported platforms | 
| 239 | 249 | # | 
| @@ -707,6 +717,10 @@ if(EXECUTORCH_BUILD_XNNPACK) | 
| 707 | 717 |   add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/xnnpack) | 
| 708 | 718 | endif() | 
| 709 | 719 | 
 | 
|  | 720 | +if(EXECUTORCH_BUILD_CORTEX_M) | 
|  | 721 | +  add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/backends/cortex_m) | 
|  | 722 | +endif() | 
|  | 723 | + | 
| 710 | 724 | if(EXECUTORCH_BUILD_DEVTOOLS) | 
| 711 | 725 |   if(NOT EXECUTORCH_BUILD_ARM_BAREMETAL) | 
| 712 | 726 |     set(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER | 
|  | 
0 commit comments