Create separate toolchains for each core (HS/EM)

This batch has both EM&HS toolchain in complier plugin, so now each config
will have different toolchain, and each core have different options. In
current toolchain, only corrent -mcpu will be showed up.

Undone problem:
1: Can change EM to HS, but get error when changing back
2: Cannot complie HS project
3: Need to change "Empty project for EH/HS" 's default toolchain

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add printsize for HS toolchain

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Fix problem of internal errors when click Apply

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
No errors when changing toolchains

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Remove printsize for HS

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add HS toolchain support in HelloARC

1:No errors when changing toolchain
2:Both support EM/HS in Hellwo world project, but EM toolchain will create
HS settings --undone problem
3:Can compile current project after chaning toolchain --undone problem

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Support both EM/HS Hello projects

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Set present options for HS Hello project

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add ARC700 support in Hello project

17:41:08 **** Build of configuration Debug for project 700 ****
make all
Building file: ../src/700.c
Invoking: ARC ELF32 GCC C Compiler
arc-elf32-gcc -O0 -Wall -Wa,-adhlns="src/700.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/700.d" -MT"src/700.d" -mA7 -mlittle-endian -g3 -gdwarf-2 -mbarrel-shifter -mnorm -mshift-assist -o "src/700.o" "../src/700.c"
Finished building: ../src/700.c

Building file: ../src/crt0.S
Invoking: ARC ELF32 GCC Assembler
arc-elf32-gcc -x assembler-with-cpp -Wall -Wa,-adhlns="src/crt0.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/crt0.d" -MT"src/crt0.d" -mA7 -mlittle-endian -g3 -gdwarf-2 -mbarrel-shifter -mnorm -mshift-assist -o "src/crt0.o" "../src/crt0.S"
Finished building: ../src/crt0.S

Building target: 700.elf
Invoking: ARC ELF32 GCC C Linker
arc-elf32-gcc -T"C:\Users\yunluz\runtime-EclipseApplication\700/lds/arcelf.lds" -nostartfiles -Wl,-Map,700.map -mA7 -mlittle-endian -g3 -gdwarf-2 -mbarrel-shifter -mnorm -mshift-assist -o "700.elf"  ./src/700.o ./src/crt0.o
Finished building target: 700.elf

Invoking: ARC ELF32 GNU Print Size
arc-elf32-size  --format=berkeley 700.elf
   text	   data	    bss	    dec	    hex	filename
    928	      0	  18432	  19360	   4ba0	700.elf
Finished building: 700.siz

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add ARC600 toolchain to Hello project

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add Hello project to uclibc toolchain

1: change this project to plugin project
2: only test ARC 700 for now
3: Haven't added HS toolchain
Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add HS toolchain to UcLibc plugin

1:haven't add options enablement
2:haven't done all HS options
3:Use arc-buildroot-linux-uclibc-xxx

19:05:12 **** Build of configuration Debug for project s ****
make all
Building file: ../src/crt0.S
Invoking: ARC Linux UcLibc GCC Assembler
arc-buildroot-linux-uclibc-gcc -x assembler-with-cpp -Wall -Wa,-adhlns="src/crt0.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/crt0.d" -MT"src/crt0.d" -mHS -g3 -gdwarf-2 -o "src/crt0.o" "../src/crt0.S"
Finished building: ../src/crt0.S

Building file: ../src/s.c
Invoking: ARC Linux UcLibc GCC C Compiler
arc-buildroot-linux-uclibc-gcc -O0 -Wall -Wa,-adhlns="src/s.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/s.d" -MT"src/s.d" -mHS -g3 -gdwarf-2 -o "src/s.o" "../src/s.c"
Finished building: ../src/s.c

Building target: s.elf
Invoking: ARC Linux UcLibc GCC C Linker
arc-buildroot-linux-uclibc-gcc -T"/home/yunluz/runtime-EclipseApplication/s/lds/arcelf.lds" -nostartfiles -Wl,-Map,s.map -mHS -g3 -gdwarf-2 -o "s.elf"  ./src/crt0.o ./src/s.o
Finished building target: s.elf

19:05:13 Build Finished (took 765ms)

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add HS option enablement sourcecodes to UClibc

Options enablement doesn't work yet
Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add options enablement for UcLibc plugin

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Set HS present options in Uclibc plugin

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add HS toolchain to big endian on Windows

15:22:31 **** Build of configuration Debug for project ddd ****
make all
Building file: ../src/crt0.S
Invoking: ARC Windows GCC Assembler
arceb-elf32-gcc -x assembler-with-cpp -Wall -Wa,-adhlns="src/crt0.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/crt0.d" -MT"src/crt0.d" -mHS -mbig-endian -mmpy-option=2 -g3 -gdwarf-2 -mbarrel-shifter -mcode-density -mnorm -mswap -mshift-assist -o "src/crt0.o" "../src/crt0.S"
Finished building: ../src/crt0.S

Building file: ../src/ddd.c
Invoking: ARC Windows GCC C Compiler
arceb-elf32-gcc -O0 -Wall -Wa,-adhlns="src/ddd.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/ddd.d" -MT"src/ddd.d" -mHS -mbig-endian -mmpy-option=2 -g3 -gdwarf-2 -mbarrel-shifter -mcode-density -mnorm -mswap -mshift-assist -o "src/ddd.o" "../src/ddd.c"
Finished building: ../src/ddd.c

Building target: ddd.elf
Invoking: ARC Windows GCC C Linker
arceb-elf32-gcc -T"C:\Users\yunluz\runtime-EclipseApplication\ddd/lds/arcelf.lds" -nostartfiles -Wl,-Map,ddd.map -mHS -mbig-endian -mmpy-option=2 -g3 -gdwarf-2 -mbarrel-shifter -mcode-density -mnorm -mswap -mshift-assist -o "ddd.elf"  ./src/crt0.o ./src/ddd.o
Finished building target: ddd.elf

Invoking: ARC Windows GNU Print Size
arceb-elf32-size  --format=berkeley ddd.elf
   text	   data	    bss	    dec	    hex	filename
    896	      0	  18432	  19328	   4b80	ddd.elf
Finished building: ddd.siz

15:22:33 Build Finished (took 1s.458ms)

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add ARC600 printsize to little endian toolchain

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add ARC600 toolchain to big endian on Windows

16:31:29 **** Build of configuration Debug for project 600 ****
make all
Building file: ../src/600.c
Invoking: ARC Windows GCC C Compiler
arceb-elf32-gcc -O0 -Wall -Wa,-adhlns="src/600.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/600.d" -MT"src/600.d" -mA6 -mbig-endian -g3 -gdwarf-2 -mbarrel-shifter -mnorm -mshift-assist -o "src/600.o" "../src/600.c"
Finished building: ../src/600.c

Building file: ../src/crt0.S
Invoking: ARC Windows GCC Assembler
arceb-elf32-gcc -x assembler-with-cpp -Wall -Wa,-adhlns="src/crt0.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/crt0.d" -MT"src/crt0.d" -mA6 -mbig-endian -g3 -gdwarf-2 -mbarrel-shifter -mnorm -mshift-assist -o "src/crt0.o" "../src/crt0.S"
Finished building: ../src/crt0.S

Building target: 600.elf
Invoking: ARC Windows GCC C Linker
arceb-elf32-gcc -T"C:\Users\yunluz\runtime-EclipseApplication\600/lds/arcelf.lds" -nostartfiles -Wl,-Map,600.map -mA6 -mbig-endian -g3 -gdwarf-2 -mbarrel-shifter -mnorm -mshift-assist -o "600.elf"  ./src/600.o ./src/crt0.o
Finished building target: 600.elf

Invoking: ARC Windows GNU Print Size
arceb-elf32-size  --format=berkeley 600.elf
   text	   data	    bss	    dec	    hex	filename
    908	      0	  18432	  19340	   4b8c	600.elf
Finished building: 600.siz

16:31:30 Build Finished (took 1s.8ms)

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add ARC700 toolchain to big endian on windowns

16:59:10 **** Build of configuration Debug for project 700 ****
make all
Building file: ../src/700.c
Invoking: ARC Windows GCC C Compiler
arceb-elf32-gcc -O0 -Wall -Wa,-adhlns="src/700.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/700.d" -MT"src/700.d" -mA7 -mbig-endian -g3 -gdwarf-2 -mbarrel-shifter -mnorm -mshift-assist -o "src/700.o" "../src/700.c"
Finished building: ../src/700.c

Building file: ../src/crt0.S
Invoking: ARC Windows GCC Assembler
arceb-elf32-gcc -x assembler-with-cpp -Wall -Wa,-adhlns="src/crt0.o.lst" -c -fmessage-length=0 -MMD -MP -MF"src/crt0.d" -MT"src/crt0.d" -mA7 -mbig-endian -g3 -gdwarf-2 -mbarrel-shifter -mnorm -mshift-assist -o "src/crt0.o" "../src/crt0.S"
Finished building: ../src/crt0.S

Building target: 700.elf
Invoking: ARC Windows GCC C Linker
arceb-elf32-gcc -T"C:\Users\yunluz\runtime-EclipseApplication\700/lds/arcelf.lds" -nostartfiles -Wl,-Map,700.map -mA7 -mbig-endian -g3 -gdwarf-2 -mbarrel-shifter -mnorm -mshift-assist -o "700.elf"  ./src/700.o ./src/crt0.o
Finished building target: 700.elf

Invoking: ARC Windows GNU Print Size
arceb-elf32-size  --format=berkeley 700.elf
   text	   data	    bss	    dec	    hex	filename
    928	      0	  18432	  19360	   4ba0	700.elf
Finished building: 700.siz

16:59:11 Build Finished (took 890ms)

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>
Add HS support for little-endian on Linux

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>