diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-04-20 21:00:14 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-04-20 21:00:14 +0000 |
commit | 320b38dc4fd903d1668b448276059041fa6c8af3 (patch) | |
tree | d80f67a6d4781eb99fb309187a799bdffff119dd /scripts/config/symbol.c | |
parent | 8cc7b94ab02545a6ba6ec042df6e6821941d0e93 (diff) | |
download | upstream-320b38dc4fd903d1668b448276059041fa6c8af3.tar.gz upstream-320b38dc4fd903d1668b448276059041fa6c8af3.tar.bz2 upstream-320b38dc4fd903d1668b448276059041fa6c8af3.zip |
modify the kconfig system for openwrt
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3683 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/config/symbol.c')
-rw-r--r-- | scripts/config/symbol.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/config/symbol.c b/scripts/config/symbol.c index 3d7877afcc..b79d81ac13 100644 --- 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); - sym = sym_lookup("KERNELVERSION", 0); + sym = sym_lookup("OPENWRTVERSION", 0); sym->type = S_STRING; sym->flags |= SYMBOL_AUTO; - p = getenv("KERNELVERSION"); + p = getenv("OPENWRTVERSION"); 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; +/* tristate always enabled */ +#if 0 else if (modules_val == no) type = S_BOOLEAN; +#endif } 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); } +/* tristate always enabled */ +#if 0 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; @@ -354,6 +362,7 @@ void sym_calc_value(struct symbol *sym) if (memcmp(&oldval, &sym->curr, sizeof(oldval))) sym_set_changed(sym); + if (modules_sym == sym) modules_val = modules_sym->curr.tri; |