FROM debian:buster-slim RUN cat /etc/apt/sources.list | sed s/^deb/deb-src/ > /etc/apt/sources.list.d/sources.src.list RUN apt update RUN apt build-dep -y linux-base RUN apt install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu git flex RUN cd /usr/src/ ; git clone https://github.com/smaeul/linux.git WORKDIR /usr/src/linux RUN git checkout rk356x-ebc-dev # Move these up once we've managed a full install RUN apt install -y bison bc RUN make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- pinenote_defconfig RUN make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- all RUN mkdir pack RUN make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_MOD_PATH=${PWD}/pack modules_install RUN make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- INSTALL_PATH=${PWD}/pack dtbs_install