This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Building Redboot using specific CFLAGS
- From: Sergei Gavrikov <sergei dot gavrikov at gmail dot com>
- To: alfred steele <alfred dot jaquez at gmail dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Tue, 26 May 2009 19:45:44 +0300
- Subject: Re: [ECOS] Building Redboot using specific CFLAGS
- References: <528f13590905260933t24c45e46s85bf9fd383982f5c@mail.gmail.com>
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