]> git.ipfire.org Git - thirdparty/u-boot.git/commit
include: hexdump: make hex2bin() usable from host tools
authorDaniel Golle <daniel@makrotopia.org>
Fri, 15 May 2026 23:37:59 +0000 (00:37 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 27 May 2026 19:41:33 +0000 (13:41 -0600)
commit96e180d354de563ce6dc68cbcac26d67f326940d
tree8ccb56f23fc1419668e5a4717617eda801e784cd
parentcafe3d6e90e661bd9d42b19f1e2d891da48f3fce
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@makrotopia.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
include/hexdump.h