[PATCH] boot/image-fit.c: Restore building tools on macOS
Marek Vasut
marek.vasut at mailbox.org
Mon Dec 1 18:43:03 CET 2025
On 12/1/25 6:40 PM, Tom Rini wrote:
> The ordering of headers in this file doesn't follow our rules exactly
> because this file ends up being included when building host tools and so
> has to be correct for host include paths and ordering as well. We need
> to have <malloc.h> higher in the file or macOS will fail to build due to
> declaration problems.
>
> Fixes: 8fbcc0e0e839 ("boot: Assure FDT is always at 8-byte aligned address")
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
> Cc: Marek Vasut <marek.vasut+renesas at mailbox.org>
I ran across this missing malloc() once before, but never triggered it
in CI after changing the fixed patch slightly. It seems it does trigger
sometimes, so:
Reviewed-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
Thanks !
More information about the U-Boot
mailing list