[Sound-open-firmware] [PATCH] scripts: docker: remove sudo command

Xiuli Pan xiuli.pan at linux.intel.com
Tue Jun 12 11:12:39 CEST 2018


From: Pan Xiuli <xiuli.pan at linux.intel.com>

miss some sudo command, remove all sudo command.

Signed-off-by: Pan Xiuli <xiuli.pan at 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.
-- 
2.7.4



More information about the Sound-open-firmware mailing list