RJ Ascani | d027f2a | 2023-09-20 20:03:50 -0700 | [diff] [blame] | 1 | FROM python:3.10-bullseye |
RJ Ascani | d1bc163 | 2023-09-14 17:04:05 -0700 | [diff] [blame] | 2 | ENV DEBIAN_FRONTEND noninterative |
| 3 | |
| 4 | RUN \ |
| 5 | apt update && \ |
| 6 | apt install -y \ |
| 7 | automake \ |
| 8 | build-essential \ |
| 9 | curl \ |
| 10 | git \ |
| 11 | unzip \ |
RJ Ascani | d027f2a | 2023-09-20 20:03:50 -0700 | [diff] [blame] | 12 | wget |
RJ Ascani | d1bc163 | 2023-09-14 17:04:05 -0700 | [diff] [blame] | 13 | |
| 14 | WORKDIR /opt/xtensa |
| 15 | |
| 16 | COPY ./Xplorer-8.0.13-linux-x64-installer.bin . |
RJ Ascani | d1bc163 | 2023-09-14 17:04:05 -0700 | [diff] [blame] | 17 | COPY ./F1_190305_swupgrade_linux.tgz . |
| 18 | COPY ./P6_200528_linux.tgz . |
| 19 | COPY ./HIFI_190304_swupgrade_linux.tgz . |
| 20 | COPY ci/install_cores_xplorer_13.sh . |
| 21 | COPY ci/install_bazelisk.sh . |
| 22 | |
| 23 | RUN \ |
RJ Ascani | d1bc163 | 2023-09-14 17:04:05 -0700 | [diff] [blame] | 24 | pip3 install Pillow |
| 25 | |
| 26 | RUN \ |
| 27 | pip3 install numpy |
| 28 | |
| 29 | RUN \ |
| 30 | chmod +x Xplorer-8.0.13-linux-x64-installer.bin && \ |
| 31 | ./Xplorer-8.0.13-linux-x64-installer.bin --prefix /opt/xtensa --mode unattended |
| 32 | |
| 33 | ENV XTENSA_BASE "/opt/xtensa/XtDevTools/install/" |
| 34 | |
| 35 | RUN \ |
| 36 | chmod +x install_cores_xplorer_13.sh && \ |
| 37 | ./install_cores_xplorer_13.sh |
| 38 | |
| 39 | RUN ./install_bazelisk.sh |
| 40 | |
| 41 | RUN \ |
| 42 | rm Xplorer-8.0.13-linux-x64-installer.bin && \ |
RJ Ascani | d1bc163 | 2023-09-14 17:04:05 -0700 | [diff] [blame] | 43 | rm F1_190305_swupgrade_linux.tgz && \ |
| 44 | rm P6_200528_linux.tgz && \ |
| 45 | rm HIFI_190304_swupgrade_linux.tgz && \ |
| 46 | rm -f install_cores_xplorer_13.sh |
| 47 | |
| 48 | ENV LIC_DIR "/opt/xtensa/licenses/RI-2020.4-linux" |
| 49 | ENV LM_LICENSE_FILE "${LIC_DIR}/F1_190305_swupgrade/misc/license.dat:${LIC_DIR}/AE_HiFi5_LE5_AO_FP_XC/misc/license.dat:${LIC_DIR}/P6_200528/misc/license.dat:${LIC_DIR}/HIFI_190304_swupgrade/misc/license.dat" |
| 50 | |
| 51 | CMD /opt/xtensa/XtDevTools/install/tools/RI-2020.4-linux/XtensaTools/bin/xt-clang++ --xtensa-core= |