public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] ECOS_COMMAND_PREFIX question
@ 2007-05-24  1:38 Mike Sweeney
  2007-05-24  8:29 ` jiang jet
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Sweeney @ 2007-05-24  1:38 UTC (permalink / raw)
  To: ecos-discuss

Hi,

In the eCos configuration tool, I am able to build a library
successfully and eCos knows where my build tools are. When I go to
build an application, in this case, the hello world example, I can't
build out of the box with the makefile because the ECOS_COMMAND_PREFIX
variable defined in ecos.mk just says "arm-elf" and not the path to
the build tools prepended to it. This might be related to another
question I have which is about the ecosenv.sh script. This script
appends the path to my build tools to the PATH environment variable so
if I source this script everytime in my shell then obviously the
problem I mentioned above goes away. However, firstly there is no
mention in the eCos documentation that I can tell that says you need
to source this ecosenv.sh script everytime you want to build in a new
shell. Also, the first line in the ecosenv.sh script says "This is a
generated file used by the eCos installer." which makes one think you
shouldn't have to source it everytime.

Thanks.

-- 
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

* RE: [ECOS] ECOS_COMMAND_PREFIX question
  2007-05-24  1:38 [ECOS] ECOS_COMMAND_PREFIX question Mike Sweeney
@ 2007-05-24  8:29 ` jiang jet
  2007-05-25  2:19   ` Mike Sweeney
  0 siblings, 1 reply; 4+ messages in thread
From: jiang jet @ 2007-05-24  8:29 UTC (permalink / raw)
  To: msweeney77; +Cc: ecos-discuss

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb2312; format=flowed, Size: 1964 bytes --]




>From: "Mike Sweeney" <msweeney77@gmail.com>
>To: ecos-discuss@sourceware.org
>Subject: [ECOS] ECOS_COMMAND_PREFIX question
>Date: Wed, 23 May 2007 21:15:27 -0400
>
>Hi,
>
>In the eCos configuration tool, I am able to build a library
>successfully and eCos knows where my build tools are. When I go to
>build an application, in this case, the hello world example, I can't
>build out of the box with the makefile because the 
>ECOS_COMMAND_PREFIX
>variable defined in ecos.mk just says "arm-elf" and not the path to
>the build tools prepended to it. This might be related to another
>question I have which is about the ecosenv.sh script. This script
>appends the path to my build tools to the PATH environment variable 
>so
>if I source this script everytime in my shell then obviously the
>problem I mentioned above goes away. However, firstly there is no
>mention in the eCos documentation that I can tell that says you need
>to source this ecosenv.sh script everytime you want to build in a 
>new
>shell. Also, the first line in the ecosenv.sh script says "This is a

maybe it's a shell problem, i remember the environment variable exported in 
one shell will disapper in another new shell enviornment, if just using the 
configtools to configure ecos and compile it in cmd line, there should be 
no need to source script everytime
hope i got the point:)
>generated file used by the eCos installer." which makes one think 
>you
>shouldn't have to source it everytime.
>
>Thanks.
>
>--
>Before posting, please read the FAQ: 
>http://ecos.sourceware.org/fom/ecos
>and search the list archive: 
>http://ecos.sourceware.org/ml/ecos-discuss
>

_________________________________________________________________
ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger:  http://messenger.msn.com/cn  


-- 
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

* Re: [ECOS] ECOS_COMMAND_PREFIX question
  2007-05-24  8:29 ` jiang jet
@ 2007-05-25  2:19   ` Mike Sweeney
  2007-05-25  8:30     ` Gary Thomas
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Sweeney @ 2007-05-25  2:19 UTC (permalink / raw)
  To: jiang jet; +Cc: ecos-discuss

On 5/23/07, jiang jet <jetjiang@hotmail.com> wrote:
>
>
>
> >From: "Mike Sweeney" <msweeney77@gmail.com>
> >To: ecos-discuss@sourceware.org
> >Subject: [ECOS] ECOS_COMMAND_PREFIX question
> >Date: Wed, 23 May 2007 21:15:27 -0400
> >
> >Hi,
> >
> >In the eCos configuration tool, I am able to build a library
> >successfully and eCos knows where my build tools are. When I go to
> >build an application, in this case, the hello world example, I can't
> >build out of the box with the makefile because the
> >ECOS_COMMAND_PREFIX
> >variable defined in ecos.mk just says "arm-elf" and not the path to
> >the build tools prepended to it. This might be related to another
> >question I have which is about the ecosenv.sh script. This script
> >appends the path to my build tools to the PATH environment variable
> >so
> >if I source this script everytime in my shell then obviously the
> >problem I mentioned above goes away. However, firstly there is no
> >mention in the eCos documentation that I can tell that says you need
> >to source this ecosenv.sh script everytime you want to build in a
> >new
> >shell. Also, the first line in the ecosenv.sh script says "This is a

>
> maybe it's a shell problem, i remember the environment variable exported in
> one shell will disapper in another new shell enviornment, if just using the
> configtools to configure ecos and compile it in cmd line, there should be
> no need to source script everytime
> hope i got the point:)


> >generated file used by the eCos installer." which makes one think
> >you
> >shouldn't have to source it everytime.
> >
> >Thanks.
> >


My point is that the ecosenv.sh script has a line saying it is only
used by the installer. What did the installer use it for since the
path to my build toolchain is not in my system PATH environment
variable. As a result of this, I have to source the ecosenv.sh script
anytime I open a new shell and want to do an eCos application build.
If this really is what I have to do, then it should be documented in
the users guide (I didn't see any mention of this there).

My second point is that the eCos configuration tool knows the path to
my build tools since I specified it there and can build just fine. It
seems to me that based on this it should be smart enough to append the
path to my build toolchain in the makefile it generates with the
variable ECOS_COMMAND_PREFIX defined as in my case just "arm-elf".

-- 
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

* Re: [ECOS] ECOS_COMMAND_PREFIX question
  2007-05-25  2:19   ` Mike Sweeney
@ 2007-05-25  8:30     ` Gary Thomas
  0 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2007-05-25  8:30 UTC (permalink / raw)
  To: Mike Sweeney; +Cc: jiang jet, ecos-discuss

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Sweeney wrote:
> On 5/23/07, jiang jet <jetjiang@hotmail.com> wrote:
>>
>>
>>
>> >From: "Mike Sweeney" <msweeney77@gmail.com>
>> >To: ecos-discuss@sourceware.org
>> >Subject: [ECOS] ECOS_COMMAND_PREFIX question
>> >Date: Wed, 23 May 2007 21:15:27 -0400
>> >
>> >Hi,
>> >
>> >In the eCos configuration tool, I am able to build a library
>> >successfully and eCos knows where my build tools are. When I go to
>> >build an application, in this case, the hello world example, I can't
>> >build out of the box with the makefile because the
>> >ECOS_COMMAND_PREFIX
>> >variable defined in ecos.mk just says "arm-elf" and not the path to
>> >the build tools prepended to it. This might be related to another
>> >question I have which is about the ecosenv.sh script. This script
>> >appends the path to my build tools to the PATH environment variable
>> >so
>> >if I source this script everytime in my shell then obviously the
>> >problem I mentioned above goes away. However, firstly there is no
>> >mention in the eCos documentation that I can tell that says you need
>> >to source this ecosenv.sh script everytime you want to build in a
>> >new
>> >shell. Also, the first line in the ecosenv.sh script says "This is a
> 
>>
>> maybe it's a shell problem, i remember the environment variable
>> exported in
>> one shell will disapper in another new shell enviornment, if just
>> using the
>> configtools to configure ecos and compile it in cmd line, there should be
>> no need to source script everytime
>> hope i got the point:)
> 
> 
>> >generated file used by the eCos installer." which makes one think
>> >you
>> >shouldn't have to source it everytime.
>> >
>> >Thanks.
>> >
> 
> 
> My point is that the ecosenv.sh script has a line saying it is only
> used by the installer. What did the installer use it for since the
> path to my build toolchain is not in my system PATH environment
> variable. As a result of this, I have to source the ecosenv.sh script
> anytime I open a new shell and want to do an eCos application build.
> If this really is what I have to do, then it should be documented in
> the users guide (I didn't see any mention of this there).
> 
> My second point is that the eCos configuration tool knows the path to
> my build tools since I specified it there and can build just fine. It
> seems to me that based on this it should be smart enough to append the
> path to my build toolchain in the makefile it generates with the
> variable ECOS_COMMAND_PREFIX defined as in my case just "arm-elf".
> 

Not everyone (certainly not me) uses the config tool to build eCos.
The tools are given their generic names, e.g. arm-elf-gcc, so that
the same name works in all environments (Linux, CygWin, etc)

The 'ecosenv.sh' script is just a convenience on CygWin.  On a system
like Linux, one simply adds the path information to their shell startup.
n.b. I assume you can do this on CygWin as well; I don't know as I don't
use it.

- --
- ------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFGVkewmaKbSsQGV8ARAqtgAJ4/8ARB+cTx4lk3aFI468D+xsxKdACfVTrY
rSHbCe997FCYASbOBUP48Po=
=rIi6
-----END PGP SIGNATURE-----

-- 
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:[~2007-05-25  2:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-24  1:38 [ECOS] ECOS_COMMAND_PREFIX question Mike Sweeney
2007-05-24  8:29 ` jiang jet
2007-05-25  2:19   ` Mike Sweeney
2007-05-25  8:30     ` Gary Thomas

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).