Skip to contentSkip to conversation

let MTD_UCLINUX depend on !MMU

PATCH In review Adrian Bunk 2 participants 2 messages May 11, 2003 – May 13, 2003 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 let MTD_UCLINUX depend on !MMU

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.

drivers/mtd/maps/Kconfig renamed from drivers/mtd/maps/Kconfig.old +1 -1
@@ -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

Signature · 4 lines
       "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
#1 lore raw

Pruned the CC: list a bit.

Quoted 14 lines · Adrian Bunk

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.

drivers/mtd/maps/Kconfig line 353

Quoted 7 lines
drivers/mtd/maps/Kconfig renamed from drivers/mtd/maps/Kconfig.old +1 -1
@@ -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.

Usually, I committed such random fixes to CVS, but my time is getting more constrained.

David, what would create the least work for you. To have such small patches both in 2.5 and mtd cvs? Just curious, so I don't waste my time on something that doesn't really help you.

Jörn

Signature · 2 lines
Anything that can go wrong, will.
-- Finagle's Law