tools: amlimage: include <inttypes.h>

PRIuN, PRIxN, etc macros are defined in <inttypes.h>, without it being
included errors like:
tools/amlimage.c:124:38: error: expected ‘)’ before ‘PRIu8’
tools/amlimage.c:126:31: error: expected ‘)’ before ‘PRIu32’

Can be hit depending on the host compiler and HOSTCFLAGS.

Fixes: 18c1654567 ("tools: mkimage: Add Amlogic Boot Image type")
Signed-off-by: Robert Marko <robert.marko@sartura.hr>
Reviewed-by: Mark Kettenis <kettenis@openbsd.org>
Reviewed-by: Ferass El Hafidi <funderscore@postmarketos.org>
This commit is contained in:
Robert Marko
2026-01-13 12:07:38 +01:00
committed by Tom Rini
parent 9441ad8715
commit 6f42057c67

View File

@@ -2,6 +2,7 @@
// Copyright Contributors to the U-Boot project.
#include "imagetool.h"
#include <inttypes.h>
#include <u-boot/sha256.h>
/*