Skip to contentSkip to conversation

make xconfig fails in 2.5.8 kernel, trivial change to fix it

DISCUSSION Andre Hedrick 3 participants 3 messages Apr 17, 2002 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Gerard,

I am sorry I can not answer you questions about 2.5, since there is a new maintainer. I am sure he can resolve your 2.5 issue proper.

Andre Hedrick
The Second Linux X-IDE guy

Quoted 28 lines · Gerard Beekmans

Hi,

There is a very trivial problem in line 52 of the drivers/ide/Config.in file. It reads:

	if [ $CONFIG_BLK_DEV_IDE_TCQ_DEFAULT != "n" ]; then

'make xconfig' fails on this saying that it is a bad if condition:

cat header.tk >> ./kconfig.tk
./tkparse < ../arch/i386/config.in >> kconfig.tk drivers/ide/Config.in: 52: bad if condition

It is easily fixed by enclosing $CONFIG_BLK_DEV_IDE_TCQ_DEFAULT in double quotes. There are other if conditions in this same file that do have those quotes and Tk doesn't complain about them.

Does anybody use xconfig these days anyways since nobody apprarently has noticed it before? I saw this broken a few 2.5 releases ago too but never got around looking into it.

Signature · 4 lines
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-
#2 lore raw
In reply to a message not in the archive
Quoted 2 lines · Andre Hedrick

I am sorry I can not answer you questions about 2.5, since there is a new maintainer. I am sure he can resolve your 2.5 issue proper.

That file config.in had your name and email address in the headers. You may want to have that removed?

Signature · 4 lines
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-
#3 lore raw
In reply to a message not in the archive
Quoted 12 lines · Andre Hedrick
Quoted 12 lines

Hi,

There is a very trivial problem in line 52 of the drivers/ide/Config.in file. It reads:

	if [ $CONFIG_BLK_DEV_IDE_TCQ_DEFAULT != "n" ]; then

'make xconfig' fails on this saying that it is a bad if condition:

cat header.tk >> ./kconfig.tk
./tkparse < ../arch/i386/config.in >> kconfig.tk drivers/ide/Config.in: 52: bad if condition

Quoted 7 lines
Quoted 7 lines

It is easily fixed by enclosing $CONFIG_BLK_DEV_IDE_TCQ_DEFAULT in double quotes. There are other if conditions in this same file that do have those quotes and Tk doesn't complain about them.

Does anybody use xconfig these days anyways since nobody apprarently has noticed it before? I saw this broken a few 2.5 releases ago too but never got around looking into it.

The problem is new to 2.5.8, since that very option did not exist in earlier releases. And it's fixed in the latest ide patch sets.

Signature · 1 line
Jens Axboe