Skip to content

Commit 466075d

Browse files
committed
soc/ite/it8xxx2/kconfig: add warning for enable ram code with LTO
Because CONFIG_LTO default is y, CONFIG_SOC_IT8XXX2_SERIAL_IN_RAM=y CONFIG_SOC_IT8XXX2_KERNEL_IN_RAM=y CONFIG_SOC_IT8XXX2_ZEPHYR_IN_RAM=y These three configs are not effective. So I add a warning if we enable CONFIG_LTO and put code to EC ram at the same time. Signed-off-by: Ruibin Chang <[email protected]>
1 parent 18d885d commit 466075d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

soc/ite/ec/it8xxx2/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ config SOC_IT8XXX2_SERIAL_IN_RAM
217217
bool "Place serial handling code in RAM"
218218
select SOC_IT8XXX2_USE_ILM
219219
select SOC_IT8XXX2_LIBRARY_TO_RAM
220+
depends on !LTO
220221
help
221222
Place serial handling (Include uart_ns16550.c and uart_ite_it8xxx2.c) code
222223
in ILM. This can improve performance.
@@ -225,13 +226,15 @@ config SOC_IT8XXX2_KERNEL_IN_RAM
225226
bool "Place kernel handling code in RAM"
226227
select SOC_IT8XXX2_USE_ILM
227228
select SOC_IT8XXX2_LIBRARY_TO_RAM
229+
depends on !LTO
228230
help
229231
Place kernel handling code in ILM. This can significantly improve performance.
230232

231233
config SOC_IT8XXX2_ZEPHYR_IN_RAM
232234
bool "Place zephyr handling code in RAM"
233235
select SOC_IT8XXX2_USE_ILM
234236
select SOC_IT8XXX2_LIBRARY_TO_RAM
237+
depends on !LTO
235238
help
236239
Place zephyr handling code in ILM. This can significantly improve performance.
237240

0 commit comments

Comments
 (0)