]> git.proxmox.com Git - mirror_edk2.git/commitdiff
OvmfPkg/create-release.py: Read License.txt files
authorJordan Justen <jordan.l.justen@intel.com>
Fri, 3 Jan 2014 19:19:43 +0000 (19:19 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 3 Jan 2014 19:19:43 +0000 (19:19 +0000)
Rather than embedding the License information in this script,
we now read the License.txt files from MdePkg & FatBinPkg.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15043 6f19259b-4bc3-4df7-8a09-765794883524

OvmfPkg/create-release.py

index fa00cb75c0fcbc3e386a3b3bb35b1aaaf78d00a9..a15d2473c80c4567dbfba947b585f4e45d982a5f 100755 (executable)
@@ -119,6 +119,12 @@ def gen_build_info():
     print >> sb, 'system:  ', distro, machine.replace('_', '-')\r
     return to_dos_text(sb.getvalue())\r
 \r
+def read_file(filename):\r
+    f = open(filename)\r
+    d = f.read()\r
+    f.close()\r
+    return d\r
+\r
 LICENSE = to_dos_text(\r
 '''This OVMF binary release is built from source code licensed under\r
 the BSD open source license.  The BSD license is documented at\r
@@ -133,76 +139,22 @@ and a copy is shown below (following the normal BSD license).
 \r
 === BSD license: START ===\r
 \r
-Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.\r
-\r
-Redistribution and use in source and binary forms, with or without\r
-modification, are permitted provided that the following conditions\r
-are met:\r
-\r
-* Redistributions of source code must retain the above copyright\r
-  notice, this list of conditions and the following disclaimer.\r
-* Redistributions in binary form must reproduce the above copyright\r
-  notice, this list of conditions and the following disclaimer in\r
-  the documentation and/or other materials provided with the\r
-  distribution.\r
-* Neither the name of the Intel Corporation nor the names of its\r
-  contributors may be used to endorse or promote products derived\r
-  from this software without specific prior written permission.\r
-\r
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\r
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\r
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\r
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\r
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\r
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
-POSSIBILITY OF SUCH DAMAGE.\r
+''')\r
+\r
+LICENSE += read_file(os.path.join('MdePkg', 'License.txt'))\r
 \r
+LICENSE += to_dos_text(\r
+'''\r
 === BSD license: END ===\r
 \r
 === FAT filesystem driver license: START ===\r
 \r
-Copyright (c) 2004, Intel Corporation. All rights reserved.\r
-\r
-Redistribution and use in source and binary forms, with or without\r
-modification, are permitted provided that the following conditions\r
-are met:\r
-\r
-* Redistributions of source code must retain the above copyright\r
-  notice, this list of conditions and the following disclaimer.\r
-* Redistributions in binary form must reproduce the above copyright\r
-  notice, this list of conditions and the following disclaimer in\r
-  the documentation and/or other materials provided with the\r
-  distribution.\r
-* Neither the name of Intel nor the names of its\r
-  contributors may be used to endorse or promote products derived\r
-  from this software without specific prior written permission.\r
-\r
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\r
-"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\r
-LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS\r
-FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE\r
-COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,\r
-INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,\r
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\r
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER\r
-CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT\r
-LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN\r
-ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE\r
-POSSIBILITY OF SUCH DAMAGE.\r
-\r
-Additional terms:\r
-In addition to the forgoing, redistribution and use of the code is\r
-conditioned upon the FAT 32 File System Driver and all derivative\r
-works thereof being used for and designed only to read and/or write\r
-to a file system that is directly managed by an Extensible Firmware\r
-Interface (EFI) implementation or by an emulator of an EFI\r
-implementation.\r
+''')\r
+\r
+LICENSE += read_file(os.path.join('FatBinPkg', 'License.txt'))\r
 \r
+LICENSE += to_dos_text(\r
+'''\r
 === FAT filesystem driver license: END ===\r
 ''')\r
 \r