windows ce 快速编译

http://geekswithblogs.net/BruceEitman/archive/2008/05/17/platform-builder--using-blddemo.aspx

 

Platform Builder: Using BldDemo

 

BldDemo is an interesting batch file.  I suspect that it was originally created to demonstrate how to build a Windows CE project. Today, it is the used by the Platform Builder IDE to build projects.  I don't really use it very often, except through Platform Builder, but it is a good source of information and is useful when I do use it.

What is BldDemo?  It is a batch file that can be used to build a Windows CE image.  It hides the real tools that do the job.  You can find it in %_WINCEROOT%/Public/Common/OAK/Misc if you want to review the commands that are in it.  The following are the things that it does from a high level:

  1. Cleans the results of previous builds
  2. Sets up the workspace if needed
  3. Builds the Public folders
  4. Builds the workspace
  5. Builds the BSP
  6. Copies the results to the _FLATRELEASEDIR
  7. Creates the OS image

BldDemo has several command line options, which you can view by running "blddemo -?".  I will focus on building the whole system because later I will break out the other command line tools. 

The only options that I use from the command line are "clean" and "-q".  This is what they do:

  •  clean forces the project and platform cesysgen folders to be deleted.
  •  -q is passed on to cebuild and tells cebuild to do a quick build rather than a full build of the public folders.

I always pass "-q" to blddemo when I use blddemo.  I do this for two reasons; it speeds up the build and we, the average user, don't have all of the code to do a full build.  It is important to note here that the last command line arguments to blddemo are passed on to cebuild, so any parameters that you want passed on the cebuild should be at the end of the command line.

I use clean whenever I change something that requires a sysgen, which is the only time that I actually use blddemo.  So when do we require a sysgen?  A sysgen is required when environment variables are changed that would affect the results of sysgen.  That put more simply is whenever you drag something from the catalog that sets a SYSGEN_<something> variable.  You also require a sysgen if you change code in the public tree, but you shouldn't do that so it doesn't count as a reason to sysgen does it?

This should set you on your way to using the command line to build.  You can either run "blddemo clean -q" or "blddemo -q" to build your Windows CE OS.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值