Skip to contentSkip to conversation

mips: mtmips: Kconfig: select options used in SPL

PATCH New Du Huanpeng 1 participant 1 message Feb 17, 2021 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips: mtmips: Kconfig: select options used in SPL

debug_uart_init         SPL_SERIAL_SUPPORT
__udelay                SPL_LIBGENERIC_SUPPORT
puts                    SPL_LIBCOMMON_SUPPORT
default_serial_console  SPL_DM / SPL_DM_SERIAL

after disable SPL, and re-enable SPL, options above and some more options will be un-set. then cause a compile error.
add minmal options needed by compile.

---
 arch/mips/mach-mtmips/Kconfig | 4 ++++
 1 file changed, 4 insertions(+)
arch/mips/mach-mtmips/Kconfig +4 -0
index 8756cadb..d6ae3a0 100644
@@ -44,8 +44,12 @@ config SOC_MT7620
 	select PINCTRL_MT7620
 	select MT7620_SERIAL
 	select MISC
+	select SPL_SERIAL_SUPPORT if SPL
+	select SPL_LIBGENERIC_SUPPORT if SPL
+	select SPL_LIBCOMMON_SUPPORT if SPL
 	select SPL_SEPARATE_BSS if SPL
 	select SPL_LOADER_SUPPORT if SPL
+	imply  SPL_DM if SPL
 	select SPL_OF_CONTROL if SPL_DM
 	select SPL_OF_PLATDATA if SPL_DM
 	select SPL_DM_SERIAL if SPL_DM
Signature · 1 line
2.7.4