[IBBUS] added INX -> INF file stamping. INF file created in ..\..\..\bin\kernel\xxx
authorstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Jul 2008 18:48:02 +0000 (18:48 +0000)
committerstansmith <stansmith@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Mon, 7 Jul 2008 18:48:02 +0000 (18:48 +0000)
.inf file version now matches .sys file version.

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

core/bus/kernel/SOURCES
core/bus/kernel/ib_bus.inx [moved from core/bus/kernel/ib_bus.inf with 100% similarity]
core/bus/kernel/makefile.inc [new file with mode: 0644]

index f8ca870..8c6ac30 100644 (file)
@@ -2,6 +2,14 @@ TARGETNAME=ibbus
 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=ib_bus\r
+INF_TARGET=..\..\..\bin\kernel\$(O)\$(INF_NAME).inf\r
+NTTARGETFILES=$(INF_TARGET)\r
+MISCFILES=$(NTTARGETFILES)\r
+!endif\r
 \r
 !if $(FREEBUILD)\r
 ENABLE_EVENT_TRACING=1\r
diff --git a/core/bus/kernel/makefile.inc b/core/bus/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