--- /dev/null
+# Cscope/Tags
+cscope.files
+cscope.out
+tags
+
+# Output
+xeniface
if ret != 0:
raise(Exception("Error %d in : %s" % (ret, cmd)))
- print("------------------------------------------------------------")
+
return output.decode('utf-8')
def archive(filename, files, tgz=False):
tar = tarfile.open(filename, access)
for name in files :
try:
- print('adding '+name)
tar.add(name)
except:
pass
symstore_add('xeniface', 'x86', debug[sys.argv[1]])
symstore_add('xeniface', 'x64', debug[sys.argv[1]])
-
-
listfile = callfnout(['git','ls-tree', '-r', '--name-only', 'HEAD'])
archive('xeniface\\source.tgz', listfile.splitlines(), tgz=True)
archive('xeniface.tar', ['xeniface', 'revision'])
import os, sys
-file = os.popen('hg status')
+file = os.popen('git status --untracked-files --short')
for line in file:
item = line.split(' ')
- if item[0] == '?':
+ if item[0] == '??':
path = ' '.join(item[1:]).rstrip()
print(path)
os.remove(path)
+++ /dev/null
-#!/bin/sh -x
-
-# Copyright (c) Citrix Systems Inc.
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms,
-# with or without modification, are permitted provided
-# that the following conditions are met:
-#
-# * Redistributions of source code must retain the above
-# copyright notice, this list of conditions and the
-# following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the
-# following disclaimer in the documentation and/or other
-# materials provided with the distribution.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
-# CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
-# INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
-# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
-# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-# SUCH DAMAGE.
-
-
-CWD=$(pwd)
-
-PKG="xeniface"
-TARGET="\\systemroot\\system32\\drivers"
-SOURCE=$(cygpath --windows ${CWD})
-
-MAP=${CWD}/kdfiles32.txt
-> ${MAP}
-
-cd ${PKG}/x86
-for DRIVER in *.sys
-do
- echo "map" >> ${MAP}
- echo "${TARGET}\\${DRIVER}" >> ${MAP}
- echo "${SOURCE}\\${PKG}\\x86\\${DRIVER}" >> ${MAP}
- echo >> ${MAP}
-done
-
-cd ${CWD}
-
-MAP=${CWD}/kdfiles64.txt
-> ${MAP}
-
-cd ${PKG}/x64
-for DRIVER in *.sys
-do
- echo "map" >> ${MAP}
- echo "${TARGET}\\${DRIVER}" >> ${MAP}
- echo "${SOURCE}\\${PKG}\\x64\\${DRIVER}" >> ${MAP}
- echo >> ${MAP}
-done
-
-
call "%VS%\VC\vcvarsall.bat" x86
-msbuild.exe /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" /p:SignMode="ProductionSign" %SOLUTION%.sln
+msbuild.exe /p:Configuration="%CONFIGURATION%" /p:Platform="%PLATFORM%" /t:"%TARGET%" %SOLUTION%.sln
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<EnableInf2cat>true</EnableInf2cat>
- <Inf2CatWindowsVersionList Condition="'$(DDKPlatform)'=='x64'">Vista_$(DDKPlatform);7_$(DDKPlatform);Server2008_$(DDKPlatform);Server2008R2_$(DDKPlatform)</Inf2CatWindowsVersionList>
- <Inf2CatWindowsVersionList Condition="'$(DDKPlatform)'=='x86'">Vista_$(DDKPlatform);7_$(DDKPlatform);Server2008_$(DDKPlatform)</Inf2CatWindowsVersionList>
+ <Inf2CatWindowsVersionList Condition="'$(Platform)'=='x64'">Vista_x64;7_x64;Server2008_x64;Server2008R2_x64;Server8_x64</Inf2CatWindowsVersionList>
+ <Inf2CatWindowsVersionList Condition="'$(Platform)'=='Win32'">Vista_x86;7_x86;Server2008_x86;8_x86</Inf2CatWindowsVersionList>
</PropertyGroup>
<PropertyGroup>
<DebuggerFlavor>DbgengKernelDebugger</DebuggerFlavor>
<?xml version="1.0" encoding="utf-8"?>\r
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
<PropertyGroup>\r
- <SignMode>ProductionSign</SignMode>\r
- <ProductionCertificate>CN="Citrix Systems, Inc.", OU=Digital ID Class 3 - Microsoft Software Validation v2, O="Citrix Systems, Inc.", L=Santa Clara, S=California, C=US | 9505C081954CC0A3E8B904458ACACD72EABD98B5</ProductionCertificate>\r
+ <SignMode>TestSign</SignMode>\r
+ <TestCertificate>..\xeniface.pfx</TestCertificate>\r
<TimeStampServer>http://timestamp.verisign.com/scripts/timstamp.dll</TimeStampServer>\r
</PropertyGroup>\r
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>\r
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
<PropertyGroup>\r
- <SignMode>ProductionSign</SignMode>\r
- <ProductionCertificate>CN="Citrix Systems, Inc.", OU=Digital ID Class 3 - Microsoft Software Validation v2, O="Citrix Systems, Inc.", L=Santa Clara, S=California, C=US | 9505C081954CC0A3E8B904458ACACD72EABD98B5</ProductionCertificate>\r
+ <SignMode>TestSign</SignMode>\r
+ <TestCertificate>..\xeniface.pfx</TestCertificate>\r
<TimeStampServer>http://timestamp.verisign.com/scripts/timstamp.dll</TimeStampServer>\r
</PropertyGroup>\r
</Project>
\ No newline at end of file
%Citrix%=Citrix,NT$ARCH$\r
\r
[Citrix.NT$ARCH$]\r
-; DisplayName Section DeviceId\r
-; ----------- ------- --------\r
-%XenIfaceDevice.DeviceDesc%=XenIface_Device, XENBUS\CLASS_IFACE&REV_02\r
+; DisplayName Section DeviceID\r
+; ----------- ------- --------\r
+\r
+%XenIfaceDevice.DeviceDesc% =XenIface_Device, XENBUS\VEN_XSC000&DEV_IFACE&REV_00000001\r
+%XenIfaceDevice.DeviceDesc% =XenIface_Device, XENBUS\VEN_XS0001&DEV_IFACE&REV_00000001\r
+%XenIfaceDevice.DeviceDesc% =XenIface_Device, XENBUS\VEN_XS0002&DEV_IFACE&REV_00000001\r
\r
[XenIface_Device.NT$ARCH$]\r
CopyFiles=XenIface_Device.NT.Copy\r
AddService = xeniface, %SPSVCINST_ASSOCSERVICE%, xeniface_Service_Inst\r
\r
[xeniface_Service_Inst]\r
-DisplayName = %xeniface.SVCDESC%\r
+DisplayName = %XenIfaceDevice.DeviceDesc%\r
ServiceType = 1 ; SERVICE_KERNEL_DRIVER\r
StartType = 3 ; SERVICE_DEMAND_START \r
ErrorControl = 1 ; SERVICE_ERROR_NORMAL\r
[Strings]\r
SPSVCINST_ASSOCSERVICE= 0x00000002\r
Citrix= "Citrix Systems, Inc." \r
-ClassName = "XenIface"\r
-DiskId1 = "Citrix Tools for Virtual Machines"\r
-XenIfaceDevice.DeviceDesc = "Citrix Xen Interface"\r
-xeniface.SVCDESC = "Citrix Xen Interface Device Driver"\r
+DiskId1 = "XenServer Tools for Virtual Machines"\r
+XenIfaceDevice.DeviceDesc = "XenServer Interface"\r
\r
#include "..\..\include\version.h"
-#define VER_PRODUCTNAME_STR "Citrix PV Tools for Virtual Machines"
+#define VER_PRODUCTNAME_STR "XENIFACE"
#define VER_PRODUCTVERSION MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER
#define VER_PRODUCTVERSION_STR MAJOR_VERSION_STR "." MINOR_VERSION_STR "." MICRO_VERSION_STR "." BUILD_NUMBER_STR
#define VER_INTERNALNAME_STR "XENIFACE.SYS"
-#define VER_FILEDESCRIPTION_STR "Citrix PV Interface Driver"
+#define VER_FILEDESCRIPTION_STR "XENIFACE"
#define VER_FILETYPE VFT_DRV
#define VER_FILESUBTYPE VFT2_DRV_SYSTEM