Skip to content

Commit

Permalink
[driver] Embed version information within driver binary
Browse files Browse the repository at this point in the history
Suggested-by: Tal Aloni <tal.aloni.il@gmail.com>
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
  • Loading branch information
mcb30 committed Oct 13, 2011
1 parent 01c9473 commit 290a0f2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/driver/sources
Expand Up @@ -8,4 +8,4 @@ TARGETLIBS = $(DDK_LIB_PATH)\ndis.lib $(DDK_LIB_PATH)\ntstrsafe.lib $(DDK_LIB_PA

MSC_WARNING_LEVEL = /W4 /Wp64 /WX

SOURCES = sanbootconf.c registry.c acpi.c nic.c ibft.c abft.c sbft.c boottext.c
SOURCES = sanbootconf.c registry.c acpi.c nic.c ibft.c abft.c sbft.c boottext.c version.rc
21 changes: 21 additions & 0 deletions src/driver/version.rc
@@ -0,0 +1,21 @@
/* -*-c-*- */

#include <winver.h>

#define VER_FILETYPE VFT_DRV
#define VER_FILESUBTYPE VFT2_DRV_SYSTEM
#define VER_FILEDESCRIPTION_STR "SAN Boot Configuration Driver"
#define VER_INTERNALNAME_STR "sanbootconf.sys"
#define VER_ORIGINALFILENAME_STR "sanbootconf.sys"
#define VER_FILEVERSION 1,1,0,0
#define VER_FILEVERSION_STR "1.1.0"
#define VER_PRODUCTVERSION VER_FILEVERSION
#define VER_PRODUCTVERSION_STR VER_FILEVERSION_STR
#define VER_LEGALCOPYRIGHT_STR "Copyright (C) 2008-2011 Fen Systems Ltd."
#define VER_COMPANYNAME_STR "Fen Systems Ltd."
#define VER_PRODUCTNAME_STR VER_FILEDESCRIPTION_STR
#define VER_FILEFLAGS VS_FF_DEBUG
#define VER_FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
#define VER_FILEOS VOS_NT_WINDOWS32

#include "common.ver"

0 comments on commit 290a0f2

Please sign in to comment.