]> xenbits.xensource.com Git - people/pauldu/xenbus.git/commitdiff
Update branding
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 13 Aug 2014 14:26:15 +0000 (15:26 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 13 Aug 2014 14:26:15 +0000 (15:26 +0100)
Remove the use of the 'XenServer' product name except where it is
still appropriate.
Remove use of 'Citrix' from all places except source file
copyrights.
Allow company and product name to be set at build time.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
MAINTAINERS
README.md
build.py
doxygen.cfg
src/coinst/coinst.c
src/xen/xen.rc
src/xenbus.inf
src/xenbus/xenbus.rc
src/xenfilt/xenfilt.rc

index 09e9f6514819a9328e95733b649e213e6448221d..88cc97a0484cedd85dd41edfe85b584bc83c4fa7 100644 (file)
@@ -6,19 +6,34 @@ who will advise you on the precise procedure they wish to use.
 
 We also request you follow these basic guidelines:
 
-1.  Make sure you test your changes on both 32- and 64-bit versions of  Windows.
+1.  Make sure you test your changes on both a 32- and 64-bit version of Windows.
+    (The more versions of Windows you can test on the better).
 
 2.  Make sure your changes do not introduce any new prefast warnings.
 
-3.  All submissions must be made under the terms of the "Developer's Certificate
-    of Origin" (DC) and should include a Signed-off-by: line.
+3.  Make a patch available to the relevant maintainer in the list. Use 'diff -u'
+    to make the patch easy to merge. Be prepared to get your changes sent back
+    with seemingly silly requests about formatting and variable names. These
+    aren't as silly as they seem. One job the maintainers do is to keep things
+    looking the same.
 
-2.  All Submissions should use Unix line endings for consitency with the rest of
-    the XenServer project.
+    NOTE that all source should have Unix line endings.
 
-3.  Each patch should include a descriptive commit comment that helps understand
-    why the patch is necessary and why it works. This will be used both for
-    initial review and for new people to understand how the code works later
+    PLEASE see http://wiki.xen.org/wiki/Submitting_Xen_Patches for hints on how
+    to submit a patch in a suitable form. Whilst the PV driver source
+    repositories are distinct from the Xen Project hypervisor source, we will
+    follow the same general patch submission and review process.
+
+    PLEASE try to include any credit lines you want added with the  patch. It
+    avoids people being missed off by mistake and makes it easier to know who
+    wants adding and who doesn't.
+
+    PLEASE document known bugs. If it doesn't work for everything or does
+    something very odd once a month document it.
+
+    PLEASE remember that submissions must be made under the terms of the
+    "Developer's Certificate of Origin" (DCO) and should include a
+    Signed-off-by: line.
 
 4.  Make sure you have the right to submit any changes you make. If you do 
     changes at work you may find your employer owns the patches instead of 
index 15420ae6e43868604503c70e69d31209b8de7ed6..93e9aa0ba7a65964efff25e339dcab77a5b52b65 100644 (file)
--- a/README.md
+++ b/README.md
@@ -4,8 +4,8 @@ XenBus - The XenServer Paravitual Bus Device Driver for Windows
 The XenBus package consists of three device drivers:
 
 *    xenbus.sys is a bus driver which attaches to a virtual device on the PCI
-     bus and provides child devices for the other XenServer paravirtual
-     device drivers to attach to.
+     bus and provides child devices for the other paravirtual device drivers
+     to attach to.
 
 *    xen.sys is a support library which provides interfaces for communicating
      with the Xen hypervisor
index cb8055606dec408a199764d43be9516a40fd9106..bbaf4102a6febe844baa3d3889aa9b0a99a7a59d 100644 (file)
--- a/build.py
+++ b/build.py
@@ -28,6 +28,11 @@ def make_header():
     now = datetime.datetime.now()
 
     file = open('include\\version.h', 'w')
+
+    file.write('#define COMPANY_NAME_STR\t"' + os.environ['COMPANY_NAME'] + '"\n')
+    file.write('#define PRODUCT_NAME_STR\t"' + os.environ['PRODUCT_NAME'] + '"\n')
+    file.write('\n')
+
     file.write('#define MAJOR_VERSION\t' + os.environ['MAJOR_VERSION'] + '\n')
     file.write('#define MAJOR_VERSION_STR\t"' + os.environ['MAJOR_VERSION'] + '"\n')
     file.write('\n')
@@ -46,12 +51,15 @@ def make_header():
 
     file.write('#define YEAR\t' + str(now.year) + '\n')
     file.write('#define YEAR_STR\t"' + str(now.year) + '"\n')
+    file.write('\n')
 
     file.write('#define MONTH\t' + str(now.month) + '\n')
     file.write('#define MONTH_STR\t"' + str(now.month) + '"\n')
+    file.write('\n')
 
     file.write('#define DAY\t' + str(now.day) + '\n')
     file.write('#define DAY_STR\t"' + str(now.day) + '"\n')
+    file.write('\n')
 
     file.close()
 
@@ -65,6 +73,8 @@ def copy_inf(name):
         line = re.sub('@MINOR_VERSION@', os.environ['MINOR_VERSION'], line)
         line = re.sub('@MICRO_VERSION@', os.environ['MICRO_VERSION'], line)
         line = re.sub('@BUILD_NUMBER@', os.environ['BUILD_NUMBER'], line)
+        line = re.sub('@COMPANY_NAME@', os.environ['COMPANY_NAME'], line)
+        line = re.sub('@PRODUCT_NAME@', os.environ['PRODUCT_NAME'], line)
         dst.write(line)
 
     dst.close()
@@ -361,6 +371,12 @@ if __name__ == '__main__':
     sdv = { 'nosdv': False, None: True }
     driver = 'xenbus'
 
+    if 'COMPANY_NAME' not in os.environ.keys():
+        os.environ['COMPANY_NAME'] = 'Xen Project'
+
+    if 'PRODUCT_NAME' not in os.environ.keys():
+        os.environ['PRODUCT_NAME'] = 'Xen'
+
     os.environ['MAJOR_VERSION'] = '8'
     os.environ['MINOR_VERSION'] = '0'
     os.environ['MICRO_VERSION'] = '0'
index 64ca3db880f2083ed60a084fc0b7b1fec4d6026e..d6a8cae9a70fbc95d56d6f4d459bc3f582b582f1 100644 (file)
@@ -44,7 +44,7 @@ PROJECT_NUMBER         =
 # for a project that appears at the top of each page and should give viewer a
 # quick idea about the purpose of the project. Keep the description short.
 
-PROJECT_BRIEF          = "XenServer PV Bus Driver"
+PROJECT_BRIEF          = "Xen PV Bus Driver"
 
 # With the PROJECT_LOGO tag one can specify an logo or icon that is included in
 # the documentation. The maximum height of the logo should not exceed 55 pixels
index 2efdba93c6f15fc20e1c004961becbff863507b3..27d3211282f10ee7f738f6a3a1f1c0dacba71dc8 100644 (file)
@@ -1213,11 +1213,20 @@ found:
         goto fail9;
     }
 
-    if (strcmp(DriverDesc, "XenServer PV Bus") != 0) {
+    if (strncmp(DriverDesc,
+                PRODUCT_NAME_STR,
+                strlen(PRODUCT_NAME_STR)) != 0) {
         SetLastError(ERROR_INSTALL_FAILURE);
         goto fail10;
     }
 
+    DriverDesc += strlen(PRODUCT_NAME_STR);
+
+    if (strcmp(DriverDesc, " PV Bus") != 0) {
+        SetLastError(ERROR_INSTALL_FAILURE);
+        goto fail11;
+    }
+
 done:
     if (DriverDesc != NULL) {
         free(DriverDesc);
@@ -1234,6 +1243,9 @@ done:
 
     return TRUE;
 
+fail11:
+    Log("fail11");
+
 fail10:
     Log("fail10");
 
index 8d81b69b370fc722c110efd8567b7d8ae7665008..324955864c6b0be830ab008cacacfafae133b58c 100644 (file)
 #undef VER_PRODUCTVERSION
 #undef VER_PRODUCTVERSION_STR
 
-#define        VER_COMPANYNAME_STR         "Citrix Systems Inc."
-#define VER_LEGALCOPYRIGHT_STR      "Copyright " YEAR_STR VER_COMPANYNAME_STR
-
 #include <version.h>
 
+#define        VER_COMPANYNAME_STR         COMPANY_NAME_STR
+#define VER_LEGALCOPYRIGHT_STR      "Copyright " YEAR_STR VER_COMPANYNAME_STR
+
 #define VER_PRODUCTNAME_STR         "XEN"
 #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
index f602eaa3c1940c26dc196976177185e4e8bb5a40..fe01c792187af66a8bfc859fc53e4355128bfa9a 100644 (file)
@@ -32,7 +32,7 @@
 Signature="$Windows NT$" 
 Class=System
 ClassGUID={4d36e97d-e325-11ce-bfc1-08002be10318}
-Provider=%Citrix
+Provider=%Company
 CatalogFile=xenbus.cat
 DriverVer=01/01/1900,0.0.0.0
 
@@ -58,9 +58,9 @@ xenfilt.sys
 xenbus_coinst_@MAJOR_VERSION@_@MINOR_VERSION@_@MICRO_VERSION@_@BUILD_NUMBER@.dll,xenbus_coinst.dll
 
 [Manufacturer] 
-%Citrix%=Citrix,NT$ARCH$
+%Company%=Inst,NT$ARCH$
 
-[Citrix.NT$ARCH$]
+[Inst.NT$ARCH$]
 ; DisplayName          Section         DeviceID
 ; -----------          -------         --------
 
@@ -121,10 +121,10 @@ HKR,,CoInstallers32,0x00010000,"xenbus_coinst_@MAJOR_VERSION@_@MINOR_VERSION@_@M
 
 [Strings] 
 
-Citrix="Citrix Systems Inc.
-DiskDesc="XenServer Tools for Virtual Machines
-XenBusDesc="XenServer PV Bus"
-XenFiltDesc="XenServer Bus Filter"
+Company="@COMPANY_NAME@
+DiskDesc="@PRODUCT_NAME@ PV Bus Package
+XenBusDesc="@PRODUCT_NAME@ PV Bus"
+XenFiltDesc="@PRODUCT_NAME@ Generic Bus Filter"
 
 SERVICE_BOOT_START=0x0 
 SERVICE_SYSTEM_START=0x1 
index a1644e1c1f9acd70d788ec2b6cf5829af6a675cf..4e8a052ac86f0a42329835fbf2bd3d5354a47a7c 100644 (file)
 #undef VER_PRODUCTVERSION
 #undef VER_PRODUCTVERSION_STR
 
-#define        VER_COMPANYNAME_STR         "Citrix Systems Inc."
-#define VER_LEGALCOPYRIGHT_STR      "Copyright " YEAR_STR VER_COMPANYNAME_STR
-
 #include <version.h>
 
+#define        VER_COMPANYNAME_STR         COMPANY_NAME_STR
+#define VER_LEGALCOPYRIGHT_STR      "Copyright " YEAR_STR VER_COMPANYNAME_STR
+
 #define VER_PRODUCTNAME_STR         "XENBUS"
 #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
index 2b3103e2d780d8ae9304dbfccc35fb5c6d87ba76..6d2ba38b367da5cf68eb371836ed3a0e73c7b90d 100644 (file)
 #undef VER_PRODUCTVERSION
 #undef VER_PRODUCTVERSION_STR
 
-#define        VER_COMPANYNAME_STR         "Citrix Systems Inc."
-#define VER_LEGALCOPYRIGHT_STR      "Copyright " YEAR_STR VER_COMPANYNAME_STR
-
 #include <version.h>
 
+#define        VER_COMPANYNAME_STR         COMPANY_NAME_STR
+#define VER_LEGALCOPYRIGHT_STR      "Copyright " YEAR_STR VER_COMPANYNAME_STR
+
 #define VER_PRODUCTNAME_STR         "XENFILT"
 #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