diff mbox series

[RFC,5/6] kconfig: env: add support

Message ID 20250328-kconfig-env-with-ansible-v1-5-3231c0272457@samsung.com (mailing list archive)
State New
Headers show
Series Generate Kconfig environment in Ansible | expand

Commit Message

Daniel Gomez March 28, 2025, 8:56 p.m. UTC
From: Daniel Gomez <da.gomez@samsung.com>

Updating Kconfig with a fragment requires symbols to be visible. Add an
environment submenu to display all generated variables.

Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
---
 Kconfig              | 9 ++++-----
 kconfigs/Kconfig.env | 5 +++++
 2 files changed, 9 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/Kconfig b/Kconfig
index 357341be108de3dab79883f9a6babd29547d62de..6877b7aebd5057a925b371d8c6afd9ad568faa6e 100644
--- a/Kconfig
+++ b/Kconfig
@@ -15,11 +15,6 @@  config TOPDIR_PATH_HAS_SHA256SUM
 	output yaml
 	default y
 
-config TOPDIR_PATH_SHA256SUM
-	string
-	output yaml
-	default $(shell, ./scripts/compute_sha256sum.sh $(TOPDIR_PATH))
-
 config HAVE_KDEVOPS_CUSTOM_DEFAULTS
 	bool
 	default n
@@ -81,3 +76,7 @@  endmenu
 menu "Kdevops configuration"
 source "kconfigs/Kconfig.kdevops"
 endmenu
+
+menu "Environment"
+source "kconfigs/Kconfig.env"
+endmenu
diff --git a/kconfigs/Kconfig.env b/kconfigs/Kconfig.env
new file mode 100644
index 0000000000000000000000000000000000000000..400643f9a304556f27a63792239a383be51866c3
--- /dev/null
+++ b/kconfigs/Kconfig.env
@@ -0,0 +1,5 @@ 
+config TOPDIR_PATH_SHA256SUM
+	string "TOPDIR_PATH checksum"
+	output yaml
+	help
+	  TOPDIR_PATH checksum