找回密码
 注册
搜索
查看: 517|回复: 5

配置MTK工程和incredibuild才能实现分布式编译

[复制链接]
发表于 2009-12-7 14:34:33 | 显示全部楼层 |阅读模式
配置MTK工程和incredibuild才能实现分布式编译

1.make文件夹里面的Gsm2.mak修改make工具的编译项为IncredBuild增加运行参数
#@echo tools\make.exe -fmake\comp.mak -r -R COMPONENT=$* ... $(strip $(COMPLOGDIR))\$*.log
@if /I %OS% EQU WINDOWS_NT \
  (if /I $(BM_NEW) EQU TRUE \
  (XGConsole /command="tools\make.exe -fmake\comp.mak -k -r -R $(strip $(CMD_ARGU)) COMPONENT=$* > $(strip $(COMPLOGDIR))\$*.log 2>&1" /NOLOGO /profile="tools\XGConsole.xml")  \
  else \
  (XGConsole /command="tools\make.exe -fmake\comp.mak -r -R $(strip $(CMD_ARGU)) COMPONENT=$* > $(strip $(COMPLOGDIR))\$*.log 2>&1" /NOLOGO /profile="tools\XGConsole.xml")  \
  ) \
else \
  (if /I $(BM_NEW) EQU TRUE \
  (tools\make.exe -fmake\comp.mak -k -r -R $(strip $(CMD_ARGU)) COMPONENT=$* > $(strip $(COMPLOGDIR))\$*.log) \
  else \
  (tools\make.exe -fmake\comp.mak -r -R $(strip $(CMD_ARGU)) COMPONENT=$* > $(strip $(COMPLOGDIR))\$*.log) \
  )
@type $(strip $(COMPLOGDIR))\$*.log >> $(LOG)
@perl .\tools\chk_lib_err_warn.pl $(strip $(COMPLOGDIR))\$*.log

2.tools工具夹里面加入 XGConsole.xml
内容为
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Profile FormatVersion="1">
<Tools>
<Tool Filename="perl" AllowRemote="true" />
<Tool Filename="make" AllowIntercept="true" />
<Tool Filename="tcc" AllowRemote="true" />
<Tool Filename="tcpp" AllowRemote="true" />
<Tool Filename="armcc" AllowRemote="true" />
<Tool Filename="armcpp" AllowRemote="true" />
<Tool Filename="strcmpex" AllowRemote="true" />
<Tool Filename="warp" AllowRemote="true" />
<Tool Filename="armar" AllowRemote="false" />
<Tool Filename="formelf" AllowRemote="false" />
</Tools>
</Profile>

3.tools工具夹里面的make2.pl修改以下几行
if (($action eq "update") || ($action eq "remake") || ($action eq "new") || ($action eq "bm_new") ||
    ($action eq "c,r") || ($action eq "c,u")) {
  if ($ENV{"NUMBER_OF_PROCESSORS"} > 1) {
    if ($fullOpts eq "") {
      $fullOpts = "CMD_ARGU=-j$ENV{\"NUMBER_OF_PROCESSORS\"}";
    } else {
      $fullOpts .= ",-j$ENV{\"NUMBER_OF_PROCESSORS\"}";
    }
  }
}
改为
if (($action eq "update") || ($action eq "remake") || ($action eq "new") || ($action eq "bm_new") ||
    ($action eq "c,r") || ($action eq "c,u")) {
  if ($ENV{"NUMBER_OF_PROCESSORS"} >= 1) {
    if ($fullOpts eq "") {
      $fullOpts = "CMD_ARGU=-j$ENV{\"NUMBER_OF_PROCESSORS\"}"."0";
    } else {
      $fullOpts .= ",-j$ENV{\"NUMBER_OF_PROCESSORS\"}"."0";
    }
  }
}


$ENV{"NUMBER_OF_PROCESSORS"} = 10;  //修改为你想要的进程数

4.把tools里面的make.exe换成多任务的文件


本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/setsail_wu/archive/2009/04/06/4052857.aspx

网上找的,放上来供有需要的朋友参考参考[em15]
 楼主| 发表于 2009-12-7 14:35:22 | 显示全部楼层
2.tools工具夹里面加入 XGConsole.xml
内容为
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<Profile FormatVersion="1">
<Tools>
<Tool Filename="perl" AllowRemote="true" />
<Tool Filename="make" AllowIntercept="true" />
<Tool Filename="tcc" AllowRemote="true" />
<Tool Filename="tcpp" AllowRemote="true" />
<Tool Filename="armcc" AllowRemote="true" />
<Tool Filename="armcpp" AllowRemote="true" />
<Tool Filename="strcmpex" AllowRemote="true" />
<Tool Filename="warp" AllowRemote="true" />
<Tool Filename="armar" AllowRemote="false" />
<Tool Filename="formelf" AllowRemote="false" />
</Tools>
</Profile>
点评回复

使用道具 举报

 楼主| 发表于 2009-12-7 14:36:08 | 显示全部楼层
2.tools工具夹里面加入 XGConsole.xml
内容为
...<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
...<Profile FormatVersion="1">
....<Tools>
...<Tool Filename="perl" AllowRemote="true" />
...<Tool Filename="make" AllowIntercept="true" />
....<Tool Filename="tcc" AllowRemote="true" />
...<Tool Filename="tcpp" AllowRemote="true" />
...<Tool Filename="armcc" AllowRemote="true" />
....<Tool Filename="armcpp" AllowRemote="true" />
...<Tool Filename="strcmpex" AllowRemote="true" />
...<Tool Filename="warp" AllowRemote="true" />
....<Tool Filename="armar" AllowRemote="false" />
....<Tool Filename="formelf" AllowRemote="false" />
....</Tools>
....</Profile>
点评回复

使用道具 举报

 楼主| 发表于 2009-12-7 14:37:17 | 显示全部楼层
2.tools工具夹里面加入 XGConsole.xml
内容为
?xml version="1.0" encoding="UTF-8" standalone="no" ?
Profile FormatVersion="1"
Tools
Tool Filename="perl" AllowRemote="true" /
Tool Filename="make" AllowIntercept="true" /
Tool Filename="tcc" AllowRemote="true" /
Tool Filename="tcpp" AllowRemote="true" /
Tool Filename="armcc" AllowRemote="true" /
Tool Filename="armcpp" AllowRemote="true" /
Tool Filename="strcmpex" AllowRemote="true" /
Tool Filename="warp" AllowRemote="true" /
Tool Filename="armar" AllowRemote="false" /
Tool Filename="formelf" AllowRemote="false" /
/Tools
/Profile
点评回复

使用道具 举报

 楼主| 发表于 2009-12-7 14:38:13 | 显示全部楼层
终于写上去了,前后分别加上"<"   ">"[em07]
点评回复

使用道具 举报

发表于 2009-12-7 17:00:56 | 显示全部楼层
我这早就用过了,仅对09A之前的代码有效。
http://www.52rd.com/bbs/Detail_RD.BBS_140035_118_1_1.html
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2024-10-7 11:24 , Processed in 0.045382 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表