Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM bshibley/debian-lxde-x11:buster
- LABEL io.resin.device-type="apalis-imx6q"
- WORKDIR /home/root
- # Install build deps and gstreamer
- RUN apt-get -y update && apt-get install -y --no-install-recommends \
- build-essential \
- autoconf \
- libtool \
- wget \
- python \
- pkg-config \
- git \
- automake \
- gstreamer1.0-x \
- gstreamer1.0-tools \
- gstreamer1.0-plugins-good \
- gstreamer1.0-plugins-bad \
- gstreamer1.0-alsa \
- libgstreamer1.0-dev \
- libgstreamer-plugins-base1.0-dev \
- libgstreamer-plugins-bad1.0-dev \
- && apt-mark hold dash && apt-get -y upgrade && apt-mark unhold dash \
- && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*
- # Install Freescale VPU firmware
- RUN wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-5.4.bin \
- && yes | /bin/sh firmware-imx-*.bin \
- && mkdir -p /lib/firmware/vpu \
- && mv firmware-imx-*/firmware/vpu/vpu_fw_imx6*.bin /lib/firmware/vpu
- # Build and install Freescale lib_vpu
- RUN wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-vpu-5.4.35.bin \
- && yes | /bin/sh imx-vpu-*.bin
- WORKDIR /home/root/imx-vpu-5.4.35
- RUN make PLATFORM=IMX6Q all \
- && make install # installs vpu_lib.h and vpu_io.h in /usr/include and libvpu.* in /usr/lib
- WORKDIR /home/root
- # build and install Freescale Codec Library
- RUN wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-codec-4.1.4.bin \
- && yes | /bin/sh imx-codec-*.bin
- WORKDIR /home/root/imx-codec-4.1.4
- RUN ./autogen.sh --prefix=/usr --enable-fhw --enable-vpu \
- && make all \
- && make install \
- && mv /usr/lib/imx-mm/video-codec/* /usr/lib \
- && mv /usr/lib/imx-mm/audio-codec/* /usr/lib \
- && rm -rf /usr/lib/imx-mm/
- WORKDIR /home/root
- # install Freescale libg2d
- RUN wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-gpu-viv-5.0.11.p8.6-hfp.bin \
- && yes | /bin/sh imx-gpu-viv-*.bin
- WORKDIR /home/root/imx-gpu-viv-5.0.11.p8.6-hfp
- RUN cp g2d/usr/include/* /usr/include/ \
- && cp -d g2d/usr/lib/* /usr/lib/ \
- && cp -d gpu-core/usr/lib/*.so* /usr/lib/ \
- && cp -Pr gpu-core/usr/include/* /usr/include/ \
- && cp -r gpu-demos/opt / \
- && cp -axr gpu-tools/gmem-info/usr/bin/* /usr/bin/
- WORKDIR /home/root
- # Build and install libimxvpuapi library
- RUN git clone git://github.com/Freescale/libimxvpuapi.git
- WORKDIR /home/root/libimxvpuapi
- RUN ./waf configure --prefix=/usr \
- && ./waf \
- && ./waf install
- WORKDIR /home/root
- # Build and install gstreamer-imx
- RUN git clone git://github.com/Freescale/gstreamer-imx.git
- WORKDIR /home/root/gstreamer-imx
- RUN ln -s /usr/lib/arm-linux-gnueabihf/gstreamer-1.0/ /usr/lib/gstreamer-1.0 \
- && ./waf configure --prefix=/usr --kernel-headers=/include \
- && ./waf \
- && ./waf install
- WORKDIR /home/root
- # Cleanup
- RUN rm -rf *
- ENV DISPLAY :0
- ENV INITSYSTEM 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement