Building a WinCE Runtime Image from command line

Step 1: Setting up the environment

_WINCEROOT: This variable should point to the location where your windows ce folder is present

SET WINCEROOT= C:\WINCE700

_OSDESIGNDIR: Should point to the OS Design Directory

SET _OSDESIGNDIR = %_WINCEROOT_%\OSDESIGNS\Test


_OSDESIGN: This variable should point to the OS Design xml file

SET _OSDESIGN = %_WINCEROOT_%\OSDesigns\Test\Test\Test.xml

Finally we have to set the _OSDESIGNCONFIG environmental variable

SET _OSDESIGNCONFIG = Test X86  Release

To generate a batch file which sets up the environment we have to use utility provided by Platform Builder "PBXmlUtils' and pass the above environmental variables you set as arguments to it.

Eg; C:\Program Files (x86) \Microsoft Platform Builder \7.00\cepb\ideVS\PBXmlUtils.exe /getbuildenv /workspace "%_OSDESIGN%" /config "%_OSDESIGNCONFIG%" > Env.bat

Now you have to open a command prompt and run this batch file to set the environment for build

Step 2: Build OS (bldemo -c)

The build os is the first and longest step of the build process. Fortunately this step is already completed once the platform builder is installed. The output libraries and .dll files resulting from this step are included with platform builder - that's why size of each CPU Architecture will be in giga bytes.

Step 3: Sysgen OS (bldemo -q)

Sysgen OS step links together the libraries created during the Build OS step. It manages link dependencies and select only the components that are needed for the Operating System

Comments

Popular posts from this blog

bb.utils.contains yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig

PR, PN and PV Variable in Yocto