diff --git a/boards/Kconfig b/boards/Kconfig index 994f50a98f8..5a0adb67ea5 100644 --- a/boards/Kconfig +++ b/boards/Kconfig @@ -9,6 +9,14 @@ config BOARD if not found we look for the linker file in soc/// +config BOARD_REVISION + def_string "$BOARD_REVISION" + help + If the BOARD has a revision field set, this is the revision. + Otherwise, it is the empty string. For example, if BOARD is + "plank@foo", this option will be "foo". If BOARD is "plank", + this option will be the empty string. + config BOARD_DEPRECATED_RELEASE string help diff --git a/cmake/modules/kconfig.cmake b/cmake/modules/kconfig.cmake index f545632ae47..e13ac293f33 100644 --- a/cmake/modules/kconfig.cmake +++ b/cmake/modules/kconfig.cmake @@ -115,6 +115,7 @@ set(COMMON_KCONFIG_ENV_SETTINGS ARCH=${ARCH} ARCH_DIR=${ARCH_DIR} BOARD_DIR=${BOARD_DIR} + BOARD_REVISION=${BOARD_REVISION} KCONFIG_BINARY_DIR=${KCONFIG_BINARY_DIR} ZEPHYR_TOOLCHAIN_VARIANT=${ZEPHYR_TOOLCHAIN_VARIANT} TOOLCHAIN_KCONFIG_DIR=${TOOLCHAIN_KCONFIG_DIR}