When SYSRESET is enabled, cpu_reset function is also defined in sysreset-uclass.c which lead to multiple definitions of this function since reset.c is build unconditionally. Add a check in Makefile to build this file only if SYSRESET isn't enabled. SYSRESET can be enabled when building SYSRESET_PSCI for instance on this platform. Signed-off-by: Clément Léger <clement.leger@bootlin.com> |
||
---|---|---|
.. | ||
clock.c | ||
cpu.c | ||
Makefile | ||
reset.c | ||
sama5d2_devices.c | ||
sama5d3_devices.c | ||
sama5d4_devices.c | ||
sama7g5_devices.c | ||
timer.c | ||
u-boot-spl.lds |