aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/qconf.cc
diff options
context:
space:
mode:
authorRoman Zippel <zippel@linux-m68k.org>2008-01-13 22:50:54 -0500
committerSam Ravnborg <sam@ravnborg.org>2008-01-28 17:14:39 -0500
commit93449082e905ce73d0346d617dd67c4b668b58af (patch)
treeeba7030f32ce18fa71562224ee2e0d8ddda33421 /scripts/kconfig/qconf.cc
parent7a962923359768e04137125bd479fd0dfa6117d3 (diff)
kconfig: environment symbol support
Add the possibility to import a value from the environment into kconfig via the option syntax. Beside flexibility this has the advantage providing proper dependencies. Documented the options syntax. Signed-off-by: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/qconf.cc')
-rw-r--r--scripts/kconfig/qconf.cc16
1 files changed, 5 insertions, 11 deletions
diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 9fe27ca8a192..5d0fd38b089b 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1088,7 +1088,11 @@ QString ConfigInfoView::debug_info(struct symbol *sym)
1088 debug += "</a><br>"; 1088 debug += "</a><br>";
1089 break; 1089 break;
1090 case P_DEFAULT: 1090 case P_DEFAULT:
1091 debug += "default: "; 1091 case P_SELECT:
1092 case P_RANGE:
1093 case P_ENV:
1094 debug += prop_get_type_name(prop->type);
1095 debug += ": ";
1092 expr_print(prop->expr, expr_print_help, &debug, E_NONE); 1096 expr_print(prop->expr, expr_print_help, &debug, E_NONE);
1093 debug += "<br>"; 1097 debug += "<br>";
1094 break; 1098 break;
@@ -1099,16 +1103,6 @@ QString ConfigInfoView::debug_info(struct symbol *sym)
1099 debug += "<br>"; 1103 debug += "<br>";
1100 } 1104 }
1101 break; 1105 break;
1102 case P_SELECT:
1103 debug += "select: ";
1104 expr_print(prop->expr, expr_print_help, &debug, E_NONE);
1105 debug += "<br>";
1106 break;
1107 case P_RANGE:
1108 debug += "range: ";
1109 expr_print(prop->expr, expr_print_help, &debug, E_NONE);
1110 debug += "<br>";
1111 break;
1112 default: 1106 default:
1113 debug += "unknown property: "; 1107 debug += "unknown property: ";
1114 debug += prop_get_type_name(prop->type); 1108 debug += prop_get_type_name(prop->type);