There is this annoying thing that the environment variables that are set in
the platform builder 5.0 environment (platform->settings, environment tab)
are not available to the %_TGTPLAT%.bat batch file when it gets called.

Platform builder seems to set them AFTER it has called the %_TGTPLAT%.bat
batch file.

I consider this a bug and I would like to see it get fixed.

You can simple verify what I am saying by adding this to your
%_TGTPLAT%.bat batch file: set >c:\envdump.txt. Then, set a variable
(platform->settings, environment tab, and define HELLO=1). Select Build
OS->Open Release directory. From that command shell then "type
c:\envdump.txt". You will see that HELLO is not defined. I am sorry, but I
would expect that HELLO variable to be set so that I can use it to fine tune
certain BSP configuration settings inside the %_TGTPLAT%.bat batch file ! It
is even funny that we cannot even determine inside that batch file if we are
in a debug build (%WINCEDEBUG% is set to retail even for a debug workspace,
at the time your %_TGTPLAT%.bat batch file gets called...)

NOTE:
cc: cefdbk@microsoft.com (see if this gets any reply, normally this is a
black hole where you can send all your bug reports and comments but never
ever get any reply from. This is also annoying somehow. You will report
about 10 bugs but then after no feedback from MS at all, you just stop doing
it you know, there's time better spent, like explaining the same bug or
comment to your cat or something, at least the cat thinks it is still
amusing. Anybody ever got any feedback from that e-mail address that MS
urges you to sent bug reports and comments to ?).

RE: environment variables set in PB5.0 not available for %_TGTPLAT%.bat ! by joshm

joshm
Fri Mar 11 15:38:37 CST 2005

Hi Ronald,

You should be able to specify any conditional logic for your platform env
vars in \platform\_TGTPLAT\cebasecesysgen.bat. The user environment
variables that you specify in PB are meant to be applied after wince.bat is
called and the initial build environment is set up, as if you opened a
command-window, set up a build env with wince.bat, and then set the env
vars. _TGTPLAT.bat is not used for any conditional logic,
cebasecesysgen.bat should suffice for that purposes. Hopefully this
clarifies the issue somewhat.

Josh McMullen
Windows CE .NET

Disclaimer: This posting is provided "AS IS" with no warranties, and
confers no rights.
--------------------
| From: "Ronald Sloot" <ronald_sloot@coasia.com.tw>
| Subject: environment variables set in PB5.0 not available for
%_TGTPLAT%.bat !
| Date: Tue, 1 Mar 2005 10:15:26 +0800
| Lines: 31
| Organization: CoAsia Microelectronics Corp.
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
| X-RFC2646: Format=Flowed; Original
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
| Message-ID: <eywiLTgHFHA.3928@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.windowsce.platbuilder
| NNTP-Posting-Host: 211-22-47-98.hinet-ip.hinet.net 211.22.47.98
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTCMTY1.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP0
8.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.windowsce.platbuilder:62649
| X-Tomcat-NG: microsoft.public.windowsce.platbuilder
|
| There is this annoying thing that the environment variables that are set
in
| the platform builder 5.0 environment (platform->settings, environment
tab)
| are not available to the %_TGTPLAT%.bat batch file when it gets called.
|
| Platform builder seems to set them AFTER it has called the %_TGTPLAT%.bat
| batch file.
|
| I consider this a bug and I would like to see it get fixed.
|
| You can simple verify what I am saying by adding this to your
| %_TGTPLAT%.bat batch file: set >c:\envdump.txt. Then, set a variable
| (platform->settings, environment tab, and define HELLO=1). Select Build
| OS->Open Release directory. From that command shell then "type
| c:\envdump.txt". You will see that HELLO is not defined. I am sorry, but
I
| would expect that HELLO variable to be set so that I can use it to fine
tune
| certain BSP configuration settings inside the %_TGTPLAT%.bat batch file !
It
| is even funny that we cannot even determine inside that batch file if we
are
| in a debug build (%WINCEDEBUG% is set to retail even for a debug
workspace,
| at the time your %_TGTPLAT%.bat batch file gets called...)
|
| NOTE:
| cc: cefdbk@microsoft.com (see if this gets any reply, normally this is a
| black hole where you can send all your bug reports and comments but never
| ever get any reply from. This is also annoying somehow. You will report
| about 10 bugs but then after no feedback from MS at all, you just stop
doing
| it you know, there's time better spent, like explaining the same bug or
| comment to your cat or something, at least the cat thinks it is still
| amusing. Anybody ever got any feedback from that e-mail address that MS
| urges you to sent bug reports and comments to ?).
|
|
|


Re: environment variables set in PB5.0 not available for %_TGTPLAT%.bat ! by Ronald

Ronald
Mon Mar 14 21:02:38 CST 2005

Interesting. I wasn't aware of cebasecesysgen.bat. I will get right at it !

Much appreciated Josh !

Ronald

"Josh McMullen (MS)" <joshm@online.microsoft.com> wrote in message
news:Oi6gxKoJFHA.3836@TK2MSFTNGXA02.phx.gbl...
> Hi Ronald,
>
> You should be able to specify any conditional logic for your platform env
> vars in \platform\_TGTPLAT\cebasecesysgen.bat. The user environment
> variables that you specify in PB are meant to be applied after wince.bat
> is
> called and the initial build environment is set up, as if you opened a
> command-window, set up a build env with wince.bat, and then set the env
> vars. _TGTPLAT.bat is not used for any conditional logic,
> cebasecesysgen.bat should suffice for that purposes. Hopefully this
> clarifies the issue somewhat.
>
> Josh McMullen
> Windows CE .NET
>
> Disclaimer: This posting is provided "AS IS" with no warranties, and
> confers no rights.
> --------------------
> | From: "Ronald Sloot" <ronald_sloot@coasia.com.tw>
> | Subject: environment variables set in PB5.0 not available for
> %_TGTPLAT%.bat !
> | Date: Tue, 1 Mar 2005 10:15:26 +0800
> | Lines: 31
> | Organization: CoAsia Microelectronics Corp.
> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
> | X-RFC2646: Format=Flowed; Original
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
> | Message-ID: <eywiLTgHFHA.3928@TK2MSFTNGP09.phx.gbl>
> | Newsgroups: microsoft.public.windowsce.platbuilder
> | NNTP-Posting-Host: 211-22-47-98.hinet-ip.hinet.net 211.22.47.98
> | Path:
> TK2MSFTNGXA02.phx.gbl!TK2MSFTCMTY1.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP0
> 8.phx.gbl!TK2MSFTNGP09.phx.gbl
> | Xref: TK2MSFTNGXA02.phx.gbl microsoft.public.windowsce.platbuilder:62649
> | X-Tomcat-NG: microsoft.public.windowsce.platbuilder
> |
> | There is this annoying thing that the environment variables that are set
> in
> | the platform builder 5.0 environment (platform->settings, environment
> tab)
> | are not available to the %_TGTPLAT%.bat batch file when it gets called.
> |
> | Platform builder seems to set them AFTER it has called the
> %_TGTPLAT%.bat
> | batch file.
> |
> | I consider this a bug and I would like to see it get fixed.
> |
> | You can simple verify what I am saying by adding this to your
> | %_TGTPLAT%.bat batch file: set >c:\envdump.txt. Then, set a variable
> | (platform->settings, environment tab, and define HELLO=1). Select Build
> | OS->Open Release directory. From that command shell then "type
> | c:\envdump.txt". You will see that HELLO is not defined. I am sorry, but
> I
> | would expect that HELLO variable to be set so that I can use it to fine
> tune
> | certain BSP configuration settings inside the %_TGTPLAT%.bat batch file
> !
> It
> | is even funny that we cannot even determine inside that batch file if we
> are
> | in a debug build (%WINCEDEBUG% is set to retail even for a debug
> workspace,
> | at the time your %_TGTPLAT%.bat batch file gets called...)
> |
> | NOTE:
> | cc: cefdbk@microsoft.com (see if this gets any reply, normally this is a
> | black hole where you can send all your bug reports and comments but
> never
> | ever get any reply from. This is also annoying somehow. You will report
> | about 10 bugs but then after no feedback from MS at all, you just stop
> doing
> | it you know, there's time better spent, like explaining the same bug or
> | comment to your cat or something, at least the cat thinks it is still
> | amusing. Anybody ever got any feedback from that e-mail address that MS
> | urges you to sent bug reports and comments to ?).
> |
> |
> |
>



Re: environment variables set in PB5.0 not available for %_TGTPLAT%.bat ! by Ronald

Ronald
Fri Mar 18 06:01:09 CST 2005

That cebasecesysgen.bat is only getting called when your platform is being
sysgen'ed but not everytime when a command window is being opened.

I need to invoke some scripts, automatically, when the user selects "Build
OS -> Open Release directory" with the correct user environment setup by PB.
Getting that environment is the problem...

How would I go about that then, now cebasesysgen.bat doesn't solve it for me
?

Ronald


"Ronald Sloot" <ronald_sloot@coasia.com.tw> wrote in message
news:OEQFyuQKFHA.1096@tk2msftngp13.phx.gbl...
> Interesting. I wasn't aware of cebasecesysgen.bat. I will get right at it
> !
>
> Much appreciated Josh !
>
> Ronald
>
> "Josh McMullen (MS)" <joshm@online.microsoft.com> wrote in message
> news:Oi6gxKoJFHA.3836@TK2MSFTNGXA02.phx.gbl...
>> Hi Ronald,
>>
>> You should be able to specify any conditional logic for your platform env
>> vars in \platform\_TGTPLAT\cebasecesysgen.bat. The user environment
>> variables that you specify in PB are meant to be applied after wince.bat
>> is
>> called and the initial build environment is set up, as if you opened a
>> command-window, set up a build env with wince.bat, and then set the env
>> vars. _TGTPLAT.bat is not used for any conditional logic,
>> cebasecesysgen.bat should suffice for that purposes. Hopefully this
>> clarifies the issue somewhat.
>>
>> Josh McMullen
>> Windows CE .NET
>>
>> Disclaimer: This posting is provided "AS IS" with no warranties, and
>> confers no rights.
>> --------------------
>> | From: "Ronald Sloot" <ronald_sloot@coasia.com.tw>
>> | Subject: environment variables set in PB5.0 not available for
>> %_TGTPLAT%.bat !
>> | Date: Tue, 1 Mar 2005 10:15:26 +0800
>> | Lines: 31
>> | Organization: CoAsia Microelectronics Corp.
>> | X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>> | X-RFC2646: Format=Flowed; Original
>> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>> | Message-ID: <eywiLTgHFHA.3928@TK2MSFTNGP09.phx.gbl>
>> | Newsgroups: microsoft.public.windowsce.platbuilder
>> | NNTP-Posting-Host: 211-22-47-98.hinet-ip.hinet.net 211.22.47.98
>> | Path:
>> TK2MSFTNGXA02.phx.gbl!TK2MSFTCMTY1.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP0
>> 8.phx.gbl!TK2MSFTNGP09.phx.gbl
>> | Xref: TK2MSFTNGXA02.phx.gbl
>> microsoft.public.windowsce.platbuilder:62649
>> | X-Tomcat-NG: microsoft.public.windowsce.platbuilder
>> |
>> | There is this annoying thing that the environment variables that are
>> set
>> in
>> | the platform builder 5.0 environment (platform->settings, environment
>> tab)
>> | are not available to the %_TGTPLAT%.bat batch file when it gets called.
>> |
>> | Platform builder seems to set them AFTER it has called the
>> %_TGTPLAT%.bat
>> | batch file.
>> |
>> | I consider this a bug and I would like to see it get fixed.
>> |
>> | You can simple verify what I am saying by adding this to your
>> | %_TGTPLAT%