Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] FTP-transfer after building .exe

Hello all,

I am using eclipse for C/C++ development for an embedded platform. After building the .exe target it must be moved to the target using ftp. I would like eclipse to automatically move the .exe to the target as part of the managed build.

This was my scheme (which failed, so far):

1. Get the C sources translated to .o with the gcc compiler (works fine).
2. Get the .o files linked to .exe with gcc (works fine, too).
3. Define another tool in the toolchain, a shell script which will take .exe as source, transfer it to the target, and, on success creates a little .txt file to let make know that even the last stage of the build succeeded.

I managed to create a plugin which defines a new project type, containing my own definitions for configuration, tool chain and "ftp beamer script". What happens when I build the project is this:

1. The C files are compiled to .o (that should be so).
2. The beamer script is called with the .o files instead of first building the .exe and then calling the script.

So it seems to me that 
a) I am making a mistake or 
b) the current MBS system cannot figure out that it has to make a three-stage build process.

I am aware that the planned features for CDT 3.0 include support for "custom build steps". So here are my questions:

- Am I doing something wrong? Can anybody help me?
- Is there another workaround for what I am planning to do?
- Or should I just wait for CDT 3.0?

Thanks for your advice!


Norbert Plött

=======================
Dr.-Ing. Norbert Plött
Siemens A&D ATS 1


Back to the top