blob: d6d259754cf2246924e92c0b3d244e4805800564 [file] [log] [blame]
# Copyright 2020 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Build the EC's expected ec_version.h file.
set(ec_version_file "${CMAKE_BINARY_DIR}/zephyr/include/generated/ec_version.h")
execute_process(COMMAND sh ${PLATFORM_EC}/util/getversion.sh BOARD=${BOARD} > ${ec_version_file})
# Set ${ZEPHYR_CHROME} as a convenience variable to the root path of
# this module.
set(ZEPHYR_CHROME "${ZEPHYR_CURRENT_MODULE_DIR}" CACHE PATH
"Path to the zephyr-chrome repository.")
add_subdirectory("drivers")