Re: [Yaffs] Problem with yaffs build configurations

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Colin Tuckley
Date:  
CC: yaffs Mailinglist
Subject: Re: [Yaffs] Problem with yaffs build configurations
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).

In yportenv.h the value of MTD_VERSION_CODE would be set from the kernel one
if __KERNEL__ was defined and by hand using a #define for standalone use.

This is probably an overly complicated solution since I'm pretty sure we
only actually have 3 versions of mtd. However there are about 8 different
values for KERNEL_VERSION that get tested against.

Comments?

I need a solution to this for balloon bootldr work as soon as possible.

regards,

Colin

-- 
Colin Tuckley      |  +44(0)1903 236872  |  PGP/GnuPG Key Id
Debian Developer   |  +44(0)7799 143369  |     0x1B3045CE


A fanatic is one who can't change his mind and won't change the subject. -
Winston Churchill