Build Driver To Alternate Directory

All,

This is something simple but I cannot get it working.
When I build my driver I would like the build process also dump the files (.sys, .inf) into alternate build directory.

I added to the source file for my driver the following but it doesn’t work:

BUILD_DIR=…\build
WDFCOINST_BASE=WdfCoInstaller
NTTARGETFILE2= \
$(BUILD_DIR)$(O)$(INF_NAME).inf \
$(BUILD_DIR)$(O)$(TARGETNAME).sys \
$(BUILD_DIR)$(O)$(WDFCOINST_BASE).dll \

NMAKE : fatal error U1073: don’t know how to make ‘…\build\objfre_wxp_x86\i386\vjoy.inf’

If someone would be kind enough to give me the lines I need to put into my source file that would be great.

I’d check the documentation on binplace in the WDK help for various ways to perform this task within the build system.

  • S (Msft)

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Wednesday, August 03, 2011 5:52 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Build Driver To Alternate Directory

All,

This is something simple but I cannot get it working.
When I build my driver I would like the build process also dump the files (.sys, .inf) into alternate build directory.

I added to the source file for my driver the following but it doesn’t work:

BUILD_DIR=…\build
WDFCOINST_BASE=WdfCoInstaller
NTTARGETFILE2= \
$(BUILD_DIR)$(O)$(INF_NAME).inf \
$(BUILD_DIR)$(O)$(TARGETNAME).sys \
$(BUILD_DIR)$(O)$(WDFCOINST_BASE).dll \

NMAKE : fatal error U1073: don’t know how to make ‘…\build\objfre_wxp_x86\i386\vjoy.inf’

If someone would be kind enough to give me the lines I need to put into my source file that would be great.


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Best of luck with that.

Good advice, bewildering docs.

Mm
On Aug 3, 2011 8:58 PM, “Skywing” wrote:
> I’d check the documentation on binplace in the WDK help for various ways
to perform this task within the build system.
>
> - S (Msft)
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.com [mailto:
xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
> Sent: Wednesday, August 03, 2011 5:52 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Build Driver To Alternate Directory
>
> All,
>
> This is something simple but I cannot get it working.
> When I build my driver I would like the build process also dump the files
(.sys, .inf) into alternate build directory.
>
> I added to the source file for my driver the following but it doesn’t
work:
>
> BUILD_DIR=…\build
> WDFCOINST_BASE=WdfCoInstaller
> NTTARGETFILE2= <br>> $(BUILD_DIR)$(O)$(INF_NAME).inf <br>> $(BUILD_DIR)$(O)$(TARGETNAME).sys <br>> $(BUILD_DIR)$(O)$(WDFCOINST_BASE).dll <br>>
> NMAKE : fatal error U1073: don’t know how to make
‘…\build\objfre_wxp_x86\i386\vjoy.inf’
>
> If someone would be kind enough to give me the lines I need to put into my
source file that would be great.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

The documentation is fairly thorough on what needs to be done, for example, http://msdn.microsoft.com/en-us/library/ff552922(v=VS.85).aspx .

If there are missing documentation pieces, please use the feedback link to request documentation updates.

  • S (Msft)

From: xxxxx@lists.osr.com [xxxxx@lists.osr.com] on behalf of Martin O’Brien [xxxxx@gmail.com]
Sent: Wednesday, August 03, 2011 6:00 PM
To: Windows System Software Devs Interest List
Subject: Re: RE: [ntdev] Build Driver To Alternate Directory

Best of luck with that.

Good advice, bewildering docs.

Mm

On Aug 3, 2011 8:58 PM, “Skywing” > wrote:
> I’d check the documentation on binplace in the WDK help for various ways to perform this task within the build system.
>
> - S (Msft)
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of xxxxx@hotmail.commailto:xxxxx
> Sent: Wednesday, August 03, 2011 5:52 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Build Driver To Alternate Directory
>
> All,
>
> This is something simple but I cannot get it working.
> When I build my driver I would like the build process also dump the files (.sys, .inf) into alternate build directory.
>
> I added to the source file for my driver the following but it doesn’t work:
>
> BUILD_DIR=…\build
> WDFCOINST_BASE=WdfCoInstaller
> NTTARGETFILE2= <br>> $(BUILD_DIR)$(O)$(INF_NAME).inf <br>> $(BUILD_DIR)$(O)$(TARGETNAME).sys <br>> $(BUILD_DIR)$(O)$(WDFCOINST_BASE).dll <br>>
> NMAKE : fatal error U1073: don’t know how to make ‘…\build\objfre_wxp_x86\i386\vjoy.inf’
>
> If someone would be kind enough to give me the lines I need to put into my source file that would be great.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

Therr is also a binplace sample in the wdl

d

debt from my phone


From: Skywing
Sent: Wednesday, August 03, 2011 6:07 PM
To: Windows System Software Devs Interest List
Subject: RE: RE: [ntdev] Build Driver To Alternate Directory

The documentation is fairly thorough on what needs to be done, for example, http://msdn.microsoft.com/en-us/library/ff552922(v=VS.85).aspx .

If there are missing documentation pieces, please use the feedback link to request documentation updates.

  • S (Msft)

From: xxxxx@lists.osr.com [xxxxx@lists.osr.com] on behalf of Martin O’Brien [xxxxx@gmail.com]
Sent: Wednesday, August 03, 2011 6:00 PM
To: Windows System Software Devs Interest List
Subject: Re: RE: [ntdev] Build Driver To Alternate Directory

Best of luck with that.

Good advice, bewildering docs.

Mm

On Aug 3, 2011 8:58 PM, “Skywing” > wrote:
> I’d check the documentation on binplace in the WDK help for various ways to perform this task within the build system.
>
> - S (Msft)
>
>
> -----Original Message-----
> From: xxxxx@lists.osr.commailto:xxxxx [mailto:xxxxx@lists.osr.commailto:xxxxx] On Behalf Of xxxxx@hotmail.commailto:xxxxx
> Sent: Wednesday, August 03, 2011 5:52 PM
> To: Windows System Software Devs Interest List
> Subject: [ntdev] Build Driver To Alternate Directory
>
> All,
>
> This is something simple but I cannot get it working.
> When I build my driver I would like the build process also dump the files (.sys, .inf) into alternate build directory.
>
> I added to the source file for my driver the following but it doesn’t work:
>
> BUILD_DIR=…\build
> WDFCOINST_BASE=WdfCoInstaller
> NTTARGETFILE2= <br>> $(BUILD_DIR)$(O)$(INF_NAME).inf <br>> $(BUILD_DIR)$(O)$(TARGETNAME).sys <br>> $(BUILD_DIR)$(O)$(WDFCOINST_BASE).dll <br>>
> NMAKE : fatal error U1073: don’t know how to make ‘…\build\objfre_wxp_x86\i386\vjoy.inf’
>
> If someone would be kind enough to give me the lines I need to put into my source file that would be great.
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
— NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and other seminars visit: http://www.osr.com/seminars To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer</mailto:xxxxx></mailto:xxxxx></mailto:xxxxx>

I have looked at the documentation, I read it, it made sense, then I tried to apply it, it doesn’t work!
I spend over 1 hour trying to do something simple as that and can not get it working!

The TARGET_DESTINATION macro only handles output for the final build .sys file, but what about .inf file? And maybe other files?

So I was hoping someone else must have done this once upon a time.

The binplace examples don’t do anything.
For example:
PASS0_BINPLACE=\
$(BASEDIR)\redist\wdf$(_BUILDARCH)\WdfCoInstaller01009.dll \

Should deposit WdfConinstaller dll to the build output, it does nothing. I tried variations of BINPLACE command with zero success. I hope someone can point me at my wrong doing.