[IPOIB] added INX -> INF file version stamping.
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 8 Jul 2008 18:17:07 +0000 (18:17 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 8 Jul 2008 18:17:07 +0000 (18:17 +0000)
INF file created in ..\..\..\bin\kernel\xxx
.inf file version now matches .sys file version.
added makefile.inc
netipoib.inf renamed to netipoib.inx per MS/WDK convention.

git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1346 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

ulp/ipoib/kernel/SOURCES
ulp/ipoib/kernel/makefile.inc [new file with mode: 0644]
ulp/ipoib/kernel/netipoib.inx [moved from ulp/ipoib/kernel/netipoib.inf with 96% similarity]

index b85a51b..b6d7265 100644 (file)
@@ -2,6 +2,13 @@ TARGETNAME=ipoib
 TARGETPATH=..\..\..\bin\kernel\obj$(BUILD_ALT_DIR)\r
 TARGETTYPE=DRIVER\r
 \r
+!if $(_NT_TOOLS_VERSION) != 0x700\r
+# WDK build only - transform .inx --> .inf adding date & version stamp.\r
+# see .\makefile.inc\r
+INF_NAME=netipoib\r
+INF_TARGET=..\..\..\bin\kernel\$(O)\$(INF_NAME).inf\r
+NTTARGETFILES=$(INF_TARGET)\r
+!endif\r
 \r
 !if $(FREEBUILD)\r
 ENABLE_EVENT_TRACING=1\r
diff --git a/ulp/ipoib/kernel/makefile.inc b/ulp/ipoib/kernel/makefile.inc
new file mode 100644 (file)
index 0000000..aaa1fed
--- /dev/null
@@ -0,0 +1,17 @@
+\r
+# Transform .inx file to .inf file adding date + major,min & svn.version stamp\r
+# Output .inf file is copied to the $(INF_TARGET) folder (commonly where .sys file resides).\r
+\r
+_LNG=$(LANGUAGE)\r
+\r
+!IF !DEFINED(_INX)\r
+_INX=.\r
+!ENDIF\r
+\r
+STAMP=stampinf -a $(_BUILDARCH)\r
+\r
+!INCLUDE mod_ver.def\r
+\r
+$(INF_TARGET) : $(_INX)\$(INF_NAME).inx\r
+    copy $(_INX)\$(@B).inx $@\r
+    $(STAMP) -f $@ -d * -v $(IB_MAJORVERSION).$(IB_MINORVERSION).$(IB_F3VERSION).$(OPENIB_REV)\r
similarity index 96%
rename from ulp/ipoib/kernel/netipoib.inf
rename to ulp/ipoib/kernel/netipoib.inx
index ef377b4..6394e8e 100644 (file)
@@ -124,7 +124,7 @@ HKR, Ndi\Params\PayloadMtu,         ParamDesc,      0, "Payload Mtu size"
 HKR, Ndi\Params\PayloadMtu,            Type,           0, "dword"\r
 HKR, Ndi\Params\PayloadMtu,            Default,        0, "2044"\r
 HKR, Ndi\Params\PayloadMtu,            Min,            0, "60"\r
-HKR, Ndi\Params\PayloadMtu,            Max,            0, "4092"\r
+HKR, Ndi\Params\PayloadMtu,            Max,            0, "2044"\r
 \r
 [IpoibService]\r
 DisplayName     = %IpoibServiceDispName%\r