Hello,

I've set up an Windows Embedded CE 5.0 O/S design. The SYSGEN works
fine. I want to run an unattended build on a dedicated machine.

The recent source files will be fetched from CVS. I found the "blddemo
-q" in the workspace directory of the O/S design would do the job as
long as no SYSGEN variables have been changed. What would be the
general approach to rebuild the O/S design. The precompiled libs in
PUBLIC and PRIVAT must keeped untouched.

Andreas

Re: Command line build by Erwin

Erwin
Wed Mar 19 01:47:02 PDT 2008

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.microsoft.com/en-us/library/aa448609.aspx ,

Hope This helps,

Erwin Zwart

<AndreasSander1@gmx.net> wrote in message
news:068a9a86-9f31-4fbd-9e14-49b4146e3ae7@b64g2000hsa.googlegroups.com...
> Hello,
>
> I've set up an Windows Embedded CE 5.0 O/S design. The SYSGEN works
> fine. I want to run an unattended build on a dedicated machine.
>
> The recent source files will be fetched from CVS. I found the "blddemo
> -q" in the workspace directory of the O/S design would do the job as
> long as no SYSGEN variables have been changed. What would be the
> general approach to rebuild the O/S design. The precompiled libs in
> PUBLIC and PRIVAT must keeped untouched.
>
> Andreas



Re: Command line build by AndreasSander1

AndreasSander1
Wed Mar 19 03:04:00 PDT 2008

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.microsoft.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

Re: Command line build by Erwin

Erwin
Wed Mar 19 03:29:10 PDT 2008

Hi Andreas,

This is an example for running this in a batch file:

@echo off

SET _OSDESIGNDIR=%_WINCEROOT%\PBWorkspaces\YOUR_WORKSPACE_FOLDER
SET _OSDESIGN=%_OSDESIGNDIR%\YOUR_WORKSPACE.pbxml
SET _OSDESIGNCONFIG="Your OS design configuration name"

"%ProgramFiles%\Windows CE Platform Builder\5.00\CEPB\BIN\pbxmlutils"
/getbuildenv /workspace "%_OSDESIGN%" /config "%_OSDESIGNCONFIG%" >
"c:\temp\SetEnv.bat"

cd "%_OSDESIGNDIR%"
call "c:\temp\SetEnv.bat"
cd "%_OSDESIGNDIR%"

blddemo clean -q

ofcourse you need to modify the first three variables to your own
configuration,

Hope This Helps,

Erwin Zwart

ps
"Your OS design configuration name" is for example: " EMUL: ARMV4I_Debug"

<AndreasSander1@gmx.net> wrote in message
news:6225badc-2fc3-410f-bad6-497b7755ed99@a70g2000hsh.googlegroups.com...
> 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.microsoft.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



Re: Command line build by embedinfo

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





Re: Command line build by AndreasSander1

AndreasSander1
Wed Mar 19 07:21:37 PDT 2008

Erwin,

Many thanks for the detailed explanation. Your example extracts all
information from the pbxml file that I created and builds the
environment I need for unattended build.

I also thank embedinfo, even if your proposel looks more complicated
and I will use the other version.

Regards,
Andreas

Re: Command line build by Dean

Dean
Wed Mar 19 13:32:11 PDT 2008

FWIW, the second option is the way it would be done if you didn't have a
pbxml file. It is also the way it would have been done prior to CE5 when
there was no pbxml file...

--
Dean Ramsier - eMVP
BSQUARE Corporation


<AndreasSander1@gmx.net> wrote in message
news:8195d2a2-2ded-4387-839c-0134a19dd909@s13g2000prd.googlegroups.com...
> Erwin,
>
> Many thanks for the detailed explanation. Your example extracts all
> information from the pbxml file that I created and builds the
> environment I need for unattended build.
>
> I also thank embedinfo, even if your proposel looks more complicated
> and I will use the other version.
>
> Regards,
> Andreas



Re: Command line build by Arnie

Arnie
Mon Mar 24 16:00:11 PDT 2008

If you're interested you can use a command-line tool I built to help with
this sort of thing.

It uses the C# automation model provided by Microsoft found in the
Microsoft.PlatformBuilder.* assemblies. This framework is what eventually
gets called by blddemo as well as the IDE.

The tool has alot of flexibility around full sysgen, clean, user projects
only, overriding the CE root etc.

In it's simplest form it would look something like this:

PB_Build.exe /workspace <myworkspace.pbxml> /config <myconfig> - and would
build your nk.bin in it's default location

I'm trying to turn it over to OpenNetCF so that others can enhance it.

-jeff

"Dean Ramsier" <ramsiernospam@nospam.com> wrote in message
news:uPheRBgiIHA.1164@TK2MSFTNGP02.phx.gbl...
> FWIW, the second option is the way it would be done if you didn't have a
> pbxml file. It is also the way it would have been done prior to CE5 when
> there was no pbxml file...
>
> --
> Dean Ramsier - eMVP
> BSQUARE Corporation
>
>
> <AndreasSander1@gmx.net> wrote in message
> news:8195d2a2-2ded-4387-839c-0134a19dd909@s13g2000prd.googlegroups.com...
>> Erwin,
>>
>> Many thanks for the detailed explanation. Your example extracts all
>> information from the pbxml file that I created and builds the
>> environment I need for unattended build.
>>
>> I also thank embedinfo, even if your proposel looks more complicated
>> and I will use the other version.
>>
>> Regards,
>> Andreas
>
>