diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2022-08-04 08:16:47 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-08-04 18:20:58 +0000 |
commit | d16be8f98d81d7e589935d1c6c78ec4430a8960d (patch) | |
tree | d0e09d79a9f70222fd6ebb89f1da22a4cc4864da /zephyr/test/drivers | |
parent | b26904c670250b90ede395ae9969ffe579719f5a (diff) | |
download | chrome-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/drivers')
-rw-r--r-- | zephyr/test/drivers/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zephyr/test/drivers/CMakeLists.txt b/zephyr/test/drivers/CMakeLists.txt index 81b43bf6d2..37353b59f8 100644 --- a/zephyr/test/drivers/CMakeLists.txt +++ b/zephyr/test/drivers/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(drivers) add_subdirectory(common) |