blob: d4ed74d0e2f54a85031faa50692297cfcbaaa9b3 [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.")
zephyr_include_directories(
include
)
add_subdirectory("drivers")