Author Topic: ARM: one more toolchain support  (Read 3724 times)

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
ARM: one more toolchain support
« on: July 03, 2007, 11:26:24 pm »
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
« Last Edit: July 03, 2007, 11:50:46 pm by pauliusz »

mariocup

  • Guest
Re: ARM: one more toolchain support
« Reply #1 on: July 03, 2007, 11:40:41 pm »
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

Offline pauliusz

  • Multiple posting newcomer
  • *
  • Posts: 73
Re: ARM: one more toolchain support
« Reply #2 on: July 03, 2007, 11:49:23 pm »
I know how to add custom compiler :)

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