[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/3][XenBus] Allow rebranding file copyright string


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Fri, 10 Feb 2023 08:44:36 +0000
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Fri, 10 Feb 2023 08:45:52 +0000
  • Ironport-data: A9a23:ufnid6uszekXrXsQWJ1szONvkufnVCteMUV32f8akzHdYApBsoF/q tZmKTyEaKyDZDakc95zb4vl9BkA78CEx95kSVY/q3xmFy4S+JbJXdiXEBz9bniYRiHhoOCLz O1FM4Wdc5pkJpP4jk3wWlQ0hSAkjclkfpKlVKiffHg3HVQ+IMsYoUoLs/YjhYJ1isSODQqIu Nfjy+XSI1bg0DNvWo4uw/vrRChH4bKj51v0gnRkPaoQ5AWHzyFMZH4iDfrZw0XQE9E88tGSH 44v/JnhlkvF8hEkDM+Sk7qTWiXmlZaLYGBiIlIPM0STqkAqSh4ai87XB9JFAatjsB2bnsgZ9 Tl4ncfYpTHFnEH7sL91vxFwS0mSNEDdkVPNCSDXXce7lyUqf5ZwqhnH4Y5f0YAwo45K7W9yG fMwJg8tSkibjOuPwaubCcozgucPfe3lI9ZK0p1g5Wmx4fcORJnCR+PB5MNC3Sd2jcdLdRrcT 5NHM3w1Nk2GOkARfA5NU/rSn8/x7pX7WzpHpVTTvq82/2j7xw1tyrn9dtHSf7RmQO0Ewx3D+ j2bowwVBDk3L/OV5CK/7kuCi7bOmi3bQrM8L6SRo6sCbFq7mTVIVUx+uUGAiea4jAumRZdTJ lIZ/gIqrLMu7wq7Q9/lRRq6rXWY+BkGVLJt//YSsV/XjPCOukDAWzZCF2QaADA7iCMobTIV9 nvRh9jgPD12kP62Fna+2uawoyznbED5MlQ+TSMDSAIE5fzqr4cykg/DQ75fLUKlsjHmMWqum m7X9UDSk51W1JdWjPvjoTgrlhr2/vD0ohgJChI7t45Pxidwf8abaoOh8jA3Bt4Qfd/CHjFtU JXp8vVyDdzi77nXzERho81XRtlFAspp1xWC6WOD57F7q1yQF4eLJOi8Gg1WKkZzKdojcjT0e kLVsg45zMYNYyb7M/ArPd/vVZ5CIU3c+TLNDKu8gj1mO8cZSeN61Hs2OR74M57FzyDAbp3Ty b/EKJ3xXB72+IxszSasRvd17FPY7nlW+I8nfriil07P+ePHNBaopUItbAPmghYRsPnV/204M r93a6O39vmoeLSmMnaHqN5OfABiwLpSLcmelvG7v9WremJOcFzNwdeNqV/9U+SJR5hoq9o=
  • Ironport-hdrordr: A9a23:j5PL1Kp7MzNemoTQ8Nm9YCQaV5oTeYIsimQD101hICG8cqSj+f xG+85rsyMc6QxhIE3I9urhBEDtex/hHNtOkOws1NSZLW7bUQmTXeJfBOLZqlWKcUDDH6xmpM NdmsBFeaTN5DNB7PoSjjPWLz9Z+qjkzJyV
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

Pass COPYRIGHT string from environment to override the copyright string
that is embedded in the output binaries.

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 build.ps1                     | 4 ++++
 include/version.tmpl          | 1 +
 scripts/genfiles.ps1          | 1 +
 src/monitor/xenbus_monitor.rc | 2 +-
 src/xen/xen.rc                | 2 +-
 src/xenbus/xenbus.rc          | 2 +-
 src/xenfilt/xenfilt.rc        | 2 +-
 7 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/build.ps1 b/build.ps1
index 08b9715..a34e9a3 100644
--- a/build.ps1
+++ b/build.ps1
@@ -88,6 +88,10 @@ if ([string]::IsNullOrEmpty($Env:PRODUCT_NAME)) {
        Set-Item -Path Env:PRODUCT_NAME -Value 'Xen'
 }
 
+if ([string]::IsNullOrEmpty($Env:COPYRIGHT)) {
+       Set-Item -Path Env:COPYRIGHT -Value 'Copyright (c) Xen Project.'
+}
+
 if ([string]::IsNullOrEmpty($Env:BUILD_NUMBER)) {
        if (Test-Path ".build_number") {
                $BuildNum = Get-Content -Path ".build_number"
diff --git a/include/version.tmpl b/include/version.tmpl
index d6f9a48..ce056d3 100644
--- a/include/version.tmpl
+++ b/include/version.tmpl
@@ -2,6 +2,7 @@
 #define PRODUCT_NAME_STR     "@PRODUCT_NAME@"
 #define VENDOR_PREFIX_STR    "@VENDOR_PREFIX@"
 #define VENDOR_DEVICE_ID_STR "@VENDOR_DEVICE_ID@"
+#define COPYRIGHT_STR        "@COPYRIGHT@"
 
 #define MAJOR_VERSION_STR    "@MAJOR_VERSION@"
 #define MINOR_VERSION_STR    "@MINOR_VERSION@"
diff --git a/scripts/genfiles.ps1 b/scripts/genfiles.ps1
index d402696..4c58f03 100644
--- a/scripts/genfiles.ps1
+++ b/scripts/genfiles.ps1
@@ -61,6 +61,7 @@ $Replacements = [ordered]@{
        'PRODUCT_NAME' = $Env:PRODUCT_NAME;
        'VENDOR_DEVICE_ID' = $Env:VENDOR_DEVICE_ID;
        'VENDOR_PREFIX' = $Env:VENDOR_PREFIX;
+       'COPYRIGHT' = $Env:COPYRIGHT;
 
        'MAJOR_VERSION' = $Env:MAJOR_VERSION;
        'MINOR_VERSION' = $Env:MINOR_VERSION;
diff --git a/src/monitor/xenbus_monitor.rc b/src/monitor/xenbus_monitor.rc
index 090e5c8..457bdc5 100644
--- a/src/monitor/xenbus_monitor.rc
+++ b/src/monitor/xenbus_monitor.rc
@@ -40,7 +40,7 @@
 #include <version.h>
 
 #define VER_COMPANYNAME_STR         VENDOR_NAME_STR
-#define VER_LEGALCOPYRIGHT_STR      "Copyright (c) Citrix Systems Inc."
+#define VER_LEGALCOPYRIGHT_STR      COPYRIGHT_STR
 
 #define VER_PRODUCTNAME_STR         "XENBUS"
 #define VER_PRODUCTVERSION          
MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER
diff --git a/src/xen/xen.rc b/src/xen/xen.rc
index 95d94b6..e9ce1b5 100644
--- a/src/xen/xen.rc
+++ b/src/xen/xen.rc
@@ -41,7 +41,7 @@
 #include <version.h>
 
 #define        VER_COMPANYNAME_STR         VENDOR_NAME_STR
-#define VER_LEGALCOPYRIGHT_STR      "Copyright (c) Citrix Systems Inc."
+#define VER_LEGALCOPYRIGHT_STR      COPYRIGHT_STR
 
 #define VER_PRODUCTNAME_STR         "XEN"
 #define VER_PRODUCTVERSION          
MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER
diff --git a/src/xenbus/xenbus.rc b/src/xenbus/xenbus.rc
index 9248d87..56504eb 100644
--- a/src/xenbus/xenbus.rc
+++ b/src/xenbus/xenbus.rc
@@ -41,7 +41,7 @@
 #include <version.h>
 
 #define        VER_COMPANYNAME_STR         VENDOR_NAME_STR
-#define VER_LEGALCOPYRIGHT_STR      "Copyright (c) Citrix Systems Inc."
+#define VER_LEGALCOPYRIGHT_STR      COPYRIGHT_STR
 
 #define VER_PRODUCTNAME_STR         "XENBUS"
 #define VER_PRODUCTVERSION          
MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER
diff --git a/src/xenfilt/xenfilt.rc b/src/xenfilt/xenfilt.rc
index 4949492..3db5fbf 100644
--- a/src/xenfilt/xenfilt.rc
+++ b/src/xenfilt/xenfilt.rc
@@ -40,7 +40,7 @@
 #include <version.h>
 
 #define        VER_COMPANYNAME_STR         VENDOR_NAME_STR
-#define VER_LEGALCOPYRIGHT_STR      "Copyright (c) Citrix Systems Inc."
+#define VER_LEGALCOPYRIGHT_STR      COPYRIGHT_STR
 
 #define VER_PRODUCTNAME_STR         "XENFILT"
 #define VER_PRODUCTVERSION          
MAJOR_VERSION,MINOR_VERSION,MICRO_VERSION,BUILD_NUMBER
-- 
2.39.0.windows.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.