修改bat后要重新open release directory in build window

VS2005, 用“release directory in build window“ make过一遍image,放着,在SMDKV210.bat里把“set BSP_NOUART2=1”的1去掉了,再make image,放到板子里,uart2还是没有。在build window里用SET看了一下,果然BSP_NOUART2还是=1。release目录下也没有smdkv210.bat这个文件。难道需要重编一遍OS?SMDKV210.bat在什么时候才会被用到呢?

在winCE6 fundamentals的第四章build system里,先bat为关键字搜了搜,太多了无果;用bsp_搜,看到了一张表格名为environmental variables;再用environmental variables搜,看到了这么一段:An OS design is defined by what environment variables it sets. Each OS design has an associated PBInitEnv.bat file that is called to configure the build environment for that OS design. PBInitEnv.bat is called either when a new build window is opened through the Build Open Release Directory in the Build Window menu item in Platform Builder, or when an OS build is initiated through the Platform Builder UI. 主要就在new这个字。PBInitEnv.bat 在窗口开的时候才载入,之后再由它载入其他bat中的环境变量。于是把build window关了,再开一次,再makeimg。果然好了。

你可能感兴趣的:(image,OS,System,Build,WinCE,variables)