From c58ebc7703eed57c57b66bf153608e2f58969b64 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 25 May 2022 09:16:54 +0200 Subject: toy example: Add non-choice configuration options --- examples/kconfig-static/Kconfig | 6 ++++++ examples/kconfig-static/nfpvalues.sh | 8 ++++++++ 2 files changed, 14 insertions(+) (limited to 'examples') diff --git a/examples/kconfig-static/Kconfig b/examples/kconfig-static/Kconfig index 1b02bac..8d6fa64 100644 --- a/examples/kconfig-static/Kconfig +++ b/examples/kconfig-static/Kconfig @@ -1,3 +1,9 @@ +config XP23 +bool "X += 23" + +config YP42 +bool "Y += 42" + choice prompt "pi or tau?" diff --git a/examples/kconfig-static/nfpvalues.sh b/examples/kconfig-static/nfpvalues.sh index 574aa47..fc41085 100755 --- a/examples/kconfig-static/nfpvalues.sh +++ b/examples/kconfig-static/nfpvalues.sh @@ -19,4 +19,12 @@ if [ "$CONFIG_Y4" = y ]; then Y=4 fi +if [ "$CONFIG_XP23" = y ]; then + X=$((X+23)) +fi + +if [ "$CONFIG_YP42" = y ]; then + Y=$((Y+42)) +fi + echo '{"Synthetic": {"X": '$X', "Y": '$Y'}}' -- cgit v1.2.3