|
Lines 70-75
Link Here
|
| 70 |
sed -i "/^# *$CONFIG_PARAM=/s/^# *//" .config || echo "Kconfig_style_config error uncommenting $CONFIG_PARAM" |
70 |
sed -i "/^# *$CONFIG_PARAM=/s/^# *//" .config || echo "Kconfig_style_config error uncommenting $CONFIG_PARAM" |
| 71 |
#set item = $setting (defaulting to y) |
71 |
#set item = $setting (defaulting to y) |
| 72 |
sed -i "/^$CONFIG_PARAM/s/=.*/=$setting/" .config || echo "Kconfig_style_config error setting $CONFIG_PARAM=$setting" |
72 |
sed -i "/^$CONFIG_PARAM/s/=.*/=$setting/" .config || echo "Kconfig_style_config error setting $CONFIG_PARAM=$setting" |
|
|
73 |
if [ -z "$( grep ^$CONFIG_PARAM= .config )" ] ; then |
| 74 |
echo "$CONFIG_PARAM=$setting" >>.config |
| 75 |
fi |
| 73 |
else |
76 |
else |
| 74 |
#ensure item commented out |
77 |
#ensure item commented out |
| 75 |
sed -i "/^$CONFIG_PARAM/s/$CONFIG_PARAM/# $CONFIG_PARAM/" .config || echo "Kconfig_style_config error commenting $CONFIG_PARAM" |
78 |
sed -i "/^$CONFIG_PARAM/s/$CONFIG_PARAM/# $CONFIG_PARAM/" .config || echo "Kconfig_style_config error commenting $CONFIG_PARAM" |