summaryrefslogtreecommitdiff
path: root/zephyr/test/ec_app
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2022-08-04 08:16:47 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-08-04 18:20:58 +0000
commitd16be8f98d81d7e589935d1c6c78ec4430a8960d (patch)
treed0e09d79a9f70222fd6ebb89f1da22a4cc4864da /zephyr/test/ec_app
parentb26904c670250b90ede395ae9969ffe579719f5a (diff)
downloadchrome-ec-d16be8f98d81d7e589935d1c6c78ec4430a8960d.tar.gz
zephyr: Make ZEPHYR_BASE not an environment variable
To minimize the amount of environment variable dependency we have, move ZEPHYR_BASE (used to find the "Zephyr" CMake package) from an environment variable to a CMake definition. This makes our only required environment variable PATH, so we can do a complete environment scrub for all commands executed. BUG=b:239619222 BRANCH=none TEST=zmake testall Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: Ie34a9e1f49177649cf0e54c95d73b41bd1b94992 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3811715 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'zephyr/test/ec_app')
-rw-r--r--zephyr/test/ec_app/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/test/ec_app/CMakeLists.txt b/zephyr/test/ec_app/CMakeLists.txt
index 8ee9a554a7..cdcf9d1482 100644
--- a/zephyr/test/ec_app/CMakeLists.txt
+++ b/zephyr/test/ec_app/CMakeLists.txt
@@ -3,7 +3,7 @@
# found in the LICENSE file.
cmake_minimum_required(VERSION 3.13.1)
-find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
+find_package(Zephyr REQUIRED HINTS "${ZEPHYR_BASE}")
project(ec_app)
FILE(GLOB app_sources src/*.c)