buildsystem,ide,epj2make,tarball; let compiler config file and tarball's include...
authorRejean Loyer <rejean.loyer@gmail.com>
Wed, 24 Oct 2012 01:24:53 +0000 (21:24 -0400)
committerRejean Loyer <rejean.loyer@gmail.com>
Wed, 24 Oct 2012 07:28:27 +0000 (03:28 -0400)
ide/src/project/Project.ec
include.mk

index bc9009e..019072b 100644 (file)
@@ -2036,7 +2036,11 @@ private:
             f.Printf("CXX := $(CCACHE_COMPILE) $(DISTCC_COMPILE) $(GCC_PREFIX)%s$(_SYSROOT)\n", compiler.cxxCommand);
             f.Printf("ECP := %s\n", compiler.ecpCommand);
             f.Printf("ECC := %s\n", compiler.eccCommand);
+            f.Printf("ifeq \"$(TARGET_PLATFORM)\" \"$(HOST_PLATFORM)\"\n");
+            f.Printf("ECS := %s\n", compiler.ecsCommand);
+            f.Printf("else\n");
             f.Printf("ECS := %s -t $(TARGET_PLATFORM)\n", compiler.ecsCommand);
+            f.Printf("endif\n");
             f.Printf("EAR := %s\n", compiler.earCommand);
 
             f.Printf("AS := $(GCC_PREFIX)as\n");
index 7b604cd..a4340a4 100644 (file)
@@ -3,7 +3,11 @@ export CC      = $(CCACHE_COMPILE) $(DISTCC_COMPILE) $(GCC_PREFIX)gcc$(_SYSROOT)
 export CPP     = $(CCACHE_COMPILE) $(DISTCC_COMPILE) $(GCC_PREFIX)cpp$(_SYSROOT)
 export ECP     = ecp
 export ECC     = ecc
+ifeq "$(TARGET_PLATFORM)" "$(HOST_PLATFORM)"
 export ECS     = ecs
+else
+export ECS     = ecs -t $(PLATFORM)
+endif
 export EAR     = ear
 export AS      = $(GCC_PREFIX)as
 export LD      = $(GCC_PREFIX)ld