embedinfo
Wed Mar 19 03:59:39 PDT 2008
On Mar 19, 3:04=A0pm, AndreasSand...@gmx.net wrote:
> On 19 Mrz., 09:47, "Erwin Zwart" <erwin dot zwart at pts dot nl>
> wrote:
>
> > Hi Andreas,
>
> > "blddemo -q" performs a sysgen.
> > "blddemo clean -q" performs a clean sysgen
> > "bldemo -qbsp" performs a build of your BSP.
>
> > check the build process in MSDN or platform builder help:
http://msdn2.mi=
crosoft.com/en-us/library/aa448609.aspx,
>
> > Hope This helps,
>
> > Erwin Zwart
>
> Erwin,
>
> Thanks for help. When I run this command in the Windows CE Build
> Window, it works. I need to run it unattended in a nightly build. The
> Open Build Window shortcut uses pbopenbuildwindow to configure the
> environment befor the blddemo.bat can perform the task. Unfortunately
> I did not found any help for this tool.
>
> How can I use build nk.bin from a standard command prompt, probably
> using pbopenbuildwindow?
>
> Andreas
Hi Andreas,
you need to do the following:
1) Create new batch file say name of the batch file be BuildNK.bat.
Contents of the Batch file should be as follows:
@echo off
set _WINCEROOT=3D%cd%
set WINCEDEBUG=3Dretail
REM ********** Environment variables set in the Environment Tab of
Platform settings *********
set _PRJ*
set PROC =3D PXA270
set BUILD_TARGET =3D <MAINSTONE>
REM ********** Environment variables set in the Build option Tab of
Platform settings *********
set SYSGEN_SHELL=3D1
set IMGEBOOT=3D1
REM set IMGNODEBUGGER=3D1
REM set IMGNOKITL=3D1
set BUILDREL_USE_COPY=3D1
set IMGFLASH=3D1
set _FLATRELEASEDIR=3D%_WINCEROOT%\PBWorkspaces\%BUILD_TARGET%\RelDir\
%PROC%_ARMV4I_Release
set _PROJECTROOT=3D%_WINCEROOT%\PBWorkspaces\%BUILD_TARGET%\WINCE500\
%PROC%_ARMV4I
set LOCALE=3D0409
call %_WINCEROOT%\public\common\oak\misc\wince.bat ARMV4I %BUILD_TARGET
% %PROC%
call %_PUBLICROOT%\CEBASE\mobile_handheld.bat
REM ********** SYSGEN variable set by user (set based on catalog items
selected*********
call %_WINCEROOT%\PBWorkspaces\%BUILD_TARGET%\sysgen_env.bat
mkdir %_PROJECTROOT%\OAK\MISC
copy %_TARGETPLATROOT%\cesysgen.bat %_PROJECTROOT%\OAK\MISC\
set IMGNOLOC=3D0
set IMGSTRICTLOC=3D0
set _CURSLMTREE=3DMAINSTONEII
REM set _TGTPROJ=3DMAINSTONE
TITLE %PROC% - %PROC%:ARMV4I_Release - %BUILD_TARGET%
REM
*******************************************************************
REM This command window is set up for running CESH or other debug
tools
REM
*******************************************************************
2) Note that there are 4 batch files called inside buildNK.bat:
a)wince.bat: This is the main batch file that sets WINCE build
environment. Please go through the Platform builder help for the
arguments to be passed to this.
b) mobile_handheld.bat : This is available in Public folder of WINCE
500. I used this because I used Mobile handheld profile in my project.
c) sysgen_env.bat: This batch file is again created by me, and
contents of this are just SYSGEN variables those are set when you add
sysgen variables from WINCE 500 catalog item: Example:
set SYSGEN_USBFN_ETHERNET=3D1
set SYSGEN_USBFN_SERIAL=3D1
note: If you want to reset any of the pre-define sysgen variable, you
can do here. Example:
set SYSGEN_BTH=3D
d) cesysgen.bat: This is batch file is already present in WINCE500
public directory. When you create a new project in IDE this file will
be copied from Public to %_PROJECTROOT%\OAK\MISC\. Before copying the
file we need to check if OAK\MISC directory structure is there or not
if not create it and copy the file.
Note: important point to be noted is: You should make sure that
_WINCEROOT is set properly, other wise it cannot find the wince.bat
and other default wince batch files such as mobile_handheld.bat. So it
is very important to decide where to keep the BuildNK.bat
How to use the batch file?:
1) To build WINCE NK.bin using the batch file, open command line
window (Start --> Run type "cmd")
2) Execute the batch file, which will set WINCE build environment.
3) Then use usual build command such as "blddemo clean -q" which is
equivalent to clicking on "sysgen" button in IDE.
4) Check in this file in your CVS system.
hope this helps!
Thanks