diff --git a/Readme.md b/Readme.md index a0e8708..2ba9015 100644 --- a/Readme.md +++ b/Readme.md @@ -50,53 +50,4 @@ or contact `opencode@microsoft.com `_. with any a ## License -Terms of Use for Microsoft Secure Boot Objects ("Secure Boot Objects") - -By downloading the Secure Boot Objects, you agree to the following terms. -If you do not accept them, do not download or use the Secure Boot Objects. - -These terms do not provide you with any legal rights to any intellectual -property in any Microsoft product. - -You may copy and use the Secure Boot Objects for your internal, reference -purposes and to design, develop, and test your software, firmware or hardware, -as applicable; and you may distribute the Secure Boot Objects to end users -solely as part of the distribution of a software product, or -as part of the distribution of updates to a software product; -and you may distribute the Secure Boot Objects to end users or through your -distribution channels solely as embodied in a firmware product or hardware -product that embodies nontrivial additional functionality. Without limiting the -foregoing, copying or reproduction of the Secure Boot Objects to any other -server or location for further reproduction or redistribution on a standalone -basis is expressly prohibited. - -If you are engaged in the business of developing and commercializing hardware -products that include the UEFI standard -(available at ), you may copy and use the Secure -Boot Objects for your internal, reference purposes and to design, develop, and -test your software; and you may distribute the Secure Boot Objects end users -solely as part of the distribution of a software product, or -as part of the distribution of updates to a software product. -Without limiting the foregoing, copying or reproduction of the Secure Boot -Objects to any other server or location for further reproduction or -redistribution on a standalone basis is expressly prohibited. -The Secure Boot Objects are provided “as-is.” The information contained in the -Secure Boot Objects may change without notice. Microsoft does not represent -that the Secure Boot Objects is error free and you bear the entire risk of -using it. NEITHER MICROSOFT NOR UEFI MAKES ANY WARRANTIES, EXPRESS OR IMPLIED, -WITH RESPECT TO THE SECURE BOOT OBJECTS, AND MICROSOFT AND UEFI EACH EXPRESSLY -DISCLAIMS ALL OTHER EXPRESS, IMPLIED, OR STATUTORY WARRANTIES. THIS INCLUDES -THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND -NON-INFRINGEMENT. - -TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL MICROSOFT -OR UEFI BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY -DAMAGES WHATSOEVER ARISING OUT OF OR IN CONNECTION WITH THE USE OR DISTRIBUTION -OF THE SECURE BOOT OBJECTS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION. - -YOU AGREE TO RELEASE MICROSOFT (INCLUDING ITS AFFLIATES, CONTRACTORS, AGENTS, -EMPLOYEES, LICENSEES AND ASSIGNEES) AND UEFI (INCLUDING ITS AFFILIATES, -CONTRACTORS, AGENTS, EMPLOYEES, LICENSEES AND SUCCESSORS) FROM ANY AND ALL -CLAIMS OR LIABILITY ARISING OUT OF YOUR USE OR DISTRIBUTION OF THE SECURE -BOOT OBJECTS AND ANY RELATED INFORMATION. +The files in this repository are licensed under the [BSD-2-Clause-Patent](License.txt) license. diff --git a/scripts/information/prebuilt_binaries_license.md b/scripts/information/prebuilt_binaries_license.md deleted file mode 100644 index 91c1c24..0000000 --- a/scripts/information/prebuilt_binaries_license.md +++ /dev/null @@ -1,54 +0,0 @@ -## License - -Terms of Use for Microsoft Secure Boot Objects Secure Boot Objects - -By downloading the Secure Boot Objects you agree to the following terms -If you do not accept them do not download or use the Secure Boot Objects - -These terms do not provide you with any legal rights to any intellectual -property in any Microsoft product - -You may copy and use the Secure Boot Objects for your internal reference -purposes and to design develop and test your software firmware or hardware -as applicable and you may distribute the Secure Boot Objects to end users -solely as part of the distribution of a software product or -as part of the distribution of updates to a software product -and you may distribute the Secure Boot Objects to end users or through your -distribution channels solely as embodied in a firmware product or hardware -product that embodies nontrivial additional functionality Without limiting the -foregoing copying or reproduction of the Secure Boot Objects to any other -server or location for further reproduction or redistribution on a standalone -basis is expressly prohibited - -If you are engaged in the business of developing and commercializing hardware -products that include the UEFI standard -available at https://uefi.org/specifications you may copy and use the Secure -Boot Objects for your internal reference purposes and to design develop and -test your software and you may distribute the Secure Boot Objects end users -solely as part of the distribution of a software product or -as part of the distribution of updates to a software product -Without limiting the foregoing copying or reproduction of the Secure Boot -Objects to any other server or location for further reproduction or -redistribution on a standalone basis is expressly prohibited -The Secure Boot Objects are provided asis The information contained in the -Secure Boot Objects may change without notice Microsoft does not represent -that the Secure Boot Objects is error free and you bear the entire risk of -using it - -NEITHER MICROSOFT NOR UEFI MAKES ANY WARRANTIES EXPRESS OR IMPLIED -WITH RESPECT TO THE SECURE BOOT OBJECTS AND MICROSOFT AND UEFI EACH EXPRESSLY -DISCLAIMS ALL OTHER EXPRESS IMPLIED OR STATUTORY WARRANTIES THIS INCLUDES -THE WARRANTIES OF MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE TITLE AND -NONINFRINGEMENT - -TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW IN NO EVENT SHALL MICROSOFT -OR UEFI BE LIABLE FOR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY -DAMAGES WHATSOEVER ARISING OUT OF OR IN CONNECTION WITH THE USE OR DISTRIBUTION -OF THE SECURE BOOT OBJECTS WHETHER IN AN ACTION OF CONTRACT NEGLIGENCE OR -OTHER TORTIOUS ACTION - -YOU AGREE TO RELEASE MICROSOFT INCLUDING ITS AFFILIATES CONTRACTORS AGENTS -EMPLOYEES LICENSEES AND ASSIGNEES AND UEFI INCLUDING ITS AFFILIATES -CONTRACTORS AGENTS EMPLOYEES LICENSEES AND SUCCESSORS FROM ANY AND ALL -CLAIMS OR LIABILITY ARISING OUT OF YOUR USE OR DISTRIBUTION OF THE SECURE -BOOT OBJECTS AND ANY RELATED INFORMATION diff --git a/scripts/prepare_firmware_binaries.py b/scripts/prepare_firmware_binaries.py index 93ec457..a279efc 100644 --- a/scripts/prepare_firmware_binaries.py +++ b/scripts/prepare_firmware_binaries.py @@ -23,7 +23,7 @@ } INFORMATION = (pathlib.Path(__file__).parent / "information" / "firmware_binaries_information.md").read_text() -LICENSE = (pathlib.Path(__file__).parent / "information" / "prebuilt_binaries_license.md").read_text() +LICENSE = (pathlib.Path(__file__).parent.parent / "License.txt").read_text() def get_receipt(bin_file: str) -> dict: """Attempts to retrieve a receipt for the given binary file using multiple methods. diff --git a/scripts/prepare_signed_binaries.py b/scripts/prepare_signed_binaries.py index 4420a7f..25fa2e8 100644 --- a/scripts/prepare_signed_binaries.py +++ b/scripts/prepare_signed_binaries.py @@ -15,7 +15,7 @@ from utility_functions import get_signed_payload_receipt INFORMATION = (pathlib.Path(__file__).parent / "information" / "signed_binaries_information.md").read_text() -LICENSE = (pathlib.Path(__file__).parent / "information" / "prebuilt_binaries_license.md").read_text() +LICENSE = (pathlib.Path(__file__).parent.parent / "License.txt").read_text() LAYOUT = { "edk2-2011-signed-secureboot-binaries": "DBX", diff --git a/scripts/secure_boot_default_keys.py b/scripts/secure_boot_default_keys.py index 9e36ce5..653dc30 100644 --- a/scripts/secure_boot_default_keys.py +++ b/scripts/secure_boot_default_keys.py @@ -33,7 +33,7 @@ FIRMWARE_INFORMATION = (pathlib.Path(__file__).parent / "information" / "firmware_defaults_information.md").read_text() IMAGING_INFORMATION = (pathlib.Path(__file__).parent / "information" / "imaging_binaries_information.md").read_text() -LICENSE = (pathlib.Path(__file__).parent / "information" / "prebuilt_binaries_license.md").read_text() +LICENSE = (pathlib.Path(__file__).parent.parent / "License.txt").read_text() def _is_pem_encoded(certificate_data: Union[str, bytes]) -> bool: """This function is used to check if a certificate is pem encoded (base64 encoded).