2009-05-26 19:09:21     application build outside of dist source tree

Document created by Aaronwu Employee on Aug 15, 2013
Version 1Show Document
  • View in full screen mode

2009-05-26 19:09:21     application build outside of dist source tree

Rob Maris (GERMANY)

Message: 74625   

 

I want to make changes to an application that is part of the configuration/dist-build tree and hence part of all stuff in ROMFS. For this purpose I'd copy the content of the desired USER/<APP> directory to another place where I can modify and build  it using an IDE, and, most important: have good interactive code & debug iterations.

 

Do general how-to documents exist (on the docs site or elsewhere) on how to proceed in this case? I'm stuck especially on the existing makefiles in the app directories, where e.g. ROMFSINST amd ROOTDIR need be defined, and the necessity to get headers of other modules/libraries in place.

 

I'd suggest that it is not necessary to run ./configure of such "outplaced" application subtrees, since build is going on properly in the main distribution tree.

 

Thanks for any help, suggestions or pointers.

QuoteReplyEditDelete

 

 

2009-05-26 22:30:59     Re: application build outside of dist source tree

Mike Frysinger (UNITED STATES)

Message: 74626   

 

the uClinux distribution isnt really designed with this use case in mind.  i.e. it wont really work.

 

you could mimic the build environment, but that's a lot of integrated cruft to manage.

 

you can however shortcut the typical `make` for individual packages by using the suffixed targets:

make user/foo_clean

make user/foo_only

make user/foo_romfs

QuoteReplyEditDelete

 

 

2009-05-27 03:03:58     Re: application build outside of dist source tree

Rob Maris (GERMANY)

Message: 74631   

 

Mike, very much thanks for this hint. This proved to be a quick way of investigating what is going on in the application directory when executing your proposed make calls with these clever "_xxx" target determinations. Then, before this, I tried to make from the application directory itself, but this is different.

 

I'll set up a build environment where Eclipse is using the application directory within the source tree. I'll give feedback about results.

 

One remaining question: The application which is in my focus - Linphone-3.1.1, makes a 1.1 MB big linphonec executable in the build-linphone-3.1.1/console directory. In romfs/usr/bin however, this shrinks to approx. 250kB. Both executables prove to operate equally well. But it is hard to believe that the difference is in a sort of debug resp. release compilation, since this happens only in the romfs build step. Can you summarize what is going on?

 

-Rob

QuoteReplyEditDelete

 

 

2009-05-27 03:09:26     Re: application build outside of dist source tree

Mike Frysinger (UNITED STATES)

Message: 74632   

 

the romfs step is when debugging information and such is stripped ... the file gets copied to romfs/ and then stripped

Attachments

    Outcomes