2002-10-19 09:10:15

by Ivan Gyurdiev

[permalink] [raw]
Subject: 2.5.44 - scripts/kconfig.tk error (xconfig fails)

drivers/pnp/Config.in: 7: can't handle dep_bool/dep_mbool/dep_tristate
condition
wish -f scripts/kconfig.tk
Error in startup script: invalid command name "clear_choices"
while executing
"clear_choices"
(procedure "read_config" line 3)
invoked from within
"read_config $defaults"
invoked from within
"if { [file readable .config] == 1} then {
if { $argc > 0 } then {
if { [lindex $argv 0] != "-D" } then {
read_config .config
}
else
{
r..."
(file "scripts/kconfig.tk" line 646)
make: *** [xconfig] Error 1


2002-10-19 09:25:02

by Adrian Bunk

[permalink] [raw]
Subject: [patch] Re: 2.5.44 - scripts/kconfig.tk error (xconfig fails)

On Sat, 19 Oct 2002, Ivan Gyurdiev wrote:

> drivers/pnp/Config.in: 7: can't handle dep_bool/dep_mbool/dep_tristate
> condition
> wish -f scripts/kconfig.tk
> Error in startup script: invalid command name "clear_choices"
>...


A dep_bool without a dependency is wrong. The following patch fixes it:


--- linux-2.5.44-full/drivers/pnp/Config.in.old 2002-10-19 11:26:11.000000000 +0200
+++ linux-2.5.44-full/drivers/pnp/Config.in 2002-10-19 11:27:12.000000000 +0200
@@ -4,7 +4,7 @@
mainmenu_option next_comment
comment 'Plug and Play configuration'

-dep_bool 'Plug and Play support' CONFIG_PNP
+bool 'Plug and Play support' CONFIG_PNP

dep_bool ' Plug and Play device name database' CONFIG_PNP_NAMES $CONFIG_PNP
dep_bool ' PnP Debug Messages' CONFIG_PNP_DEBUG $CONFIG_PNP

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed



2002-10-19 13:17:14

by Roman Zippel

[permalink] [raw]
Subject: Re: [patch] Re: 2.5.44 - scripts/kconfig.tk error (xconfig fails)

Hi,

On Sat, 19 Oct 2002, Adrian Bunk wrote:

> A dep_bool without a dependency is wrong. The following patch fixes it:

It's not the only error. 'comment' doesn't accept dependencies (correct
fix attached).
(No, we have no new syntax yet. *sigh*)

bye, Roman


Attachments:
pnp.diff (1.29 kB)