Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

ARM: one more toolchain support

(1/1)

pauliusz:
I want to add one more toolchain (Yagarto) to the GNU ARM GCC compiler. (current GNUARM)
The question is which toolchain should be selected by autodetection if both are present?
1. GNUARM (current), because of backwards compatibility(?).
2. Yagarto, actually more popular then GNUARM amongst ARM developers.
3. MessageBox should be displayed asking user which one to use.
4. I should create separate Yagarto compiler... don't really like this idea since everything is the same as in GNUARM

mariocup:
Hi Pauliusz,

I think there are two solution.

Add two configurations in the cb environment editor e.g. GNUARM and Yagarto.
Set a variable ARMGCC=<gnuarm> (e.g. C:\GNUARM) in the configuration for GNUARM and
set the variable ARMGCC=<yagarto> (e.g. C:\Yagarto) for the configuration Yagarto.

Now go compiler and debugger settings and select the tab toolchain executables. Then access the path of your toolchain with $(GNUARM). So cb expands this variable depending on the current configuration.

So you can easily switch between these configuration and assign the configuration even to the project properties.

Another possibility (I did not tried it myself until now) is to use a ini file for the configuration of custom compiler.

For details:
http://wiki.codeblocks.org/index.php?title=Installing_a_supported_compiler

Bye,

Mario

pauliusz:
I know how to add custom compiler :)

I want to make native Yagarto support in CB. I will post a patch in BerliOS.

Navigation

[0] Message Index

Go to full version