[PATCH] riscv: cpu: Use CONFIG_IS_ENABLED(CPU) instead of plain ifdef

Leo Liang ycliang at andestech.com
Mon Aug 11 08:31:49 CEST 2025


On Thu, Jul 17, 2025 at 08:26:15AM +0200, Michal Simek wrote:
> ifdef CONFIG_CPU only works in U-Boot proper but macro is not working when
> XPL phases are used. In this case CONFIG_SPL_CPU is also defined and can be
> disabled which is causing compilation error.
> 
> Signed-off-by: Michal Simek <michal.simek at amd.com>
> ---
> 
>  arch/riscv/cpu/cpu.c | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)

Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>


More information about the U-Boot mailing list