soc: it8xxx2: Select KERNEL_NO_LTO only when LTO is enabled

Select KERNEL_NO_LTO only when LTO is enabled. This ensures proper
handling when kernel code is placed in RAM.

Signed-off-by: Tim Lin <tim2.lin@ite.corp-partner.google.com>
This commit is contained in:
Tim Lin
2025-11-11 08:51:52 +08:00
committed by Henrik Brix Andersen
parent 2edece9d58
commit 125d88c172

View File

@@ -235,6 +235,7 @@ config SOC_IT8XXX2_KERNEL_IN_RAM
bool "Place kernel handling code in RAM"
select SOC_IT8XXX2_USE_ILM
select SOC_IT8XXX2_LIBRARY_TO_RAM
select KERNEL_NO_LTO if LTO
help
Place kernel handling code in ILM. This can significantly improve performance.