Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/kconfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ add_custom_target(
BOARD_DIR=$ENV{BOARD_DIR}
SOC_DIR=$ENV{SOC_DIR}
PROJECT_BINARY_DIR=$ENV{PROJECT_BINARY_DIR}
ZEPHYR_TOOLCHAIN_VARIANT=${ZEPHYR_TOOLCHAIN_VARIANT}
${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/kconfig/menuconfig.py ${KCONFIG_ROOT}
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/kconfig
USES_TERMINAL
Expand Down
1 change: 1 addition & 0 deletions soc/riscv32/openisa_rv32m1/Kconfig.defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ config XIP

config RISCV_GENERIC_TOOLCHAIN
bool
default y if "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr"
default n
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another variant:

config RISCV_GENERIC_TOOLCHAIN
	bool
	default "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr"

Or this:

config RISCV_GENERIC_TOOLCHAIN
	def_bool "$(ZEPHYR_TOOLCHAIN_VARIANT)" = "zephyr"

The value for default, etc., can be any expression.


config RISCV_SOC_CONTEXT_SAVE
Expand Down