diff mbox series

[1/1] Dockerfile: build fiptool

Message ID 20240228074311.500761-1-heinrich.schuchardt@canonical.com
State Accepted
Commit 25296cf3c0e5a52cd346784d2db8af646cedcd82
Delegated to: Tom Rini
Headers show
Series [1/1] Dockerfile: build fiptool | expand

Commit Message

Heinrich Schuchardt Feb. 28, 2024, 7:43 a.m. UTC
Fiptool is used in a binman test. The test is skipped without the binary.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
---
 tools/docker/Dockerfile | 10 ++++++++++
 1 file changed, 10 insertions(+)

Comments

Tom Rini March 15, 2024, 12:19 p.m. UTC | #1
On Wed, 28 Feb 2024 08:43:11 +0100, Heinrich Schuchardt wrote:

> Fiptool is used in a binman test. The test is skipped without the binary.
> 
> 

Applied to u-boot/next, thanks!
diff mbox series

Patch

diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile
index 884b1089e0..a5df0847d0 100644
--- a/tools/docker/Dockerfile
+++ b/tools/docker/Dockerfile
@@ -189,6 +189,16 @@  RUN git clone https://gitlab.com/qemu-project/qemu.git /tmp/qemu && \
 	make -j$(nproc) all install && \
 	rm -rf /tmp/qemu
 
+# Build fiptool
+RUN git clone https://git.trustedfirmware.org/TF-A/trusted-firmware-a.git /tmp/tf-a && \
+	cd /tmp/tf-a/ && \
+	git checkout v2.10.0 && \
+	cd tools/fiptool && \
+	make && \
+	mkdir -p /usr/local/bin && \
+	cp fiptool /usr/local/bin && \
+	rm -rf /tmp/tf-a
+
 # 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 && \