[ofw] [PATCH] MLX4 : Add version stamping

Reuven Amitai reuven at mellanox.co.il
Sun Jul 20 06:42:56 PDT 2008


Hi,
 
The patch add version stamping to mlx4_bus and mlx4_hca similar to what
was done for other drivers (ib_bus,ipoib,srp,mthca ..)
When applying the patch, mlx4_bus.inf and mlx4_hca.inf should be changed
to .inx manually.
 
Thanks, Reuven.
 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
 
Index: kernel/bus/drv/makefile.inc

===================================================================

--- kernel/bus/drv/makefile.inc     (revision 1421)

+++ kernel/bus/drv/makefile.inc     (working copy)

@@ -5,6 +5,20 @@

         wmimofck $(OBJ_PATH)\$O\mlx4_bus.bmf

 

 

+# 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)

+

Index: kernel/bus/drv/sources

===================================================================

--- kernel/bus/drv/sources    (revision 1421)

+++ kernel/bus/drv/sources    (working copy)

@@ -2,6 +2,14 @@

 TARGETPATH=..\..\..\..\..\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=..\..\..\..\..\bin\kernel\$(O)\$(INF_NAME).inf

+NTTARGETFILES=$(INF_TARGET)

+!endif

+

 !if $(FREEBUILD)

 #ENABLE_EVENT_TRACING=1

 !else

Index: kernel/hca/makefile.inc

===================================================================

--- kernel/hca/makefile.inc   (revision 1421)

+++ kernel/hca/makefile.inc   (working copy)

@@ -5,6 +5,20 @@

         wmimofck $(OBJ_PATH)\$O\mlx4_hca.bmf

 

 

+# 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)

+

Index: kernel/hca/SOURCES

===================================================================

--- kernel/hca/SOURCES  (revision 1421)

+++ kernel/hca/SOURCES  (working copy)

@@ -2,6 +2,14 @@

 TARGETPATH=..\..\..\..\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==..\..\..\..\bin\kernel\$(O)\$(INF_NAME).inf

+NTTARGETFILES=$(INF_TARGET)

+!endif

+

 !if $(FREEBUILD)

 ENABLE_EVENT_TRACING=1

 !else

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080720/8d41f87b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mlx4_version.patch
Type: application/octet-stream
Size: 2682 bytes
Desc: mlx4_version.patch
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080720/8d41f87b/attachment.obj>


More information about the ofw mailing list