[ofw] FW: SRP co-maintainers - Proposed ib_srp.inf date+version stamp modifications

Stan C. Smith stan.smith at intel.com
Mon Jul 7 15:58:57 PDT 2008


Missed the CC: for the list.

Stan C. Smith wrote:
> Hello,
> 
> Below are a list of proposed changes to support .inf file
> date+version stamping such that ib_srp.inf and ibsrp.sys have the
> same date+version stamps.  
> 
> If either of you, as the srp maintainers, would review and consent to
> these changes/patches, I will commit them ASAP. 
> 
> Thanks,
> 
> Stan.
> 
> Rename trunk\ulp\srp\kernel\ib_srp.inf -->
>   trunk\ulp\srp\kernel\ib_srp.inx Per Microsoft WDK conventions &
> .inf file stamping examples. 
> 
> Mods to trunk\ulp\srp\kernel\SOURCES
>      Defined INF_NAME + INF_TARGET for makefile.inc
>      sets up include of makefile.inc per WDK conventions.
> 
> diff C3 %TEMP%/SOURCES-revBASE.svn003.tmp trunk/ulp/srp/kernel/SOURCES
> *** %TEMP%/SOURCES-revBASE.svn003.tmp	Mon Jul 07 14:42:35 2008
> --- trunk/ulp/srp/kernel/SOURCES	Thu Jul 03 14:52:24 2008
> ***************
> *** 2,7 ****
> --- 2,16 ----
>   TARGETPATH=..\..\..\bin\kernel\obj$(BUILD_ALT_DIR)
>   TARGETTYPE=MINIPORT
> 
> + !if $(_NT_TOOLS_VERSION) != 0x700
> + # WDK build only - transform .inx --> .inf adding date & version
> stamp. + # see .\makefile.inc
> + INF_NAME=ib_srp
> + INF_TARGET=..\..\..\bin\kernel\$(O)\$(INF_NAME).inf
> + NTTARGETFILES=$(INF_TARGET)
> + MISCFILES=$(NTTARGETFILES)
> + !endif
> +
>   !if $(FREEBUILD)
>   ENABLE_EVENT_TRACING=1
>   !else
> 
> 
> 
> Add new file 'trunk\ulp\srp\kernel\makefile.inc'
>      sets dependencies for .inx --> .inf transformation.
>      includes mod_ver.def, date + version stamps
> $(INF_TARGET)\ib_srp.inf 
> 
> # Transform .inx file to .inf file adding date + major,min &
> svn.version stamp # Output .inf file is copied to the $(INF_TARGET)
> folder (commonly where .sys file resides). 
> 
> _LNG=$(LANGUAGE)
> 
> !IF !DEFINED(_INX)
> _INX=.
> !ENDIF
> 
> STAMP=stampinf -a $(_BUILDARCH)
> 
> !INCLUDE mod_ver.def
> 
> $(INF_TARGET) : $(_INX)\$(INF_NAME).inx
>     copy $(_INX)\$(@B).inx $@
>     $(STAMP) -f $@ -d * -v
> $(IB_MAJORVERSION).$(IB_MINORVERSION).$(IB_F3VERSION).$(OPENIB_REV) 





More information about the ofw mailing list