Skip to content

Commit 8dd6af7

Browse files
committed
Initial test for cmake preset test
1 parent de74460 commit 8dd6af7

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

CMakePresets.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,17 @@
104104
"Windows"
105105
]
106106
}
107+
},
108+
{
109+
"name": "zephyr",
110+
"displayName": "Build everything buildable on Zephyr RTOS",
111+
"inherits": [
112+
"common"
113+
],
114+
"cacheVariables": {
115+
"EXECUTORCH_BUILD_PRESET_FILE": "${sourceDir}/tools/cmake/preset/zephyr.cmake",
116+
"CMAKE_OSX_DEPLOYMENT_TARGET": "12.0"
117+
}
107118
}
108119
]
109120
}

tools/cmake/preset/zephyr.cmake

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
# Copyright (c) Meta Platforms, Inc. and affiliates.
3+
# All rights reserved.
4+
#
5+
# This source code is licensed under the BSD-style license found in the
6+
# LICENSE file in the root directory of this source tree.
7+
8+
set_overridable_option(EXECUTORCH_BUILD_PYBIND ON)
9+
set_overridable_option(CMAKE_CXX_STANDARD_REQUIRED ON)
10+
set_overridable_option(CMAKE_TOOLCHAIN_FILE "/home/zephyruser/executorch/examples/arm/ethos-u-setup/arm-zephyr-eabi-gcc.cmake")
11+
set_overridable_option(CMAKE_SYSTEM_PROCESSOR cortex-m55)
12+
set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED OFF)
13+
set_overridable_option(EXECUTORCH_BUILD_KERNELS_QUANTIZED_AOT OFF)
14+
set_overridable_option(EXECUTORCH_ENABLE_LOGGING ON)
15+
set_overridable_option(EXECUTORCH_LOG_LEVEL Info)
16+
set_overridable_option(EXECUTORCH_BUILD_XNNPACK ON)
17+
set_overridable_option(EXECUTORCH_BUILD_PTHREADPOOL ON)
18+
set_overridable_option(EXECUTORCH_BUILD_CPUINFO ON)
19+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_TENSOR ON)
20+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_RUNNER_UTIL ON)
21+
set_overridable_option(EXECUTORCH_BUILD_KERNELS_CUSTOM ON)
22+
set_overridable_option(EXECUTORCH_BUILD_KERNELS_CUSTOM_AOT ON)
23+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_FLAT_TENSOR ON)
24+
set_overridable_option(EXECUTORCH_BUILD_EXTENSION_DATA_LOADER ON)
25+
set_overridable_option(EXECUTORCH_BUILD_KERNELS_OPTIMIZED ON)
26+
set_overridable_option(EXECUTORCH_BUILD_EXECUTOR_RUNNER ON)

0 commit comments

Comments
 (0)