[PATCH] ARM: i.MX: prevent use of imx_cpu_type in PBL

Sascha Hauer s.hauer at pengutronix.de
Mon May 25 23:56:41 PDT 2026


On Fri, 22 May 2026 15:48:00 +0200, Ahmad Fatoum wrote:
> Functions like cpu_is_mx6q internally call cpu_is_mx6() first,
> which can be evaluated at compile-time if only i.MX6 boards are enabled.
> 
> This allowed calling cpu_is_mx6q in PBL entry points as long as barebox was
> compiled for only a single SoC.
> 
> Since the multi-arch/multi-platform support was added however,
> cpu_is_mx6 became a runtime check that's never true in PBL, leading all
> cpu_is_mx* in 32-boards to silently fail at runtime.
> 
> [...]

Applied, thanks!

[1/1] ARM: i.MX: prevent use of imx_cpu_type in PBL
      https://git.pengutronix.de/cgit/barebox/commit/?id=945f4513ed3b (link may not be stable)

Best regards,
-- 
Sascha Hauer <s.hauer at pengutronix.de>




More information about the barebox mailing list