docker_build: Add support for mt8195 and mt8186

Add support for building mt8186 and mt8195 toolchain in docker image.

Signed-off-by: Tinghan Shen <tinghan.shen@mediatek.com>
This commit is contained in:
Tinghan Shen 2022-02-18 11:43:24 +08:00 committed by Liam Girdwood
parent d1dbc41312
commit 34dda4ff6c
1 changed files with 4 additions and 2 deletions

View File

@ -89,7 +89,7 @@ RUN cd /home/sof && \
mkdir -p /home/sof/work/ && \
cd crosstool-ng && \
./bootstrap && ./configure --prefix=`pwd` && make && make install && \
for arch in byt hsw apl cnl imx imx8m imx8ulp rn; do \
for arch in byt hsw apl cnl imx imx8m imx8ulp rn mt8186 mt8195; do \
cp config-${arch}-gcc10.2-gdb9 .config && \
# replace the build dist to save space
sed -i 's#${CT_TOP_DIR}\/builds#\/home\/sof\/work#g' .config && \
@ -107,12 +107,14 @@ ENV PATH="/home/sof/work/xtensa-rn-elf/bin:${PATH}"
ENV PATH="/home/sof/work/xtensa-imx-elf/bin:${PATH}"
ENV PATH="/home/sof/work/xtensa-imx8m-elf/bin:${PATH}"
ENV PATH="/home/sof/work/xtensa-imx8ulp-elf/bin:${PATH}"
ENV PATH="/home/sof/work/xtensa-mt8186-elf/bin:${PATH}"
ENV PATH="/home/sof/work/xtensa-mt8195-elf/bin:${PATH}"
ARG NEWLIB_REPO=https://github.com/jcmvbkbc/newlib-xtensa.git
RUN cd /home/sof && \
git clone $CLONE_DEFAULTS --branch xtensa $NEWLIB_REPO && \
cd newlib-xtensa && \
for arch in byt hsw apl cnl imx imx8m imx8ulp rn; do \
for arch in byt hsw apl cnl imx imx8m imx8ulp rn mt8186 mt8195; do \
./configure --target=xtensa-${arch}-elf \
--prefix=/home/sof/work/xtensa-root && \
make && \