This is the mail archive of the ecos-discuss@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]

Re: adding a new command to RedBoot


On Tue, Mar 02, 2004 at 10:48:58AM +0900, Hiroki Yoshioka wrote:
> hello,
> 
> how do I add a new command to RedBoot?
> 
> the post below seems simply adding some `RedBoot_cmd()' macros and
> function bodies but that doesn't work for me.
> http://ecos.sourceware.org/ml/ecos-discuss/2001-10/msg00402.html

That is the correct process. 

Are you adding a new file which the new commands? How are you
compiling it? Something like:

        cdl_option CYGBLD_BUILD_REDBOOT_WITH_MFILL {
            display       "Include memory fill command"
            doc           ref/mfill-command.html
            default_value 1
            compile -library=libextras.a mfill.c
        }

the -library=libextras.a is important.

    Andrew

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


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