[ECOS] Building Redboot using specific CFLAGS

Sergei Gavrikov sergei.gavrikov@gmail.com
Tue May 26 16:46:00 GMT 2009


On Tue, May 26, 2009 at 11:33:40AM -0500, alfred steele wrote:
> Hi All,
> 
> I am trying to quai-automate the build process for redboot.  Inthe
> process of doing so, i need a way through which i can edit the
> cdl_option "CYGBLD_GLOBAL_CFLAGS" through a script.
> 
> Is there any way that i can override  the default
> CYGBLD_GLOBAL_CFLAGS  before doing a "ecosconfig tree" using  the
> command line instead of editing the file ecos.ecc.
> 
> Will appreciate some help on this.

Import your onw settings. e.g.

cat >MYFLAGS.ECM<<EOF
cdl_option CYGBLD_GLOBAL_CFLAGS {
    user_value "-mcpu=..."
};

cdl_option CYGBLD_GLOBAL_LDFLAGS {
    user_value "-mcpu=..." 
};
EOF

ecosconfig import MYFLAGS.ECM
ecosconfig resolve
ecosconfig tree

or

ecosconfig import /dev/stdin <<EOF
cdl_option CYGBLD_GLOBAL_CFLAGS {
    user_value "-mcpu= ..."
};
EOF


Sergei


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

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



More information about the Ecos-discuss mailing list