Hi:

The file was copied to the "release" directory by the "postlink.bat" at
the project, when I build the project with build image option. But when
I build the OS with build image option will not to copy the file into
the release directory!!!. What I need to add into the sources file of
project to copy the file into "release" directory when I want "sysgen"
- clean build the OS?

In the Sources file of project I added the line as:
POSTLINK_PASS_CMD=postlink.bat

and at postlink.bat copy the file into "release" directory.


Thanks
Lu

Re: How to copy the file into the "release" directory in sysgen build? by Steve

Steve
Tue Jan 03 10:19:31 CST 2006

You need to explain what options/menu commands you are referring to here a
bit more explicitly. I can't quite figure out exactly what steps you are
taking so I can't suggest what might be going wrong.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: How to copy the file into the "release" directory in sysgen build? by ydlu

ydlu
Tue Jan 03 10:49:00 CST 2006

"build current project" with "Make run-time image after build" ==>
could copied the file into the "release" directory!

"Build OS", sysgen with "make Run-time Image after build" ==> will get
error message when makeimg: "Could not find file .... on disk", but the
build.log shown the postlink.bat was called.

Thanks
Lu


Re: How to copy the file into the "release" directory in sysgen build? by Steve

Steve
Tue Jan 03 11:44:05 CST 2006

""Build OS", sysgen" What is that exactly?

Where is the project located?

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: How to copy the file into the "release" directory in sysgen build? by Bruce

Bruce
Tue Jan 03 11:59:24 CST 2006

A couple of things to consider:

1. Is postlink.bat doing what you think it is doing? Turn on echo to see.
2. What happens if you stop the build right after postlink runs, are the
files there then?

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"ydlu" <yudiannlu@gmail.com> wrote in message
news:1136306940.723641.252730@g43g2000cwa.googlegroups.com...
> "build current project" with "Make run-time image after build" ==>
> could copied the file into the "release" directory!
>
> "Build OS", sysgen with "make Run-time Image after build" ==> will get
> error message when makeimg: "Could not find file .... on disk", but the
> build.log shown the postlink.bat was called.
>
> Thanks
> Lu
>



Re: How to copy the file into the "release" directory in sysgen build? by ydlu

ydlu
Tue Jan 03 13:36:52 CST 2006

Hi:

>From menu "Build OS", sysgen with "make run-time image after build"
option, the build.log shown as follows to indicate the file was copied
into the release directory:

BUILD: [01:0000043673:INFO ] "PostLink.bat in Startup project."
BUILD: [01:0000043674:INFO ] copy /y startup.bat to
C:\WINCE500\PBWorkspaces\CIVLUCESTB\RelDir\CIVLU_x86_Debug\startup.bat
BUILD: [01:0000043675:INFO ] 1 file(s) copied.

Then the build output shwon "Calling Makeimg" to start make image of
OS.

Then later shown the error message as:
Windows CE ROM Image Builder v4.0.000 Copyright (c) Microsoft
Corporation
Built: Jun 16 2004 15:09:27
Error: Could not find file
'C:\WINCE500\PBWorkspaces\CIVLUCESTB\RelDir\CIVLU_x86_Debug\Startup.bat'
on disk
Startup.bat
C:\WINCE500\PBWorkspaces\CIVLUCESTB\RelDir\CIVLU_x86_Debug\Startup.bat
NK SU
Error: failed setting line

Then I check the release directory, the "file" was not existed!

I don't know why the file disappeared!!!.

Thanks
Lu


Re: How to copy the file into the "release" directory in sysgen build? by Steve

Steve
Tue Jan 03 13:43:07 CST 2006

Is this a SOURCES project or a PBPXML project? Where is it located? How is
it connected into the build? I suspect its a SOURCES project in the BSP
which is built and linked BEFORE the BUILDREL stage occurs so any build
options which include the BUILDREL stage will delete the copied file as part
of the BUILDREL. If I'm correct the simplest thing to do is to place the
file into the BSPs Files folder so it is automatically copied during the
BUILDREL. If it's a file generated during the build then just make it's
output the files directory or use the post link copy to copy it into the
files folder.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: How to copy the file into the "release" directory in sysgen build? by ydlu

ydlu
Tue Jan 03 14:09:08 CST 2006

Hi:

the problem solved if the file was not copied to the "release"
directory and directed the file from project location at project.bib
file.
but I just wonder why the file was deleted from the release directory?

The project.bib:

Startup.bat "$(_FLATRELEASEDIR)\Startup.bat"
NK SU
not working....

Startup.bat
"$(_PLATFORMROOT)\$(_TGTPLAT)\src\IVLUInstaller\Startup\Startup.bat"
NK SU
working....


Thanks
Lu


Re: How to copy the file into the "release" directory in sysgen build? by Steve

Steve
Tue Jan 03 14:23:39 CST 2006

As I said, If the copy to _FLATRELEASEDIR occurs BEFORE the BUILDREL stage
then it will be deleted.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: How to copy the file into the "release" directory in sysgen build? by ydlu

ydlu
Tue Jan 03 14:37:09 CST 2006

Hi Steve:

why BUILDREL stage deletes the file? Any reason?

Thanks your help.

Lu


Re: How to copy the file into the "release" directory in sysgen build? by Bruce

Bruce
Tue Jan 03 15:17:35 CST 2006

Take a look at buildrel.bat. It cleans out the files in the release folder
first before copying files into it.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"ydlu" <yudiannlu@gmail.com> wrote in message
news:1136320629.605903.24710@g49g2000cwa.googlegroups.com...
> Hi Steve:
>
> why BUILDREL stage deletes the file? Any reason?
>
> Thanks your help.
>
> Lu
>



Re: How to copy the file into the "release" directory in sysgen build? by Steve

Steve
Tue Jan 03 15:56:03 CST 2006

> why BUILDREL stage deletes the file? Any reason?
To get rid of any old files that are left lying around in the
_FLATRELEASEDIR that shouldn't be part of the image.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: How to copy the file into the "release" directory in sysgen build? by ydlu

ydlu
Tue Jan 03 17:15:37 CST 2006

Hi eMVP guy:

Thanks your help.
After study BuildRel.bat, the "Sysgen" menu command using "blddemo -q"
and call BUILDREL.BAT with "-u".

PostLink.bat is not good way to copy the file into "Release" directory.

%USERNAME%\pbuildrel.bat should be used to copy files into release
directory.

Thanks
Lu


Re: How to copy the file into the "release" directory in sysgen build? by Steve

Steve
Tue Jan 03 18:11:38 CST 2006

Please re-read my previous posts as I provided alternatives.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: How to copy the file into the "release" directory in sysgen build? by Bruce

Bruce
Wed Jan 04 07:22:04 CST 2006

Huh?

> %USERNAME%\pbuildrel.bat should be used to copy files into release
> directory.

That isn't a *good* way to copy the files to the release folder. By its
foldername it is clear that it is *user* specific, not project specific.

Steve's suggestions are good ways to copy the file to the release folder.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member

"ydlu" <yudiannlu@gmail.com> wrote in message
news:1136330136.994061.176250@f14g2000cwb.googlegroups.com...
> Hi eMVP guy:
>
> Thanks your help.
> After study BuildRel.bat, the "Sysgen" menu command using "blddemo -q"
> and call BUILDREL.BAT with "-u".
>
> PostLink.bat is not good way to copy the file into "Release" directory.
>
> %USERNAME%\pbuildrel.bat should be used to copy files into release
> directory.
>
> Thanks
> Lu
>