Re: Compiling modified driver
- From: "Bruce Eitman [eMVP]" <beitman.nospam@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 00:03:11 -0400
As Paul pointed out earlier, don't modify files in the Public folder, so
don't modify common.reg.
You have a project.reg for that kind of registry setting.
--
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
"Shahrad" <shahradp@xxxxxxxxx> wrote in message
news:bHRVi.162689$th2.61863@xxxxxxxxxxxx
Thanks Paul,
Make it works with adding necessary libraries to SOURCES for subproject
and
also setting the SYSGEN flag for tranciever driver in projectsysgen.bat
for
project.
One more thing that need to be added, is to put registery information for
new function driver in common.reg with appropriate flag.
Regards,
Shahrad
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
com> wrote in message news:eAe2Jw0GIHA.280@xxxxxxxxxxxxxxxxxxxxxxx
Now you need to know a little about how the build system builds stuff inuse
PUBLIC.
Almost everything in public is built in two stages: actually building it
based on the SOURCES files that you have in each directory, resulting in
a
library (TARGETTYPE=LIBRARY), and creating the final target type using
cesysgen.mak.
So, to capture the bits that get set during the sysgen step, you need to
sysgen_capture, which will generate for you a SOURCES.<component name>file.
You can either follow the help for sysgen_capture, or I'll try toyou'll
indicate
what you need to do here.
1. Open a build MS-DOS window using the Open Release Directory menu item
from PB/VS2005.
2. Navigate to the new folder you've created for your modified driver.
3. Run something like the following:
sysgen_capture -p common <original driver name>
For example, I just did this for the FATUTIL component because I have to
change some of the resources to fit on our screen.
sysgen_capture -p common fatutil
The result, for me, was a file called SOURCES.FATUTIL, which contained
the
SOURCELIBS, TARGETLIBS, etc. settings that are needed to actually build
FATUTIL.DLL. You should be able to get something similar, from which
want to grab the SOURCELIBS and TARGETLIBS settings and copy those tosaid
your
actual SOURCES file.
Paul T.
"Shahrad" <shahradp@xxxxxxxxx> wrote in message
news:%LOVi.161235$1y4.94739@xxxxxxxxxxxx
Thanks for reply,
While compiling seperate usb function driver as a subproject (as you
DOTby just moving a copy of driver to subproject area), got unresolved
function
on different layers (like CloseBusAccessHandle function ....). So what
library or setting in the project I missed?
Shawn,
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam
drivercom> wrote in message news:u8p$SnzGIHA.6068@xxxxxxxxxxxxxxxxxxxxxxx
You don't have to link with or include anything that the original
thedidn't have to, so all you need to do is assure that the pointers to
layoutright folders are there. You should be able to, if your directory
theis
somewhat standard, add the folder for this thing to
\platform\<xyz>\drivers\<this driver's name>, and add <this driver's
name>
to the list of directories to be built in
\platform\<xyz>\drivers\dirs.
Initially, all you should have to try changing is the SOURCES file in
spamnew driver folder to set RELEASETYPE to PLATFORM and TARGETTYPE toDYNLINK.
Right now, those two variables probably are not set in SOURCES...tranciever
Paul T.
"Shahrad" <shahradp@xxxxxxxxx> wrote in message
news:u_MVi.159835$Da.106076@xxxxxxxxxxxx
ok, but two more questions,
Using it as a subproject need to make somehow the flags for usb
canand mdd to be compiled if I select my own usb function driver, so
how
I
do that?
and also need to using related ddk librariees, right? If yes, then
could
you
point out which and how?
Thanks,
Shawn
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no
beDOT
com> wrote in message news:up0mzHzGIHA.1548@xxxxxxxxxxxxxxxxxxxxxxx
Don't modify files in the PUBLIC subdirectories. If you check thearchives
of the Platform Builder newsgroup,
microsoft.public.windowsce.platbuilder,
you'll find that over and over and over. If you move a copy of the
driver
to your platform directory, changing and rebuilding the driver will
insteadvery
easy.can
Paul T.
"Shahrad" <shahrad@xxxxxxxxxxx> wrote in message
news:L7MVi.159772$Da.65451@xxxxxxxxxxxx
Hello,
After modifying a driver in usb function category and build it,
where
I
find the result dll to copy it in file system of remote system,
takesof
do SYSGEN again to let platform builder update it? The second way
long
and want shortest way.
Thanks for any help,
Shawn
.
- Follow-Ups:
- Re: Compiling modified driver
- From: Shahrad
- Re: Compiling modified driver
- References:
- Compiling modified driver
- From: Shahrad
- Re: Compiling modified driver
- From: Paul G. Tobey [eMVP]
- Re: Compiling modified driver
- From: Shahrad
- Re: Compiling modified driver
- From: Paul G. Tobey [eMVP]
- Re: Compiling modified driver
- From: Shahrad
- Re: Compiling modified driver
- From: Paul G. Tobey [eMVP]
- Re: Compiling modified driver
- From: Shahrad
- Compiling modified driver
- Prev by Date: Re: Compiling modified driver
- Next by Date: RE: VS2005 and CE 5.0 Emulator - Newbie
- Previous by thread: Re: Compiling modified driver
- Next by thread: Re: Compiling modified driver
- Index(es):
Relevant Pages
|