summaryrefslogtreecommitdiff
path: root/zephyr
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-02-17 15:27:57 -0700
committerCommit Bot <commit-bot@chromium.org>2021-02-18 17:24:08 +0000
commit805f47818176fb2e9409a5a7d3c85139aac811e0 (patch)
treeaf17fd365fe7278c868a7240e061346ed8537f15 /zephyr
parent521fe55155e2809f8b284283d5dc7d39abac2eb8 (diff)
downloadchrome-ec-805f47818176fb2e9409a5a7d3c85139aac811e0.tar.gz
zephyr: move gpio_commands.c to CONFIG_PLATFORM_EC list
Adding ${PLATFORM_EC}/common/gpio_commands.c is the only file in this CMakeLists.txt which can get compiled without CONFIG_PLATFORM_EC=y. This fixes it so that that including the platform/ec module in the build should do nothing unless CONFIG_PLATFORM_EC=y, which is important for non-EC projects (i.e., chameleon). BUG=b:180545676 BRANCH=none TEST=zmake testall TEST=build chameleon with zmake (requires follow-on CLs) Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I604378b969f143e7b3f20a7858470330e093244f Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2702318 Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'zephyr')
-rw-r--r--zephyr/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt
index 5c25a033f5..69daa02ca9 100644
--- a/zephyr/CMakeLists.txt
+++ b/zephyr/CMakeLists.txt
@@ -148,6 +148,7 @@ add_subdirectory_ifdef(CONFIG_PLATFORM_EC "shim")
# layer.
zephyr_sources_ifdef(CONFIG_PLATFORM_EC "${PLATFORM_EC}/common/base32.c"
"${PLATFORM_EC}/common/console_output.c"
+ "${PLATFORM_EC}/common/gpio_commands.c"
"${PLATFORM_EC}/common/peripheral.c"
"${PLATFORM_EC}/common/printf.c"
"${PLATFORM_EC}/common/queue.c"
@@ -341,4 +342,3 @@ zephyr_sources_ifdef(CONFIG_PLATFORM_EC_VOLUME_BUTTONS
zephyr_sources_ifdef(CONFIG_PLATFORM_EC_VSTORE "${PLATFORM_EC}/common/vstore.c")
-zephyr_sources_ifdef(CONFIG_SHELL "${PLATFORM_EC}/common/gpio_commands.c")