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>
This commit is contained in:
parent
e9511193fa
commit
814a8916a9
2 changed files with 7 additions and 1 deletions
|
@ -317,6 +317,12 @@ config NEW_EXCEPTION_VECTOR_BASE
|
||||||
help
|
help
|
||||||
The exception vector base to be restored before booting linux kernel
|
The exception vector base to be restored before booting linux kernel
|
||||||
|
|
||||||
|
config SPL_LOADER_SUPPORT
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
help
|
||||||
|
Enable this option if you want to use SPL loaders without DM enabled.
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
menu "OS boot interface"
|
menu "OS boot interface"
|
||||||
|
|
|
@ -27,7 +27,7 @@ SECTIONS
|
||||||
*(SORT_BY_ALIGNMENT(.sdata*))
|
*(SORT_BY_ALIGNMENT(.sdata*))
|
||||||
} > .spl_mem
|
} > .spl_mem
|
||||||
|
|
||||||
#ifdef CONFIG_SPL_DM
|
#if defined(CONFIG_SPL_DM) || defined(CONFIG_SPL_LOADER_SUPPORT)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
.u_boot_list : {
|
.u_boot_list : {
|
||||||
KEEP(*(SORT(.u_boot_list*)));
|
KEEP(*(SORT(.u_boot_list*)));
|
||||||
|
|
Loading…
Reference in a new issue