This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_RISCV_GENERIC_TOOLCHAIN

Compile using generic riscv32 toolchain

Type: bool

Help

Compile using generic riscv32 toolchain.
Allow SOCs that have custom extended riscv ISA to still
compile with generic riscv32 toolchain.

Direct dependencies

SOC_OPENISA_RV32M1_RISCV32 || SOC_SERIES_RISCV_ANDES_V5 || RISCV

(Includes any dependencies from ifs and menus.)

Defaults

  • y if “” = “zephyr”

  • n

  • y if “” = “zephyr”

  • n

  • y

Kconfig definitions

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

Included via Kconfig:8Kconfig.zephyr:27

Menu path: (Top)

config RISCV_GENERIC_TOOLCHAIN
    bool
    default y if "" = "zephyr"
    default n
    depends on SOC_OPENISA_RV32M1_RISCV32

At soc/riscv/riscv-privilege/andes_v5/Kconfig.defconfig.series:20

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

Menu path: (Top)

config RISCV_GENERIC_TOOLCHAIN
    bool
    default y if "" = "zephyr"
    default n
    depends on SOC_SERIES_RISCV_ANDES_V5

At arch/riscv/Kconfig:105

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

Menu path: (Top) → RISCV Options → RISCV Processor Options

config RISCV_GENERIC_TOOLCHAIN
    bool "Compile using generic riscv32 toolchain"
    default y
    depends on RISCV
    help
      Compile using generic riscv32 toolchain.
      Allow SOCs that have custom extended riscv ISA to still
      compile with generic riscv32 toolchain.

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