[PATCH v2 3/7] include: hexdump: make hex2bin() usable from host tools

Simon Glass sjg at chromium.org
Thu Apr 16 21:37:32 CEST 2026


Hi Daniel,

On 2026-04-16T01:46:15, Daniel Golle <daniel at makrotopia.org> wrote:
> include: hexdump: make hex2bin() usable from host tools
>
> Make hexdump.h work in host-tool builds by using 'uint8_t' instead
> of 'u8', and including either user-space libc <ctype.h> for host-tools
> or <linux/ctype.h> when building U-Boot itself.
>
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>
>
> include/hexdump.h | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)

> diff --git a/include/hexdump.h b/include/hexdump.h
> @@ -7,7 +7,11 @@
> +#ifdef USE_HOSTCC
> +#include <ctype.h>
> +#else
>  #include <linux/ctype.h>
> +#endif

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list