summaryrefslogtreecommitdiff
path: root/examples/kconfig-static/nfpvalues.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/kconfig-static/nfpvalues.sh')
-rwxr-xr-xexamples/kconfig-static/nfpvalues.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/kconfig-static/nfpvalues.sh b/examples/kconfig-static/nfpvalues.sh
new file mode 100755
index 0000000..574aa47
--- /dev/null
+++ b/examples/kconfig-static/nfpvalues.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+. ./.config
+
+X=0
+Y=0
+
+if [ "$CONFIG_X5" = y ]; then
+ X=5
+fi
+if [ "$CONFIG_X6" = y ]; then
+ X=6
+fi
+
+if [ "$CONFIG_Y0" = y ]; then
+ Y=0
+fi
+if [ "$CONFIG_Y4" = y ]; then
+ Y=4
+fi
+
+echo '{"Synthetic": {"X": '$X', "Y": '$Y'}}'