Skip to content

Commit e660d0d

Browse files
committed
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>
1 parent 128fea2 commit e660d0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

soc/ite/ec/it8xxx2/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ config SOC_IT8XXX2_KERNEL_IN_RAM
228228
bool "Place kernel handling code in RAM"
229229
select SOC_IT8XXX2_USE_ILM
230230
select SOC_IT8XXX2_LIBRARY_TO_RAM
231+
select KERNEL_NO_LTO if LTO
231232
help
232233
Place kernel handling code in ILM. This can significantly improve performance.
233234

0 commit comments

Comments
 (0)