diff options
Diffstat (limited to 'zephyr/CMakeLists.txt')
-rw-r--r-- | zephyr/CMakeLists.txt | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 7a71823bc8..920151341c 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -2,29 +2,6 @@ # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. -# Note: this cmake system implements only a zephyr module, and is not -# intended to build a complete EC. To build projects in platform/ec, -# you should continue to use the Makefile system. -# -# Googlers can find the design doc at go/zephyr-shim. - -if(NOT DEFINED ZEPHYR_CURRENT_MODULE_DIR) - message(FATAL_ERROR "This Cmake system implements only a Zephyr module, and - should not be invoked directly. Please continue to use the Makefile - system for non-Zephyr builds.") -endif() - -set(PLATFORM_EC "${ZEPHYR_CURRENT_MODULE_DIR}" CACHE PATH - "Path to the platform/ec repo.") -# Zephyr 2.3 will set ZEPHYR_CURRENT_MODULE_DIR to the directory of the -# CMakeLists.txt file, whereas 2.4 will set it to the actual module -# directory. Try to detect the condition by searching for -# zephyr/module.yml. -if(NOT EXISTS "${PLATFORM_EC}/zephyr/module.yml") - set(PLATFORM_EC "${PLATFORM_EC}/..") - assert_exists("${PLATFORM_EC}/zephyr/module.yml") -endif() - if(DEFINED ZMAKE_INCLUDE_DIR) zephyr_include_directories("${ZMAKE_INCLUDE_DIR}") endif() |