[Sound-open-firmware] [PATCH] scripts: docker: remove sudo command
From: Pan Xiuli xiuli.pan@linux.intel.com
miss some sudo command, remove all sudo command.
Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com --- scripts/docker_build/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/scripts/docker_build/Dockerfile b/scripts/docker_build/Dockerfile index 9c6ce85..a623cda 100644 --- a/scripts/docker_build/Dockerfile +++ b/scripts/docker_build/Dockerfile @@ -68,14 +68,16 @@ ENV HOME /home/sof USER sof
RUN cd /home/sof && git clone https://github.com/01org/osadsp-crosstool-ng.git /home/sof/ct-ng.git && \ -cd ct-ng.git && ./bootstrap && ./configure --prefix=`pwd` && \ + mkdir -p /home/sof/work/ && \ + cd ct-ng.git && ./bootstrap && ./configure --prefix=`pwd` && \ make && make install && \ for arch in byt hsw bxt cnl; do \ ./ct-ng xtensa-${arch}-elf && \ - ./ct-ng build ; \ + sed -i 's#${CT_TOP_DIR}/builds#/home/sof/work#g' .config && \ + ./ct-ng build && \ + ./ct-ng distclean ; \ done && \ - mkdir -p /home/sof/work/ && \ - cp -r builds/xtensa-*-elf /home/sof/work/ && cd /home/sof/ && sudo rm -rf ct-ng.git + cd /home/sof/ && rm -rf ct-ng.git
ENV PATH="/home/sof/work/xtensa-byt-elf/bin:${PATH}" ENV PATH="/home/sof/work/xtensa-hsw-elf/bin:${PATH}" @@ -91,7 +93,7 @@ RUN cd /home/sof && git clone https://github.com/jcmvbkbc/newlib-xtensa.git newl make install && \ make distclean; \ done && \ - cd /home/sof/ && sudo rm -rf newlib-xtensa.git + cd /home/sof/ && rm -rf newlib-xtensa.git
# Create direcroties for the host machines sof/soft directories to be mounted.
On Tue, 2018-06-12 at 17:12 +0800, Xiuli Pan wrote:
From: Pan Xiuli xiuli.pan@linux.intel.com
miss some sudo command, remove all sudo command.
Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com
Applied, can you also update the instructions explaining how we refresh the container after docker updates (or send a script that does this).
Thanks
Liam
On 6/12/2018 17:22, Liam Girdwood wrote:
On Tue, 2018-06-12 at 17:12 +0800, Xiuli Pan wrote:
From: Pan Xiuli xiuli.pan@linux.intel.com
miss some sudo command, remove all sudo command.
Signed-off-by: Pan Xiuli xiuli.pan@linux.intel.com
Applied, can you also update the instructions explaining how we refresh the container after docker updates (or send a script that does this).
I think a script could be better. I will update the wiki as well.
Thanks Xiuli
Thanks
Liam _______________________________________________ Sound-open-firmware mailing list Sound-open-firmware@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/sound-open-firmware
participants (3)
-
Liam Girdwood
-
Pan, Xiuli
-
Xiuli Pan