This is the mail archive of the
ecos-devel@sources.redhat.com
mailing list for the eCos project.
Conditional Compilation
- From: Raghu <raghu_dk at yahoo dot com>
- To: ecos <ecos-devel at sources dot redhat dot com>
- Date: Mon, 21 Mar 2005 21:12:33 -0800 (PST)
- Subject: Conditional Compilation
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=QXDFwUH988LA+G5MC6X+iJLjJsGXSCMg7FEe4NI/r2DvrORnw3i98P5mhqaGBiSp7f9H3avKws/WaLRxx/SDpz9+/CTpBvRmSKJNrjcdszI6EZVj20UXi4QqcLTwGPUBQ4eTNl2/LTvVGjXzY6nbeugSEf9oHJE8rSvgH9qGbyI= ;
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