From e55bf53ba9f59f16a6dabe8ac08db25bc91df770 Mon Sep 17 00:00:00 2001 From: Jordan Justen Date: Fri, 3 Jan 2014 19:19:43 +0000 Subject: [PATCH] OvmfPkg/create-release.py: Read License.txt files 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 Reviewed-by: Laszlo Ersek git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15043 6f19259b-4bc3-4df7-8a09-765794883524 --- OvmfPkg/create-release.py | 80 ++++++++------------------------------- 1 file changed, 16 insertions(+), 64 deletions(-) diff --git a/OvmfPkg/create-release.py b/OvmfPkg/create-release.py index fa00cb75c0..a15d2473c8 100755 --- a/OvmfPkg/create-release.py +++ b/OvmfPkg/create-release.py @@ -119,6 +119,12 @@ def gen_build_info(): print >> sb, 'system: ', distro, machine.replace('_', '-') return to_dos_text(sb.getvalue()) +def read_file(filename): + f = open(filename) + d = f.read() + f.close() + return d + LICENSE = to_dos_text( '''This OVMF binary release is built from source code licensed under the BSD open source license. The BSD license is documented at @@ -133,76 +139,22 @@ and a copy is shown below (following the normal BSD license). === BSD license: START === -Copyright (c) 2009 - 2011, Intel Corporation. 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. -* Neither the name of the Intel Corporation nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -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 OWNER 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. +''') + +LICENSE += read_file(os.path.join('MdePkg', 'License.txt')) +LICENSE += to_dos_text( +''' === BSD license: END === === FAT filesystem driver license: START === -Copyright (c) 2004, Intel Corporation. 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. -* Neither the name of Intel nor the names of its - contributors may be used to endorse or promote products derived - from this software without specific prior written permission. - -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 OWNER 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. - -Additional terms: -In addition to the forgoing, redistribution and use of the code is -conditioned upon the FAT 32 File System Driver and all derivative -works thereof being used for and designed only to read and/or write -to a file system that is directly managed by an Extensible Firmware -Interface (EFI) implementation or by an emulator of an EFI -implementation. +''') + +LICENSE += read_file(os.path.join('FatBinPkg', 'License.txt')) +LICENSE += to_dos_text( +''' === FAT filesystem driver license: END === ''') -- 2.39.2