mips: add an option to enable u_boot_list section for SPL loaders in u-boot-spl.lds
authorWeijie Gao <weijie.gao@mediatek.com>
Tue, 21 Apr 2020 07:28:37 +0000 (09:28 +0200)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Mon, 27 Apr 2020 18:29:33 +0000 (20:29 +0200)
commit814a8916a95487b6349093ff8998c81d77495eb1
tree0d45046d1c537077e5fa05f4adf28031851b6cb8
parente9511193fa32464654bcb193c3ec62211dabac2d
mips: add an option to enable u_boot_list section for SPL loaders in u-boot-spl.lds

u_boot_list is not only used by DM, but also by some SPL image load methods
such as spl_nor.c.

This patch adds an option CONFIG_SPL_LOADER_SUPPORT in conjunction with
CONFIG_SPL_DM surrounding the u_boot_list section to make sure SPL image
loaders can be correctly built into u-boot SPL without DM enabled.

Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
arch/mips/Kconfig
arch/mips/cpu/u-boot-spl.lds