Advertisement
andrejsstepanovs

Dockerfile kernel build arm

Feb 2nd, 2022
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. FROM gitlab-docker.vih.infineon.com/gitlab_devops_u1804
  2.  
  3. ENV ARCH=arm
  4. ENV CROSS_COMPILE=arm-linux-gnueabi-
  5.  
  6. USER root
  7. RUN apt-get update && apt-get -y install wget libncurses-dev flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev build-essential bison flex libssl-dev bc gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf gcc-arm-linux-gnueabi g++-arm-linux-gnueabi
  8. RUN wget https://mirrors.edge.kernel.org/pub/linux/kernel/v5.x/linux-5.16.tar.gz && tar xf linux-5.16.tar.gz && rm -rf linux-5.16.tar.gz
  9. WORKDIR /linux-5.16
  10. RUN make vexpress_defconfig
  11. RUN chown 2320:1022 /linux-5.16 -R
  12. RUN chmod 777 /linux-5.16 -R
  13.  
  14. USER 2320:1022
  15.  
  16. CMD ["make all"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement