2000-12-23 05:00:15

by Steven Cole

[permalink] [raw]
Subject: [PATCH] 2.4.0-test13pre4ac2 fix net/irda/irnet/Config.in: 1: bad if condition

I get the following error with 2.4.0-test13-pre4-ac2:

[root@localhost linux-2.4.0-test13-pre4-ac2]# make xconfig
rm -f include/asm
( cd include ; ln -sf asm-i386 asm)
make -C scripts kconfig.tk
make[1]: Entering directory `/usr/src/linux-2.4.0-test13-pre4-ac2/scripts'
cat header.tk >> ./kconfig.tk
./tkparse < ../arch/i386/config.in >> kconfig.tk
net/irda/irnet/Config.in: 1: bad if condition
make[1]: *** [kconfig.tk] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.0-test13-pre4-ac2/scripts'
make: *** [xconfig] Error 2

Here is a patch to fix it:
Steven

diff -u linux/net/irda/irnet/Config.in.orig linux/net/irda/irnet/Config.in
--- linux/net/irda/irnet/Config.in.orig Fri Dec 22 20:36:16 2000
+++ linux/net/irda/irnet/Config.in Fri Dec 22 21:16:29 2000
@@ -1,4 +1,4 @@
-if [ $CONFIG_NETDEVICES != "n" ]; then
+if [ "$CONFIG_NETDEVICES" != "n" ]; then
dep_tristate ' IrNET protocol' CONFIG_IRNET $CONFIG_IRDA $CONFIG_PPP
fi