File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,7 +68,12 @@ RUN pip install -r /tmp/requirements-dev.txt && rm /tmp/requirements-dev.txt
6868RUN west sdk install
6969
7070# Point CMake and west at the pre-built Zephyr workspace.
71+ # ZEPHYR_BASE is used by west and many Zephyr scripts.
72+ # CMAKE_PREFIX_PATH lets find_package(Zephyr) work without relying on the
73+ # per-user CMake package registry (~/.cmake/packages), which won't exist
74+ # when CI runs the container as a different UID than the build-time user.
7175ENV ZEPHYR_BASE=/opt/zephyr-workspace/zephyr
76+ ENV CMAKE_PREFIX_PATH=/opt/zephyr-workspace/zephyr/share/zephyr-package:/opt/zephyr-workspace/zephyr/share/sysbuild-package
7277
7378# Entrypoint ensures west can find its workspace from the bind-mounted
7479# CircuitPython tree by symlinking .west if it doesn't already exist.
Original file line number Diff line number Diff line change @@ -34,10 +34,4 @@ path = zephyr-config
3434base = zephyr
3535EOF
3636
37- # Register Zephyr CMake packages for the current user. The Dockerfile ran
38- # west zephyr-export during build (as root), but CI may run the container as
39- # a different UID whose ~/.cmake/packages won't have those entries.
40- cd " ${ZEPHYR_WS} " && west zephyr-export 2> /dev/null || true
41- cd " ${PORT_DIR} "
42-
4337exec " $@ "
You can’t perform that action at this time.
0 commit comments