mtd: Config.in syntax broken for olde kernels?

Charles Manning manningc2 at actrix.gen.nz
Tue Dec 9 20:32:13 EST 2003


Some of us old'uns still use 2.4.18 etc. Ok, ok I know I should get with the 
90's.....

When I ran a config on the latest mtd from cvs I hit a problem. It seems that 
the old 2.4.18 config script chokes on elif

I fixed the poblem in drivers/mtd/chips as follows.

-- CHarles


--- Config.in.old	Mon Dec  8 07:15:16 2003
+++ Config.in	Mon Dec  8 07:16:40 2003
@@ -58,12 +58,14 @@
 	-o "$CONFIG_MTD_CFI_AMDSTD" = "y" \
 	-o "$CONFIG_MTD_CFI_STAA" = "y" ]; then
    define_bool CONFIG_MTD_CFI_UTIL y
-elif [ "$CONFIG_MTD_CFI_INTELEXT" = "m" \
+else
+   if [ "$CONFIG_MTD_CFI_INTELEXT" = "m" \
 	-o "$CONFIG_MTD_CFI_AMDSTD" = "m" \
 	-o "$CONFIG_MTD_CFI_STAA" = "m" ]; then
-   define_bool CONFIG_MTD_CFI_UTIL m
-else
-   define_bool CONFIG_MTD_CFI_UTIL n
+      define_bool CONFIG_MTD_CFI_UTIL m
+   else
+      define_bool CONFIG_MTD_CFI_UTIL n
+   fi
 fi
 
 dep_tristate '  Support for RAM chips in bus mapping' CONFIG_MTD_RAM 
$CONFIG_MTD



More information about the linux-mtd mailing list