From bd46e8d8496e7ba6b1e0817fc93d638932e52187 Mon Sep 17 00:00:00 2001 From: David Brown Date: Wed, 25 Sep 2024 07:44:29 -0600 Subject: [PATCH] modules: Add placeholder for CONFIG_RUST In order to be able to ifdef based on `CONFIG_RUST`, the config must be defined in the main repo (because the rust module is optional). Add this as a placeholder. If the module is not availabe, the symbol will be present, and always disabled. The module will provide a full definition for the Kconfig. Signed-off-by: David Brown --- modules/Kconfig | 1 + modules/Kconfig.rust | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 modules/Kconfig.rust diff --git a/modules/Kconfig b/modules/Kconfig index 9d5abd1f4b0..21ccad7ff2f 100644 --- a/modules/Kconfig +++ b/modules/Kconfig @@ -29,6 +29,7 @@ source "modules/Kconfig.open-amp" source "modules/Kconfig.picolibc" source "modules/Kconfig.nxp_s32" source "modules/Kconfig.renesas_fsp" +source "modules/Kconfig.rust" source "modules/Kconfig.silabs" source "modules/Kconfig.simplelink" source "modules/Kconfig.sof" diff --git a/modules/Kconfig.rust b/modules/Kconfig.rust new file mode 100644 index 00000000000..97596ab49b8 --- /dev/null +++ b/modules/Kconfig.rust @@ -0,0 +1,5 @@ +# Copyright (c) 2024 Linaro LTD +# SPDX-License-Identifier: Apache-2.0 + +config RUST + bool