X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=OvmfPkg%2Fcreate-release.py;h=82d8e7b0a2b8f7ba49046229dc94398656cfabff;hp=fa00cb75c0fcbc3e386a3b3bb35b1aaaf78d00a9;hb=f33d5d68abc02727dc828c1079e72ab65e1d63af;hpb=57dcb83f5963b5e88c78381d1bc63db1fbb8f3ed diff --git a/OvmfPkg/create-release.py b/OvmfPkg/create-release.py index fa00cb75c0..82d8e7b0a2 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 @@ -128,81 +134,27 @@ shown below. One sub-component of the OVMF project is a FAT filesystem driver. The FAT filesystem driver code is also BSD licensed, but the code license contains one additional term. This license can be found at -http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=Edk2-fat-driver, +https://github.com/tianocore/tianocore.github.io/wiki/Edk2-fat-driver 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 === ''')