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 <richard@connon.me.uk>
This commit is contained in:
Richard Connon 2019-05-26 09:59:46 +01:00
parent 38ac762f8b
commit b97f47b0aa

View File

@ -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 && \