1#!/bin/sh 2# SPDX-License-Identifier: BSD-3-Clause 3# Copyright(c) 2021 Intel Corporation. All rights reserved. 4 5# "All problems can be solved by another level of indirection" 6# Ideally, this script would not be needed. 7# 8# Minor adjustments to the docker image provided by the Zephyr project. 9 10set -e 11set -x 12 13unset ZEPHYR_BASE 14 15# Make sure we're in the right place; chgrp -R below. 16test -e ./scripts/xtensa-build-zephyr.sh 17 18sudo apt-get update 19sudo apt-get -y install tree 20 21if test -e zephyrproject; then 22 ./scripts/xtensa-build-zephyr.sh -a 23else 24 # Matches docker.io/zephyrprojectrtos/zephyr-build:latest gid 25 ls -ln | head 26 stat . 27 sudo chgrp -R 1000 . 28 sudo chmod -R g+rwX . 29 ./scripts/xtensa-build-zephyr.sh -a -c 30fi 31