public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] changing compile source in cdl based on platform
@ 2008-12-01 18:51 Tyler Wilson
  2008-12-01 19:40 ` Bart Veer
  0 siblings, 1 reply; 4+ messages in thread
From: Tyler Wilson @ 2008-12-01 18:51 UTC (permalink / raw)
  To: ecos-discuss

Good day,

FYI, I looked through the CDL guide, but could not find an answer. I
apologize if it is in there, but I think I did try.

I have a component I am adding to our eCos repository, via the CDL. One
of the modules has assembly language versions for different platforms -
x86, ARM, etc. I would like to know how to specify this in the CDL
properly. Something like

cdl_option CYG_USE_ASM {
    compile  {
        if is_defined(HAL_ARM) {
            arm_version.S
        }
        if is_defined(HAL_X86) {
            x86_version.S
        }
    }
}

I know these are really just Tcl scripts, but I am not familiar enough
with Tcl to know the proper syntax, and I thought it would be easier for
somebody on this list to give me an example.

Also, I have tried just adding a .S file to a component, but it is not
being included in the build when 'make'ing. Is there any other magic I
need to enable the assembly of .S files? Also, does the case of the .S
matter? I am using cygwin, btw.

Thank you,
Tyler

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-12-01 20:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-01 18:51 [ECOS] changing compile source in cdl based on platform Tyler Wilson
2008-12-01 19:40 ` Bart Veer
2008-12-01 20:55   ` Sergei Gavrikov
2008-12-02  0:41     ` Bart Veer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).