From 76724ed058b97bc95c036c0f0d0951153fa40d13 Mon Sep 17 00:00:00 2001 From: stansmith Date: Mon, 7 Jul 2008 18:48:02 +0000 Subject: [PATCH] [IBBUS] added INX -> INF file stamping. INF file created in ..\..\..\bin\kernel\xxx .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 | 8 ++++++++ core/bus/kernel/{ib_bus.inf => ib_bus.inx} | 0 core/bus/kernel/makefile.inc | 17 +++++++++++++++++ 3 files changed, 25 insertions(+) rename core/bus/kernel/{ib_bus.inf => ib_bus.inx} (100%) create mode 100644 core/bus/kernel/makefile.inc diff --git a/core/bus/kernel/SOURCES b/core/bus/kernel/SOURCES index f8ca870f..8c6ac305 100644 --- a/core/bus/kernel/SOURCES +++ b/core/bus/kernel/SOURCES @@ -2,6 +2,14 @@ TARGETNAME=ibbus 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=ib_bus +INF_TARGET=..\..\..\bin\kernel\$(O)\$(INF_NAME).inf +NTTARGETFILES=$(INF_TARGET) +MISCFILES=$(NTTARGETFILES) +!endif !if $(FREEBUILD) ENABLE_EVENT_TRACING=1 diff --git a/core/bus/kernel/ib_bus.inf b/core/bus/kernel/ib_bus.inx similarity index 100% rename from core/bus/kernel/ib_bus.inf rename to core/bus/kernel/ib_bus.inx diff --git a/core/bus/kernel/makefile.inc b/core/bus/kernel/makefile.inc new file mode 100644 index 00000000..aaa1fedd --- /dev/null +++ b/core/bus/kernel/makefile.inc @@ -0,0 +1,17 @@ + +# 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) -- 2.17.1