U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Golle <daniel@makrotopia.org>
To: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Kory Maincent <kory.maincent@bootlin.com>,
	Mattijs Korpershoek <mkorpershoek@kernel.org>,
	Peng Fan <peng.fan@nxp.com>, Martin Schwan <m.schwan@phytec.de>,
	Anshul Dalal <anshuld@ti.com>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Sughosh Ganu <sughosh.ganu@arm.com>,
	Aristo Chen <jj251510319013@gmail.com>,
	Ludwig Nussel <ludwig.nussel@siemens.com>,
	Benjamin ROBIN <dev@benjarobin.fr>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	James Hilliard <james.hilliard1@gmail.com>,
	Wolfgang Wallner <wolfgang.wallner@at.abb.com>,
	Kunihiko Hayashi <hayashi.kunihiko@socionext.com>,
	David Lechner <dlechner@baylibre.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Mayuresh Chitale <mchitale@ventanamicro.com>,
	Jonas Karlman <jonas@kwiboo.se>,
	Shiji Yang <yangshiji66@outlook.com>,
	Rasmus Villemoes <ravi@prevas.dk>,
	Francois Berder <fberder@outlook.fr>,
	u-boot@lists.denx.de
Subject: Re: [PATCH v2 3/7] include: hexdump: make hex2bin() usable from host tools
Date: Fri, 24 Apr 2026 18:31:27 +0100	[thread overview]
Message-ID: <aeuo7zLvywgUvyTM@makrotopia.org> (raw)
In-Reply-To: <0F930E8B-9434-4365-9F64-2714E6C2A117@gmx.de>

On Thu, Apr 16, 2026 at 01:00:31PM +0200, Heinrich Schuchardt wrote:
> Am 16. April 2026 03:46:42 MESZ schrieb Daniel Golle <daniel@makrotopia.org>:
> >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>
> >---
> >v2: new patch
> >
> > include/hexdump.h | 8 ++++++--
> > 1 file changed, 6 insertions(+), 2 deletions(-)
> >
> >diff --git a/include/hexdump.h b/include/hexdump.h
> >index f2ca4793d69..5cb48d79efe 100644
> >--- a/include/hexdump.h
> >+++ b/include/hexdump.h
> >@@ -7,7 +7,11 @@
> > #ifndef HEXDUMP_H
> > #define HEXDUMP_H
> > 
> >+#ifdef USE_HOSTCC
> >+#include <ctype.h>
> >+#else
> > #include <linux/ctype.h>
> 
> uin8_t is defined in stdint.h.
> Don't we need it in the HOSTCC case?

tools/Makefile force-includes include/compiler.h for every host-tool
compiler.h, and that unconditionally #include <stdint.h> in its
USE_HOSTCC.

While uint*_t are widely used, the general mechanism seems to be to
rely on compiler.h rather than explicitely including stdint.h
(but exceptions do exist)

  reply	other threads:[~2026-04-25 17:15 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-16  1:46 [PATCH v2 0/7] fit: dm-verity support Daniel Golle
2026-04-16  1:46 ` [PATCH v2 1/7] image: fit: add dm-verity property name constants Daniel Golle
2026-04-21 15:03   ` Tom Rini
2026-04-16  1:46 ` [PATCH v2 2/7] boot: fit: support generating DM verity cmdline parameters Daniel Golle
2026-04-16 19:37   ` Simon Glass
2026-04-16  1:46 ` [PATCH v2 3/7] include: hexdump: make hex2bin() usable from host tools Daniel Golle
2026-04-16 11:00   ` Heinrich Schuchardt
2026-04-24 17:31     ` Daniel Golle [this message]
2026-04-16 19:37   ` Simon Glass
2026-04-16  1:46 ` [PATCH v2 4/7] tools: mkimage: add dm-verity Merkle-tree generation Daniel Golle
2026-04-16 19:36   ` Simon Glass
2026-04-16  1:46 ` [PATCH v2 5/7] doc: fit: add dm-verity boot parameter documentation Daniel Golle
2026-04-16 19:38   ` Simon Glass
2026-04-16  1:47 ` [PATCH v2 6/7] test: boot: add runtime unit test for fit_verity_build_cmdline() Daniel Golle
2026-04-16 19:36   ` Simon Glass
2026-04-16 23:25     ` Daniel Golle
2026-04-16 23:59       ` Simon Glass
2026-04-16  1:47 ` [PATCH v2 7/7] test: py: add mkimage dm-verity round-trip test Daniel Golle
2026-04-16 19:36   ` Simon Glass
2026-04-16 22:58     ` Daniel Golle
2026-04-16 23:59       ` Simon Glass
     [not found] ` <87wlxxltnc.fsf@prevas.dk>
2026-04-23 13:20   ` [PATCH v2 0/7] fit: dm-verity support Daniel Golle
2026-04-26 16:20     ` Marek Vasut
2026-04-26 16:32       ` Daniel Golle
2026-05-07 15:38         ` Simon Glass

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=aeuo7zLvywgUvyTM@makrotopia.org \
    --to=daniel@makrotopia.org \
    --cc=anshuld@ti.com \
    --cc=dev@benjarobin.fr \
    --cc=dlechner@baylibre.com \
    --cc=fberder@outlook.fr \
    --cc=hayashi.kunihiko@socionext.com \
    --cc=ilias.apalodimas@linaro.org \
    --cc=james.hilliard1@gmail.com \
    --cc=jj251510319013@gmail.com \
    --cc=jonas@kwiboo.se \
    --cc=kory.maincent@bootlin.com \
    --cc=ludwig.nussel@siemens.com \
    --cc=m.schwan@phytec.de \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=mchitale@ventanamicro.com \
    --cc=mkorpershoek@kernel.org \
    --cc=neil.armstrong@linaro.org \
    --cc=peng.fan@nxp.com \
    --cc=quentin.schulz@cherry.de \
    --cc=ravi@prevas.dk \
    --cc=sjg@chromium.org \
    --cc=sughosh.ganu@arm.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=wolfgang.wallner@at.abb.com \
    --cc=xypron.glpk@gmx.de \
    --cc=yangshiji66@outlook.com \
    /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