This is the mail archive of the ecos-devel@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Conditional Compilation


Hi, 

I want to have a macro define through which I will be
able to conditionally compile either REDBOOT or ecos
library. 

Example: 
#ifdef CYGBLD_TARGET_REDBOOT
#include <redboot.h>
#include <net/net.h>
#else
#include <pkgconf/net.h>
#endif

How should I define this in the ".cdl" file ? I tried 
cdd_option CYGBLD_TARGET_REDBOOT {
    default_value 0
}
and in redboot_rom.ecm set the user_value to "1".
But this does not define "#define
CYGBLD_TARGET_REDBOOT" and the compilation fails for
file not found.
Regards
Raghu


    




		
__________________________________ 
Do you Yahoo!? 
Make Yahoo! your home page 
http://www.yahoo.com/r/hs


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]