Commit eba3f3e9 authored by Oleksii Kutuzov's avatar Oleksii Kutuzov

Add initial Dockerfiles and build scripts

parent 52b53bbd
FROM ubuntu:18.04
LABEL name=fsl-imx-fb_4.14-sumo
LABEL maintainer="oleksii.kutuzov@seco.com"
ENV HOME /root
SHELL ["/bin/bash", "-c"]
ENV FILE_NAME "fsl-imx-fb-glibc-x86_64-core-image-minimal-aarch64-toolchain-4.14-sumo"
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
# 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/4.14-sumo/environment-setup-aarch64-poky-linux' >> ~/.bashrc
\ No newline at end of file
#!/bin/bash
docker build -t fsl-imx-fb_4.14-sumo .
\ No newline at end of file
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"
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
# 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/4.14-sumo/environment-setup-aarch64-poky-linux' >> ~/.bashrc
\ No newline at end of file
#!/bin/bash
docker build -t fsl-imx-wayland_4.14-sumo_qt .
\ 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