From b97f47b0aa77a5067c642ceb0aacd934d3265c8d Mon Sep 17 00:00:00 2001 From: Richard Connon Date: Sun, 26 May 2019 09:59:46 +0100 Subject: [PATCH] Update rpi3 u-boot to detect newer hardware Update the u-boot image included in the mkimage-rpi3 image to support detecting newer hardware versions and setting the fdtfile variable accordingly Shallow clone the u-boot repository during docker build to improve build efficiency Signed-off-by: Richard Connon --- tools/mkimage-rpi3/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tools/mkimage-rpi3/Dockerfile b/tools/mkimage-rpi3/Dockerfile index 7451122fe..180157932 100644 --- a/tools/mkimage-rpi3/Dockerfile +++ b/tools/mkimage-rpi3/Dockerfile @@ -1,8 +1,10 @@ FROM linuxkit/alpine:86cd4f51b49fb9a078b50201d892a3c7973d48ec as build RUN apk add \ bc \ + bison \ dtc \ curl \ + flex \ make \ gcc \ git \ @@ -20,11 +22,10 @@ RUN apk add --no-cache --initdb -p /out \ RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache # u-boot compile. The patch is needed to handle larger kernels -ENV UBOOT_COMMIT=v2017.09 +ENV UBOOT_COMMIT=v2019.04 COPY u-boot.patch . -RUN git clone https://github.com/u-boot/u-boot.git && \ - cd /u-boot && \ - git checkout $UBOOT_COMMIT +RUN git clone -b $UBOOT_COMMIT --depth 1 https://github.com/u-boot/u-boot.git && \ + cd /u-boot WORKDIR /u-boot RUN patch -p 1 < /u-boot.patch && \ make rpi_3_defconfig all && \