From 5d42aef84bfbf6514432ef60edd9cb53430e7035 Mon Sep 17 00:00:00 2001 From: Ederson de Souza Date: Tue, 31 Oct 2023 15:46:27 -0700 Subject: [PATCH] soc/riscv/riscv-ite/it8xxx2: Support DEVNULL_REGION it8xxx2 uses a custom linker script, which was not updated on dfb3674c4cb49ffa2dbdaf812dfe785bc171b025. This patch naively updates it to support DEVNULL_REGION. Signed-off-by: Ederson de Souza --- soc/riscv/riscv-ite/it8xxx2/linker.ld | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/soc/riscv/riscv-ite/it8xxx2/linker.ld b/soc/riscv/riscv-ite/it8xxx2/linker.ld index e285147f6903f2..5c13ee2ecce29a 100644 --- a/soc/riscv/riscv-ite/it8xxx2/linker.ld +++ b/soc/riscv/riscv-ite/it8xxx2/linker.ld @@ -69,6 +69,8 @@ #define SHA256_BLOCK_SIZE 0x200 #endif +#include + MEMORY { #ifdef CONFIG_XIP @@ -76,6 +78,10 @@ MEMORY #endif RAM (rwx) : ORIGIN = RAM_BASE, LENGTH = RAM_SIZE +#if defined(CONFIG_LINKER_DEVNULL_MEMORY) + DEVNULL_ROM (rx) : ORIGIN = DEVNULL_ADDR, LENGTH = DEVNULL_SIZE +#endif + LINKER_DT_REGIONS() /* Used by and documented in include/linker/intlist.ld */