[CMake] Cross compile + shared libs problem

Frederik Deweerdt deweerdt at free.fr
Wed Apr 2 00:49:57 EDT 2008


On Wed, Apr 02, 2008 at 01:39:11AM +0200, Alexander Neundorf wrote:
> On Wednesday 02 April 2008, you wrote:
> > On Tue, Apr 01, 2008 at 10:12:20PM +0200, Alexander Neundorf wrote:
> > > On Tuesday 01 April 2008, you wrote:
> > > > On Sat, Mar 29, 2008 at 12:25:45AM +0100, Alexander Neundorf wrote:
> > > > > On Tuesday 25 March 2008, you wrote:
> > > > > ...
> > > > >
> > > > > > I validated the general approach this morning, should be ready by
> > > > > > tomorrow.
> > > > >
> > > > > News ?
> > > >
> > > > Sorry, I couldn't quite save time to make a nice platform file. Would
> > > > you accept the following Rtems.make so that at least CMAKE_SYSTEM_NAME
> > > > == "Rtems" works?
> > >
> > > Hmm, no, that's a bit too little yet.
> > > If this is really enough to have apps and libs build for rtems, yes. If
> > > not, we can do that later.
> > > If you have questions, just ask :-)
> >
> > Well, I didn't figure out what should go to Platform, and what should
> > go to Toolchain. In fact the target is processor + bsp [1]. Should we make
> > a Toolchain per processor + bsp?
> >
> > [1] Board Support Package, for example for sparc:
> >     * ERC32 with FPU
> >     * SPARC Instruction Simulator (sis)
> >     * leon2
> >     * leon3
> 
> You must have:
> Rtems.cmake
> You can have
> Rtems-GNU-C.cmake
> Rtems-GNU-CXX.cmake
> 
> and for different boards you could consider setting CMAKE_SYSTEM_PROCESSOR, 
> e.g. to leon3, then you could have additionally:
> Rtems-GNU-C-leon2.cmake
> Rtems-GNU-CXX-leon2.cmake
> 
> These two files will be loaded before Rtems-GNU-C.cmake and 
> Rtems-GNU-CXX.cmake, so you can adjust 
> variables in Rtems-GNU-[C|CXX]-leon2.cmake which can then be used in 
> Rtems-GNU-[C|CXX].cmake
> 
> Does this help ?
It does yes, thanks.

Regards,
Frederik


More information about the CMake mailing list