The latest development version of this page may be more current than this released 2.1.0 version.
CONFIG_XIP

Execute in place

Type: bool

Help

This option allows the kernel to operate with its text and read-only sections residing in ROM (or similar read-only memory). Not all boards support this option so it must be used with care; you must also supply a linker command file when building your image. Enabling this option increases both the code and data footprint of the image.

Defaults

Kconfig definitions

At soc/riscv/openisa_rv32m1/Kconfig.defconfig:23

Included via Kconfig:8Kconfig.zephyr:25

Menu path: (Top)

config XIP
    bool
    default y
    depends on SOC_OPENISA_RV32M1_RISCV32

At soc/riscv/riscv-privilege/miv/Kconfig.defconfig.series:32

Included via Kconfig:8Kconfig.zephyr:25soc/riscv/riscv-privilege/Kconfig.defconfig:6

Menu path: (Top)

config XIP
    bool
    default y
    depends on SOC_SERIES_RISCV32_MIV

At soc/riscv/riscv-privilege/sifive-freedom/Kconfig.defconfig.series:32

Included via Kconfig:8Kconfig.zephyr:25soc/riscv/riscv-privilege/Kconfig.defconfig:6

Menu path: (Top)

config XIP
    bool
    default y
    depends on SOC_SERIES_RISCV_SIFIVE_FREEDOM

At arch/arc/Kconfig:193

Included via Kconfig:8Kconfig.zephyr:31arch/Kconfig:12

Menu path: (Top) → ARC Options → ARCv2 Family Options

config XIP
    bool
    default y if !UART_NSIM
    depends on ARC

At arch/arm/core/cortex_m/Kconfig:221

Included via Kconfig:8Kconfig.zephyr:31arch/Kconfig:12arch/arm/Kconfig:9arch/arm/core/Kconfig:274

Menu path: (Top) → ARM Options

config XIP
    bool
    default y
    depends on CPU_CORTEX_M && ARM

At arch/nios2/Kconfig:24

Included via Kconfig:8Kconfig.zephyr:31arch/Kconfig:12

Menu path: (Top) → Nios II Options → Nios II Family Options

config XIP
    bool
    default y
    depends on NIOS2

At arch/x86/Kconfig:67

Included via Kconfig:8Kconfig.zephyr:31arch/Kconfig:12

Menu path: (Top) → X86 Architecture Options

config XIP
    bool
    default n
    depends on X86

At kernel/Kconfig:576

Included via Kconfig:8Kconfig.zephyr:33

Menu path: (Top) → General Kernel Options

config XIP
    bool "Execute in place"
    help
      This option allows the kernel to operate with its text and read-only
      sections residing in ROM (or similar read-only memory). Not all boards
      support this option so it must be used with care; you must also
      supply a linker command file when building your image. Enabling this
      option increases both the code and data footprint of the image.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)