Commit 66732ba5 authored by Oleksii Kutuzov's avatar Oleksii Kutuzov

Update Dockerfiles and build scripts

parent cc802a3d
FROM ubuntu:18.04
LABEL name=fsl-imx-fb_5.4-zeus
LABEL maintainer="oleksii.kutuzov@seco.com"
SHELL ["/bin/bash", "-c"]
ENV FILE_NAME "fsl-imx-fb-glibc-x86_64-core-image-minimal-aarch64-imx8mmevk-toolchain-5.4-zeus"
ENV FILE_SH "${FILE_NAME}.sh"
ENV ZIP_NAME "${FILE_NAME}.zip"
ENV FILE_URL "https://documentation.seco.com/service/lib/exe/fetch.php/service/linux/sdk/${ZIP_NAME}"
# Install dependencies
RUN apt-get update && \
apt-get install -y \
zip \
unzip \
wget \
build-essential \
python3 \
git \
flex \
bison \
libz-dev \
bc \
kmod
# Unpack the SDK to /opt/fsl-imx-wayland/4.14-sumo
RUN wget --no-check-certificate ${FILE_URL} && \
unzip ${ZIP_NAME} && \
chmod +x ${FILE_SH} && \
./${FILE_SH} -y && \
rm -f ${FILE_SH} && \
rm -f ${ZIP_NAME}
# Set dev mount repositories as safe
RUN git config --global --add safe.directory /mnt/dev/imx-mkimage && \
git config --global --add safe.directory /mnt/dev/uboot-imx
# Set environment
RUN echo '. /opt/fsl-imx-fb/5.4-zeus/environment-setup-aarch64-poky-linux' >> ~/.bashrc
# Add user
RUN useradd -ms /bin/bash dev
USER dev
WORKDIR /home/dev
\ No newline at end of file
#!/bin/bash
docker build -t fsl-imx-fb_5.4-zeus .
\ No newline at end of file
......@@ -3,8 +3,6 @@ FROM ubuntu:20.04
LABEL name=fsl-imx-wayland_4.14-sumo_qt
LABEL maintainer="oleksii.kutuzov@seco.com"
ENV HOME /root
SHELL ["/bin/bash", "-c"]
ENV FILE_NAME "fsl-imx-wayland-glibc-x86_64-fsl-image-qt5-validation-imx-aarch64-toolchain-4.14-sumo.sh"
......@@ -19,7 +17,12 @@ RUN apt-get update && \
wget \
build-essential \
python3 \
git
git \
flex \
bison \
libz-dev \
bc \
kmod
# Unpack the SDK to /opt/fsl-imx-wayland/4.14-sumo
RUN wget --no-check-certificate ${FILE_URL} && \
......@@ -34,4 +37,9 @@ ENV PATH=${PATH}:/opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/us
ENV PATH=${PATH}:/opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux
# Set environment
RUN echo '. /opt/fsl-imx-wayland/4.14-sumo/environment-setup-aarch64-poky-linux' >> ~/.bashrc
\ No newline at end of file
RUN echo '. /opt/fsl-imx-wayland/4.14-sumo/environment-setup-aarch64-poky-linux' >> ~/.bashrc
# Add user
RUN useradd -ms /bin/bash dev
USER dev
WORKDIR /home/dev
\ No newline at end of file
FROM ubuntu:20.04
LABEL name=fsl-imx-wayland_5.10-hardknott
LABEL maintainer="oleksii.kutuzov@seco.com"
SHELL ["/bin/bash", "-c"]
ENV FILE_NAME "fsl-imx-wayland-glibc-x86_64-core-image-minimal-cortexa53-crypto-trizeps8mini-toolchain-5.10-hardknott.sh"
ENV ZIP_NAME "${FILE_NAME}.zip"
ENV FILE_URL "https://documentation.seco.com/service/lib/exe/fetch.php/service/linux/sdk/${ZIP_NAME}"
# Install dependencies
RUN apt-get update && \
apt-get install -y \
zip \
unzip \
wget \
build-essential \
python3 \
git \
flex \
bison \
libz-dev \
bc \
kmod \
libssl-dev
# Unpack the SDK to /opt/fsl-imx-wayland/4.14-sumo
RUN wget --no-check-certificate ${FILE_URL} && \
unzip ${ZIP_NAME} && \
chmod +x ${FILE_NAME} && \
./${FILE_NAME} -y && \
rm -f ${FILE_NAME} && \
rm -f ${ZIP_NAME}
# Update PATH
# ENV PATH=${PATH}:/opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/qt5
# ENV PATH=${PATH}:/opt/fsl-imx-wayland/4.14-sumo/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux
# Set environment
RUN echo '. /opt/fsl-imx-wayland/5.10-hardknott/environment-setup-cortexa53-crypto-poky-linux' >> ~/.bashrc
# Add user
RUN useradd -ms /bin/bash dev
USER dev
WORKDIR /home/dev
\ No newline at end of file
#!/bin/bash
docker build -t fsl-imx-wayland_5.10-hardknott .
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment