[2.5 patch] let MTD_UCLINUX depend on !MMU

Adrian Bunk bunk at fs.tum.de
Sun May 11 06:06:50 EDT 2003


Trying to compile a kernel with MTD_UCLINUX enabled for a computer with
a MMU fails at the final linking because the variable _ebss seems to be
not defined on such machines (it's only defined on m68knommu, h8300 and 
v850).

The following patch (still applies with a few lines offset against 
2.5.69-bk4) tries to correct this issue by letting MTD_UCLINUX depend on 
!MMU.


--- linux-2.5.65-full/drivers/mtd/maps/Kconfig.old	2003-03-20 16:56:25.000000000 +0100
+++ linux-2.5.65-full/drivers/mtd/maps/Kconfig	2003-03-20 16:56:45.000000000 +0100
@@ -348,7 +348,7 @@
 
 config MTD_UCLINUX
 	tristate "Generic uClinux RAM/ROM filesystem support"
-	depends on MTD_PARTITIONS
+	depends on MTD_PARTITIONS && !MMU
 	help
 	  Map driver to support image based filesystems for uClinux.
 


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




More information about the linux-mtd mailing list