public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bin Meng <bmeng.cn@gmail.com>
To: Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de
Subject: [PATCH v2 2/4] tools: docker: Build and install genimage
Date: Thu, 26 Aug 2021 23:33:33 +0800	[thread overview]
Message-ID: <20210826153335.27964-2-bmeng.cn@gmail.com> (raw)
In-Reply-To: <20210826153335.27964-1-bmeng.cn@gmail.com>

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@gmail.com>

---

Changes in v2:
- Build genimage in the /tmp directory, just like others

 tools/docker/Dockerfile | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
index 4d7c3c6679..dfc4c6e91b 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 \
@@ -177,6 +178,14 @@ RUN git clone git://git.qemu.org/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 /tmp -xJ && \
+	cd /tmp/genimage-14 && \
+	./configure && \
+	make -j$(nproc) && \
+	make install && \
+	rm -rf /tmp/genimage-14
+
 # Create our user/group
 RUN echo uboot ALL=NOPASSWD: ALL > /etc/sudoers.d/uboot
 RUN useradd -m -U uboot
-- 
2.25.1


  reply	other threads:[~2021-08-26 15:34 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-26 15:33 [PATCH v2 1/4] tools: docker: Bump up QEMU version to 6.1.0 Bin Meng
2021-08-26 15:33 ` Bin Meng [this message]
2021-08-27  2:54   ` [PATCH v2 2/4] tools: docker: Build and install genimage Tom Rini
2021-09-11 18:16   ` Tom Rini
2021-08-26 15:33 ` [PATCH v2 3/4] riscv: sifive: unleashed: Add genimage config files Bin Meng
2021-09-11 18:16   ` Tom Rini
2021-08-26 15:33 ` [PATCH v2 4/4] azure/gitlab: Add tests for SiFive Unleashed board Bin Meng
2021-08-27  2:54   ` Tom Rini
2021-09-11 18:16   ` Tom Rini
2021-08-27  2:54 ` [PATCH v2 1/4] tools: docker: Bump up QEMU version to 6.1.0 Tom Rini
2021-09-11 14:33   ` Bin Meng
2021-09-11 14:35     ` Tom Rini
2021-09-11 18:15 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210826153335.27964-2-bmeng.cn@gmail.com \
    --to=bmeng.cn@gmail.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox