[CMake] Support for RVDS 4.1: ARM C/C++ and ASM compilers.

Alexander Neundorf a.neundorf-work at gmx.net
Thu Dec 8 15:24:15 EST 2011


On Thursday 08 December 2011, Abdelrazak Younes wrote:
> Hello,
> 
> We (MARVELL Switzerland) have created some CMake support files in order to
> use RVDS 4.1 ARM C/C++ and ASM compilers.

Cool !
I mean, this is really cool ! :-)

Can you please create a ticket for this on 
http://public.kitware.com/Bug/my_view_page.php
, basically with the content of this email ?
This way it is ensured that it won't get lost or forgotten.

Some comments:

Setting all the CMAKE_(C|CXX)_CREATE_* and ARCHIVE variables in the toolchain 
file should not be necessary.

It should be enough to only set CMAKE_C_COMPILER and CMAKE_CXX_COMPILER.
Then cmake tries to compile a small executable with it, and tries to detect 
the compiler, see Modules/CMakeCCompilerID.c.in.
Probably there is a macro builtin into this compiler to detect that it is the 
RVDS compiler ?
The cmake compiler ID could then be named "RVDS".

Then cmake executes Modules/CMakeFindBinUtils.cmake.
If the compiler ID has been determined successfully, you can change this file 
so that if the compiler ID is RVDS, it looks for "armar" instead of ar.

Then, once it has detected this "compiler id", it can load 
Modules/Compiler/RVDS-C.cmake and RVDS-CXX.cmake. There you can put also the 
variables for linking etc.


Thanks a lot :-)
Alex


More information about the CMake mailing list