[2.5 patch] let MTD_UCLINUX depend on !MMU

Adrian Bunk (bunk@fs.tum.de)
Sun, 11 May 2003 12:06:50 +0200


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

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/