Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. FROM bshibley/debian-lxde-x11:buster
  2.  
  3. LABEL io.resin.device-type="apalis-imx6q"
  4.  
  5. WORKDIR /home/root
  6.  
  7. # Install build deps and gstreamer
  8. RUN apt-get -y update && apt-get install -y --no-install-recommends \
  9. build-essential \
  10. autoconf \
  11. libtool \
  12. wget \
  13. python \
  14. pkg-config \
  15. git \
  16. automake \
  17. gstreamer1.0-x \
  18. gstreamer1.0-tools \
  19. gstreamer1.0-plugins-good \
  20. gstreamer1.0-plugins-bad \
  21. gstreamer1.0-alsa \
  22. libgstreamer1.0-dev \
  23. libgstreamer-plugins-base1.0-dev \
  24. libgstreamer-plugins-bad1.0-dev \
  25. && apt-mark hold dash && apt-get -y upgrade && apt-mark unhold dash \
  26. && apt-get clean && apt-get autoremove && rm -rf /var/lib/apt/lists/*
  27.  
  28. # Install Freescale VPU firmware
  29. RUN wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-5.4.bin \
  30. && yes | /bin/sh firmware-imx-*.bin \
  31. && mkdir -p /lib/firmware/vpu \
  32. && mv firmware-imx-*/firmware/vpu/vpu_fw_imx6*.bin /lib/firmware/vpu
  33.  
  34. # Build and install Freescale lib_vpu
  35. RUN wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-vpu-5.4.35.bin \
  36. && yes | /bin/sh imx-vpu-*.bin
  37. WORKDIR /home/root/imx-vpu-5.4.35
  38. RUN make PLATFORM=IMX6Q all \
  39. && make install # installs vpu_lib.h and vpu_io.h in /usr/include and libvpu.* in /usr/lib
  40. WORKDIR /home/root
  41.  
  42. # build and install Freescale Codec Library
  43. RUN wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-codec-4.1.4.bin \
  44. && yes | /bin/sh imx-codec-*.bin
  45. WORKDIR /home/root/imx-codec-4.1.4
  46. RUN ./autogen.sh --prefix=/usr --enable-fhw --enable-vpu \
  47. && make all \
  48. && make install \
  49. && mv /usr/lib/imx-mm/video-codec/* /usr/lib \
  50. && mv /usr/lib/imx-mm/audio-codec/* /usr/lib \
  51. && rm -rf /usr/lib/imx-mm/
  52. WORKDIR /home/root
  53.  
  54. # install Freescale libg2d
  55. RUN wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO/imx-gpu-viv-5.0.11.p8.6-hfp.bin \
  56. && yes | /bin/sh imx-gpu-viv-*.bin
  57. WORKDIR /home/root/imx-gpu-viv-5.0.11.p8.6-hfp
  58. RUN cp g2d/usr/include/* /usr/include/ \
  59. && cp -d g2d/usr/lib/* /usr/lib/ \
  60. && cp -d gpu-core/usr/lib/*.so* /usr/lib/ \
  61. && cp -Pr gpu-core/usr/include/* /usr/include/ \
  62. && cp -r gpu-demos/opt / \
  63. && cp -axr gpu-tools/gmem-info/usr/bin/* /usr/bin/
  64. WORKDIR /home/root
  65.  
  66. # Build and install libimxvpuapi library
  67. RUN git clone git://github.com/Freescale/libimxvpuapi.git
  68. WORKDIR /home/root/libimxvpuapi
  69. RUN ./waf configure --prefix=/usr \
  70. && ./waf \
  71. && ./waf install
  72. WORKDIR /home/root
  73.  
  74. # Build and install gstreamer-imx
  75. RUN git clone git://github.com/Freescale/gstreamer-imx.git
  76. WORKDIR /home/root/gstreamer-imx
  77. RUN ln -s /usr/lib/arm-linux-gnueabihf/gstreamer-1.0/ /usr/lib/gstreamer-1.0 \
  78. && ./waf configure --prefix=/usr --kernel-headers=/include \
  79. && ./waf \
  80. && ./waf install
  81. WORKDIR /home/root
  82.  
  83. # Cleanup
  84. RUN rm -rf *
  85.  
  86. ENV DISPLAY :0
  87. ENV INITSYSTEM 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement