projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix InstallDev bug
[openwrt.git]
/
scripts
/
config
/
symbol.c
diff --git
a/scripts/config/symbol.c
b/scripts/config/symbol.c
index
3d7877a
..
b79d81a
100644
(file)
--- a/
scripts/config/symbol.c
+++ b/
scripts/config/symbol.c
@@
-61,10
+61,10
@@
void sym_init(void)
if (p)
sym_add_default(sym, p);
if (p)
sym_add_default(sym, p);
- sym = sym_lookup("
KERNEL
VERSION", 0);
+ sym = sym_lookup("
OPENWRT
VERSION", 0);
sym->type = S_STRING;
sym->flags |= SYMBOL_AUTO;
sym->type = S_STRING;
sym->flags |= SYMBOL_AUTO;
- p = getenv("
KERNEL
VERSION");
+ p = getenv("
OPENWRT
VERSION");
if (p)
sym_add_default(sym, p);
if (p)
sym_add_default(sym, p);
@@
-81,8
+81,11
@@
enum symbol_type sym_get_type(struct symbol *sym)
if (type == S_TRISTATE) {
if (sym_is_choice_value(sym) && sym->visible == yes)
type = S_BOOLEAN;
if (type == S_TRISTATE) {
if (sym_is_choice_value(sym) && sym->visible == yes)
type = S_BOOLEAN;
+/* tristate always enabled */
+#if 0
else if (modules_val == no)
type = S_BOOLEAN;
else if (modules_val == no)
type = S_BOOLEAN;
+#endif
}
return type;
}
}
return type;
}
@@
-201,7
+204,12
@@
static void sym_calc_visibility(struct symbol *sym)
prop->visible.tri = expr_calc_value(prop->visible.expr);
tri = E_OR(tri, prop->visible.tri);
}
prop->visible.tri = expr_calc_value(prop->visible.expr);
tri = E_OR(tri, prop->visible.tri);
}
+/* tristate always enabled */
+#if 0
if (tri == mod && (sym->type != S_TRISTATE || modules_val == no))
if (tri == mod && (sym->type != S_TRISTATE || modules_val == no))
+#else
+ if (tri == mod && (sym->type != S_TRISTATE))
+#endif
tri = yes;
if (sym->visible != tri) {
sym->visible = tri;
tri = yes;
if (sym->visible != tri) {
sym->visible = tri;
@@
-354,6
+362,7
@@
void sym_calc_value(struct symbol *sym)
if (memcmp(&oldval, &sym->curr, sizeof(oldval)))
sym_set_changed(sym);
if (memcmp(&oldval, &sym->curr, sizeof(oldval)))
sym_set_changed(sym);
+
if (modules_sym == sym)
modules_val = modules_sym->curr.tri;
if (modules_sym == sym)
modules_val = modules_sym->curr.tri;
This page took
0.025138 seconds
and
4
git commands to generate.