From bcd7ed4849f40eb332526b239d241242472df2b9 Mon Sep 17 00:00:00 2001 From: stansmith Date: Fri, 18 Jul 2008 00:17:11 +0000 Subject: [PATCH] [MTHCA] mthca.inf file stamping support. rename mthca.inf --> mthca.inx added makefile.inc git-svn-id: svn://openib.tc.cornell.edu/gen1@1412 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- trunk/hw/mthca/kernel/SOURCES | 9 ++++++++- trunk/hw/mthca/kernel/makefile.inc | 17 +++++++++++++++++ trunk/hw/mthca/kernel/{mthca.inf => mthca.inx} | 0 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 trunk/hw/mthca/kernel/makefile.inc rename trunk/hw/mthca/kernel/{mthca.inf => mthca.inx} (100%) diff --git a/trunk/hw/mthca/kernel/SOURCES b/trunk/hw/mthca/kernel/SOURCES index d30cd3e7..5364cdbc 100644 --- a/trunk/hw/mthca/kernel/SOURCES +++ b/trunk/hw/mthca/kernel/SOURCES @@ -4,6 +4,14 @@ TARGETNAME=mthca 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,7 +20,6 @@ ENABLE_EVENT_TRACING=1 SOURCES= \ mthca_log.mc \ -# mthca_log.rc \ hca.rc \ mthca_log.c \ \ diff --git a/trunk/hw/mthca/kernel/makefile.inc b/trunk/hw/mthca/kernel/makefile.inc new file mode 100644 index 00000000..4f29f500 --- /dev/null +++ b/trunk/hw/mthca/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_BUILDVERSION).$(OPENIB_REV) diff --git a/trunk/hw/mthca/kernel/mthca.inf b/trunk/hw/mthca/kernel/mthca.inx similarity index 100% rename from trunk/hw/mthca/kernel/mthca.inf rename to trunk/hw/mthca/kernel/mthca.inx -- 2.46.0