@@ -559,6 +559,8 @@ private static void setTheEnvironmentVariablesSetTheDefaults(IContributedEnviron
559
559
contribEnv .addVariable (var , confDesc );
560
560
// End of Teensy specific settings
561
561
562
+
563
+ // TODO add mtk?
562
564
if (platformFile .segment (platformFile .segmentCount () - 2 ).equals ("avr" )) {
563
565
var = new EnvironmentVariable (ENV_KEY_compiler_path , makeEnvironmentVar ("A.RUNTIME.IDE.PATH" ) + "/hardware/tools/avr/bin/" );
564
566
contribEnv .addVariable (var , confDesc );
@@ -568,6 +570,9 @@ private static void setTheEnvironmentVariablesSetTheDefaults(IContributedEnviron
568
570
var = new EnvironmentVariable (ENV_KEY_build_generic_path , makeEnvironmentVar ("A.RUNTIME.IDE.PATH" )
569
571
+ "/hardware/tools/g++_arm_none_eabi/arm-none-eabi/bin" );
570
572
contribEnv .addVariable (var , confDesc );
573
+ } else if (platformFile .segment (platformFile .segmentCount () - 2 ).equals ("mtk" )) {
574
+ var = new EnvironmentVariable (ENV_KEY_build_system_path , makeEnvironmentVar ("A.RUNTIME.IDE.PATH" ) + "/hardware/arduino/mtk/system" );
575
+ contribEnv .addVariable (var , confDesc );
571
576
}
572
577
573
578
// some glue to make it work
@@ -640,6 +645,8 @@ private static void setTheEnvironmentVariablesAddthePlatformTxt(IContributedEnvi
640
645
if (Var .length == 2 ) {
641
646
String Value = MakeEnvironmentString (Var [1 ].replace ("\" {build.path}/syscalls_sam3.c.o\" " ,
642
647
"\" {build.path}/arduino/syscalls_sam3.c.o\" " ));
648
+ Value = MakeEnvironmentString (Var [1 ].replace ("\" {build.path}/syscalls_mtk.c.o\" " ,
649
+ "\" {build.path}/arduino/syscalls_mtk.c.o\" " ));
643
650
var = new EnvironmentVariable (MakeKeyString (Var [0 ]), Value );
644
651
contribEnv .addVariable (var , confDesc );
645
652
}
0 commit comments