[ofw] RE: Mthca.inf version stamping

Leonid Keller leonid at mellanox.co.il
Thu Jul 17 10:21:45 PDT 2008


Please, apply. 

> -----Original Message-----
> From: Stan C. Smith [mailto:stan.smith at intel.com] 
> Sent: Thursday, July 17, 2008 7:57 PM
> To: Leonid Keller
> Cc: ofw at lists.openfabrics.org
> Subject: Mthca.inf version stamping
> 
> Hello,
>   The following patch & new file enable .inf version stamping 
> for mthca.inf; similar to what was done for other drivers 
> (ipoib,vnic & srp). Upon your approval, I can apply patches & 
> rename .inf -->inx.
> 
> Thank you for your review,
> 
> Stan.
> 
> 
> 1) rename mthca.inf -- mthca.inx  per Microsoft convention.
> 
> 2) New file makefile.inc for bin\kernel\xxx\mthca.inf file 
> generation dependencies; see below.
> 
> 3) Sources patch to enable include of 
> mthca\kernel\makefile.inc diff C3 
> Temp/SOURCES-revBASE.svn000.tmp mthca/kernel/SOURCES
> *** Temp/SOURCES-revBASE.svn000.tmp	Thu Jul 17 09:09:59 2008
> --- mthca/kernel/SOURCES	Wed Jul 16 17:47:55 2008
> ***************
> *** 4,9 ****
> --- 4,17 ----
>   TARGETPATH=$(TRUNK)\bin\kernel\obj$(BUILD_ALT_DIR)
>   TARGETTYPE=DRIVER
>   
> + !if $(_NT_TOOLS_VERSION) != 0x700
> + # WDK build only - transform .inx --> .inf adding date & 
> version stamp.
> + # see .\makefile.inc
> + INF_NAME=$(TARGETNAME)
> + INF_TARGET=$(TRUNK)\bin\kernel\$(O)\$(INF_NAME).inf
> + NTTARGETFILES=$(INF_TARGET)
> + !endif
> + 
>   !if $(FREEBUILD)
>   ENABLE_EVENT_TRACING=1
>   !else
> ***************
> *** 12,18 ****
>   
>   SOURCES= \
>   	mthca_log.mc		\
> - #	mthca_log.rc 		\
>     	hca.rc			\
>   	mthca_log.c		\
>     					\
> --- 20,25 ----
> 
> 
> 2) New file mthca\kernel\makefile.inc 
> 
> 
> # 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_BUILDVERSION).$(OPENIB_REV)
> 
> 



More information about the ofw mailing list