Hi Johan, On 2026-05-25T01:28:41, Johan Axelsson <[email protected]> wrote: > sysreset: psci: exclude from XPL builds > > sysreset_psci.o pulls in PSCI firmware calls which are not available > in XPL (TPL/SPL) context where EL3 is not yet initialised. Guard the > object with ifndef CONFIG_XPL_BUILD, mirroring the pattern already > used by other sysreset drivers. > > Required so that CONFIG_SYSRESET_PSCI can be selected in full U-Boot > while TPL for RK3576 (which sets CONFIG_XPL_BUILD) still links cleanly. > > Signed-off-by: Johan Axelsson <[email protected]> > > drivers/sysreset/Makefile | 2 ++ > 1 file changed, 2 insertions(+)
> diff --git a/drivers/sysreset/Makefile b/drivers/sysreset/Makefile > @@ -16,7 +16,9 @@ obj-$(CONFIG_SYSRESET_MPC83XX) += sysreset_mpc83xx.o > +ifndef CONFIG_XPL_BUILD > obj-$(CONFIG_SYSRESET_PSCI) += sysreset_psci.o > +endif Can you use the normal pattern? obj-$(CONFIG_$(PHASE_)SYSRESET_PSCI) += sysreset_psci.o Regards, Simon

