]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: mach-at91: armv7: fix multiple cpu_reset definition when enabling SYSRESET
authorClément Léger <clement.leger@bootlin.com>
Wed, 4 Aug 2021 14:55:44 +0000 (16:55 +0200)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 21 Sep 2021 07:05:37 +0000 (10:05 +0300)
commit094f19c5274b758a243158f69367626049f283e5
tree84569872e8c283bdf2e4959004ae84240a7d5e2c
parentb8ccd77193788596c23196d6fe40831f12f2e0f1
ARM: mach-at91: armv7: fix multiple cpu_reset definition when enabling SYSRESET

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>
arch/arm/mach-at91/armv7/Makefile