[PATCH 2/4] tools: docker: Build and install genimage

Tom Rini trini at konsulko.com
Wed Aug 25 04:00:41 CEST 2021


On Wed, Aug 25, 2021 at 08:05:18AM +0800, Bin Meng wrote:

> genimage [1] is a tool to create flash/disk images. This is required
> by some targets, e.g.: sifive_unleashed, to generate sdcard or spi-nor
> images for real hardware, as well as U-Boot CI testing.
> 
> [1] https://github.com/pengutronix/genimage
> 
> Signed-off-by: Bin Meng <bmeng.cn at gmail.com>
> ---
> 
>  tools/docker/Dockerfile | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
> index be6d7dd4dc..8e558ca495 100644
> --- a/tools/docker/Dockerfile
> +++ b/tools/docker/Dockerfile
> @@ -60,6 +60,7 @@ RUN apt-get update && apt-get install -y \
>  	iasl \
>  	imagemagick \
>  	iputils-ping \
> +	libconfuse-dev \
>  	libgit2-dev \
>  	libguestfs-tools \
>  	liblz4-tool \
> @@ -172,6 +173,14 @@ RUN git clone https://gitlab.com/lbmeng/qemu.git /tmp/qemu && \
>  	make -j$(nproc) all install && \
>  	rm -rf /tmp/qemu
>  
> +# Build genimage (required by some targets to generate disk images)
> +RUN wget -O - https://github.com/pengutronix/genimage/releases/download/v14/genimage-14.tar.xz | tar -C /opt -xJ && \
> +	cd /opt/genimage-14 && \
> +	./configure && \
> +	make -j$(nproc) && \
> +	make install && \
> +	rm -rf /opt/genimage-14
> +

If we're building, we should do it in /tmp like the rest of the recipe
does.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210824/dd2f4f0c/attachment.sig>


More information about the U-Boot mailing list