summaryrefslogtreecommitdiff
path: root/examples/kconfig-static/nfpvalues.sh
blob: fc4108502d284061f1434d2eaf6d925329c65061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/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

if [ "$CONFIG_XP23" = y ]; then
	X=$((X+23))
fi

if [ "$CONFIG_YP42" = y ]; then
	Y=$((Y+42))
fi

echo '{"Synthetic": {"X": '$X', "Y": '$Y'}}'