On Saturday 08 December 2007 09:06, Colin Tuckley wrote: > Colin Tuckley wrote: > > Unfortunately, when building standalone we have a problem > > because KERNEL_VERSION and LINUX_VERSION_CODE and similar > > macros are not defined/available. > > Since no one else has commented I propose the following: > > We replace the use of: > > KERNEL_VERSION(x,y,z) and LINUX_VERSION_CODE > > with > > MTD_VERSION(x,y,z) and MTD_VERSION_CODE > > using similar macros defined in yportenv.h (which is included > by all other source files that use the above macros). That sounds alright for the MTD layer (bottom), but it's clearly inappropriate for the VFS (filesystem) layer (top). Shouldn't all the code/files that are needed for Linux simply be omitted or ifdef'd. If there a too many Linux specifics in the 'generic' code, the code should be reorganized. -imcd