On Tuesday 11 December 2007 06:17, Colin Tuckley wrote:
> > Shouldn't all the code/files that are needed for Linux
> > simply be omitted or ifdef'd.
>
> We can't omit it, several non-Linux implementations of yaffs
> "emulate" the kernel mtd layer. All this testing of
> KERNEL_VERSION is to determine which MTD layer we should be
> using/emulating/defining.
Perhaps you can provide and interface like yaffs_mtdif{,1,2}.c
that works with your emulated MTD interface. MTD is a moving
target -- not something I'd like to emulate in any detail.
-imcd