[Bug 1758] RTEMS Makefile templates include paths screwed up

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Mar 8 18:37:42 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1758

--- Comment #11 from Joel Sherrill <joel.sherrill at oarcorp.com> 2011-03-08 12:37:39 CST ---
(In reply to comment #10)
> (In reply to comment #9)

> > I am sure you have a mechanism in mind to ensure
> > the application is built with the right libraries, compiler settings etc.
> 
> Basically like you would build any other arbitrary package on any other 
> arbitrary OS: From manual input, using your preferred tools, being assisted by
> standardized tools (e.g. pkg-config support files).
> 
> The fundamental difference would be that you are not being forced to struggle
> the fragments and don't have to fight with them (e.g. when default.cfg pulls in
> gcc-target-default.cfg which will kill most configure scripts).
> 
> Let me provide an example to get you rough feeling for where I am heading to:
> # make RTEMS_BSP=sis
> # make install
> # export PKG_CONFIG_PATH=/opt/rtems-4.11/lib/pkgconfig
> # pkg-config --cflags sparc-rtems4.11-sis
> -qrtems -B/opt/rtems-4.11/sparc-rtems4.11/lib/
> -B/opt/rtems-4.11/sparc-rtems4.11/sis/lib/ --specs bsp_specs -mcpu=cypress -O2
> -g -Wall -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs
> 
> cd <myapplication>
> ./configure CFLAGS=$(pkg-config --cflags sparc-rtems4.11-sis) ....
> 
> [Note: This is with a real current rtems-4.11 source tree, 
> Things are broken and arguable in detail, but the basic already work]

OK.  So you want to move forward with the pkgconfig stuff.  I thought you had
misgivings about it at one point.

What about getting from ELF to downloadable format?  That is beyond the scope
of pkgconfig AFAIK

I really don't care except that at this point we need the legacy makefile
adapter in place until the use cases are converted to autotools. If Chris has
this ready for the examples-v2 and network-demos, then it needs to be committed
ASAP. 

I can probably get rtems-graphics-toolkit and rtems-addon-packages working
again since they are probing. Chris and I can hopefully get the ada-examples
working again together.

There is also the use case of the gcc-testing support.  We will not be
reporting tool results until some temporary legacy Makefile adapter is in place
OR the uses are converted to pkgconfig.

I really would have preferred to have these use cases switched to pkgconfig and
autotools as appropriate before the legacy support went away.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list