]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: Fix linking error when building u-boot-spl with no SMP support
authorLeo Yu-Chi Liang <ycliang@andestech.com>
Mon, 29 Jun 2020 08:27:28 +0000 (16:27 +0800)
committerAndes <uboot@andestech.com>
Fri, 24 Jul 2020 06:56:13 +0000 (14:56 +0800)
commite491e15a3f4bdf7e22d5e448c3f0cfb733a8dd8b
tree5e770fd7c2271624eaed187457662b54d348e2c5
parent27b4a4abe60ef4f42e45cb33075ca37369831588
riscv: Fix linking error when building u-boot-spl with no SMP support

Switch off SMP support when building u-boot-spl would cause linking error as follow:
undefined reference to 'secondary hart relocate' and 'smp_call_function'.
Add macro to wrap up proper code region that needs SMP configuration on.

Signed-off by: Leo Liang <ycliang@andestech.com>
Cc: rick@andestech.com
Reviewed-by: Bin Meng <bin.meng@windriver.com>
arch/riscv/cpu/start.S