From 096700bb79e9a8ef4713e34971f1d87ffe60b2eb Mon Sep 17 00:00:00 2001 From: Andrew Reusch Date: Fri, 14 May 2021 09:56:24 -0700 Subject: [PATCH] Mark zephyr install world-writable in docker image to unblock #7995. (#8037) --- docker/install/ubuntu_install_zephyr.sh | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/docker/install/ubuntu_install_zephyr.sh b/docker/install/ubuntu_install_zephyr.sh index a092810eef4d..7e5aae96a38f 100644 --- a/docker/install/ubuntu_install_zephyr.sh +++ b/docker/install/ubuntu_install_zephyr.sh @@ -41,26 +41,19 @@ sudo apt-get update sudo apt-get install -y cmake -#mkdir /opt/west -#python3.6 -mvenv /opt/west # NOTE: include .6 to make a python3.6 link for west/cmake. -#/opt/west/bin/pip3 install west pip3 install west -#cat </dev/null -##!/bin/bash -e -# -#source /opt/west/bin/activate -#export ZEPHYR_BASE=/opt/zephyrproject/zephyr -#west "\$@" -#EOF -#chmod a+x /usr/local/bin/west - # Init ZephyrProject ZEPHYR_PROJECT_PATH=/opt/zephyrproject ZEPHYR_INIT_SCRIPT=$(find -name "ubuntu_init_zephyr_project.sh") bash ${ZEPHYR_INIT_SCRIPT} ${ZEPHYR_PROJECT_PATH} v2.5-branch cd ${ZEPHYR_PROJECT_PATH} +# As part of the build process, Zephyr needs to touch some symlinks in zephyr/misc/generated/syscalls_links (this path is relative to the +# build directory for a project). Mark the zephyr installation world-writable since this is a docker +# container +chmod -R o+w ${ZEPHYR_PROJECT_PATH} + # This step is required because of the way docker/bash.sh works. It sets the user home directory to # /workspace (or the TVM root, anyhow), and this means that zephyr expects a ~/.cache directory to be # present *in the TVM project root*. Since we don't intend to add one to avoid dirtying the repo