python_code
stringlengths
0
679k
repo_name
stringlengths
9
41
file_path
stringlengths
6
149
## @file # This file is used to create/update/query/erase table for data models # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger import CommonData...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TableDataModel.py
## @file # This file is used to create/update/query/erase table for functions # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger from Table.Table im...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TableFunction.py
from __future__ import absolute_import ## @file # This file is used to create/update/query/erase table for dsc datas # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # import Common.EdkLogger as EdkLogger import CommonDataCl...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TableDsc.py
## @file # This file is used to create/update/query/erase table for files # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger from Table.Table import...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TableFile.py
## @file # Python 'Table' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent #
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/__init__.py
## @file # This file is used to create/update/query/erase table for dec datas # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger import CommonDataCl...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TableDec.py
## @file # This file is used to create/update/query/erase table for pcds # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger from Table.Table import ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TablePcd.py
## @file # This file is used to create/update/query/erase table for fdf datas # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger import CommonDataCl...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TableFdf.py
## @file # This file is used to create/update/query/erase table for Queries # # Copyright (c) 2008, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger from Common.StringUtils impo...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TableQuery.py
## @file # This file is used to create/update/query/erase table for inf datas # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger import CommonDataCl...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TableInf.py
## @file # This file is used to create/update/query/erase a common table # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # import Common.EdkLogger as EdkLogger ## TableFile # # This class defined a common table # # @param ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/Table.py
## @file # This file is used to create/update/query/erase table for ECC reports # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger import Common.Lon...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Table/TableEotReport.py
## @file # This file is used to define strings used in the BPDG tool # # Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## #string table starts here... #strings are classified as following types # MSG_...: it is a message string # ERR_...: ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/BPDG/StringTable.py
## @file # This file include GenVpd class for fix the Vpd type PCD offset, and PcdEntry for describe # and process each entry of vpd type PCD. # # Copyright (c) 2010 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import absolute_import import ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/BPDG/GenVpd.py
## @file # Python 'BPDG' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent #
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/BPDG/__init__.py
## @file # Intel Binary Product Data Generation Tool (Intel BPDG). # This tool provide a simple process for the creation of a binary file containing read-only # configuration data for EDK II platforms that contain Dynamic and DynamicEx PCDs described # in VPD sections. It also provide an option for specifying an al...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/BPDG/BPDG.py
## @file # Python 'TargetTool' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent #
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/TargetTool/__init__.py
## @file # Target Tool Parser # # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import print_function import Common.LongFilePathOs as os import sys import traceback from optparse import OptionParser import Common.EdkLogger a...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/TargetTool/TargetTool.py
## @file # This file is used to define class Configuration # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import print_function import Common.LongFilePathOs as os import Common.EdkLogger as EdkLogger from...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/Configuration.py
## @file # This file is used to parse exception items found by ECC tool # # Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import print_function from __future__ import absolute_import from Ecc.Xml.XmlRoutines...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/Exception.py
## @file # Standardized Error Handling infrastructures. # # Copyright (c) 2021, Arm Limited. All rights reserved.<BR> # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ERROR_GENERAL_CHECK_ALL = 1000 ERROR_GENERAL_CHECK_NO_TAB = 1001 ERROR_GENERAL_...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/EccToolError.py
## @file # This file is used to define checkpoints used by ECC tool # # Copyright (c) 2021, Arm Limited. All rights reserved.<BR> # Copyright (c) 2008 - 2020, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import absolute_import import Common.LongFilePathOs ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/Check.py
## @file # This file is used to create a database used by ECC tool # # Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import sqlite3 import Common.LongFilePathOs as os, time import Com...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/Database.py
## @file # fragments of source file # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import re import Common.LongFilePathOs as os from Ecc.ParserWarning import Warning from Commo...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/FileProfile.py
## @file # Python 'Ecc' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent #
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/__init__.py
## @file # This file is used to be the c coding style checking of ECC tool # # Copyright (c) 2009 - 2019, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2020, Arm Limited. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import print_function from __future__ import...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/c.py
## @file # This file is used to save global datas used by ECC tool # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # import Common.LongFilePathOs as os gWorkspace = '' gTarget = '' gConfig = None gDb = None gIdentifierTabl...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/EccGlobalData.py
## @file # This file is used to be the warning class of ECC tool # # Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## The exception class that used to report error messages when preprocessing # # Currently the "ToolName" is set to be "ECC PP". #...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/ParserWarning.py
## @file # preprocess source file # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import print_function from __future__ import absolute_import import re import Common.LongFilePathOs as os import sys i...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/CodeFragmentCollector.py
## @file # fragments of source file # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## The description of comment contents and start & end position # # class Comment : ## The constructor # # @param self The object po...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/CodeFragment.py
## @file # This file is used to define common parser functions for meta-data # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import absolute_import import Common.LongFilePathOs as os from CommonDataClass.DataClass import * from...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/MetaDataParser.py
## @file # This file is used to be the main entrance of ECC tool # # Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR> # Copyright (c) Microsoft Corporation.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.LongFilePath...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/EccMain.py
## @file # Python 'Workspace' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent #
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/MetaFileWorkspace/__init__.py
## @file # This file is used to create/update/query/erase a meta file table # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import uuid import Common.EdkLogger as EdkLogger import E...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileTable.py
## @file # This file is used to create/update/query/erase table for files # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import print_function import Common.LongFilePathOs as os import Common.EdkLogger a...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaDataTable.py
## @file # This file is used to parse meta files # # Copyright (c) 2008 - 2020, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.LongFilePathOs as os import re import time import copy from hashlib imp...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/MetaFileWorkspace/MetaFileParser.py
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53 from antlr3 import * from antlr3.compat import set, frozenset ## @file # The file defines the Lexer for C source files. # # THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE. # This file is generated by running: # java org.antlr.Tool C.g # # Copyright (c) 2009 - 2018, ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/CParser3/CLexer.py
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/CParser3/__init__.py
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53 from __future__ import print_function from __future__ import absolute_import from antlr3 import * from antlr3.compat import set, frozenset ## @file # The file defines the parser for C source files. # # THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE. # This file is g...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/CParser3/CParser.py
## @file # This is an XML API that uses a syntax similar to XPath, but it is written in # standard python so that no extra python packages are required to use it. # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __fut...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/Xml/XmlRoutines.py
## @file # Python 'Library' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ''' Xml '''
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/Xml/__init__.py
# Generated from C.g4 by ANTLR 4.7.1 from antlr4 import * from io import StringIO from typing.io import TextIO import sys ## @file # The file defines the parser for C source files. # # THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE. # This file is generated by running: # java org.antlr.Tool C.g # # Co...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/CParser4/CLexer.py
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/CParser4/__init__.py
# Generated from C.g4 by ANTLR 4.7.1 # encoding: utf-8 from antlr4 import * from io import StringIO from typing.io import TextIO import sys ## @file # The file defines the parser for C source files. # # THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE. # This file is generated by running: # java org.ant...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/CParser4/CParser.py
# Generated from C.g4 by ANTLR 4.7.1 from antlr4 import * if __name__ is not None and "." in __name__: from .CParser import CParser else: from CParser import CParser ## @file # The file defines the parser for C source files. # # THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE. # This file is gen...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Ecc/CParser4/CListener.py
## @file # classes represent data in FDF # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## FD data in FDF # # class FDClassObject: ## The constructor # # @param self The object pointer # def __init__(self): ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/CommonDataClass/FdfClass.py
## @file # This file is used to define class for data structure used in ECC # # Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## # Import Modules # import Common.EdkLogger as EdkLogger ## # Static values for data models # MODEL_UNKNOWN = 0 MODEL...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/CommonDataClass/DataClass.py
## @file # Python 'CommonDataClass' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent #
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/CommonDataClass/__init__.py
## @file # This file is used to define common items of class object # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## SkuInfoClass # # This class defined SkuInfo item used in Module/Platform/Package files # # @param object: Inherited...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/CommonDataClass/CommonClass.py
## @file # This file is used to define common Exceptions class used in python tools # # Copyright (c) 2011, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## Exceptions used in Expression class EvaluationException(Exception): pass class BadExpression(EvaluationException...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/CommonDataClass/Exceptions.py
## @file # Routines for generating Pcd Database # # Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import absolute_import from io import BytesIO from Common.Misc import * from Common.StringUtils import StringToArray from struct imp...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/GenPcdDb.py
## @file # Routines for generating AutoGen.h and AutoGen.c # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## Import Modules # from __future__ import absolute_import import string import collections import struct from Common import EdkLogger f...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/GenC.py
## @file # This file is used to collect all defined strings in multiple uni files # # # Copyright (c) 2014 Hewlett-Packard Development Company, L.P.<BR> # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## # Import Modules # from __future__ import...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/UniClassObject.py
## @file # Create makefile for MS nmake and GNU make # # Copyright (c) 2007 - 2021, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2020 - 2021, Arm Limited. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## Import Modules # from __future__ import absolute_import import Common.Lo...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/GenMake.py
# Copyright (c) 2015 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # # This file is used to collect the Variable checking information # # # # Import Modules # import os from Common.RangeExpression import RangeExpression from Common.Misc import * from io import Byte...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/ValidCheckingInfoObject.py
## @file # Create makefile for MS nmake and GNU make # # Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import absolute_import from Workspace.WorkspaceDatabase import WorkspaceDatabase,BuildDB from Common.caching import cached_prop...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/ModuleAutoGenHelper.py
## @file # Create makefile for MS nmake and GNU make # # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import absolute_import from Workspace.WorkspaceDatabase import BuildDB from Workspace.WorkspaceCommon import GetModuleLibInstances imp...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/DataPipe.py
## @file # Python 'AutoGen' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # __all__ = ["AutoGen"]
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/__init__.py
# Copyright (c) 2017 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # # This file is used to collect the Variable checking information # # # # Import Modules # from struct import pack, unpack import collections import copy from Common.VariableAttributes import Varia...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/GenVar.py
## @file # Create makefile for MS nmake and GNU make # # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import absolute_import import multiprocessing as mp import threading from Common.Misc import PathClass from AutoGen.ModuleAutoGen impo...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/AutoGenWorker.py
## @file # Generate AutoGen.h, AutoGen.c and *.depex files # # Copyright (c) 2007 - 2019, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2018, Hewlett Packard Enterprise Development, L.P.<BR> # Copyright (c) 2019, American Megatrends, Inc. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/AutoGen.py
## @file # Build cache intermediate result and state # # Copyright (c) 2019 - 2020, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2020, ARM Limited. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from Common.caching import cached_property import Common.EdkLogger as EdkLogger imp...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/IncludesAutoGen.py
## @file # This file is used to collect all defined strings in Image Definition files # # Copyright (c) 2016, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## # Import Modules # from __future__ import absolute_import import Common.EdkLogger as EdkLogger from Common.BuildToo...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/IdfClassObject.py
## @file # The engine for building files # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import print_function import Common.LongFilePathOs as os import re import copy import string from Common.LongFilePat...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/BuildEngine.py
## @file # Parser a Inf file and Get specify section data. # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## Import Modules # import Common.EdkLogger as EdkLogger from Common.BuildToolError import * from Common.DataType import * class InfS...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/InfSectionParser.py
## @file # This file is used to generate DEPEX file for module's dependency expression # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## Import Modules # import sys import Common.LongFilePathOs as os import re import traceback from Common.LongF...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/GenDepex.py
## @file # Create makefile for MS nmake and GNU make # # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from __future__ import absolute_import from AutoGen.AutoGen import AutoGen from Common.LongFilePathSupport import LongFilePath, CopyLongFilePath from ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/ModuleAutoGen.py
## @file # Create makefile for MS nmake and GNU make # # Copyright (c) 2019 - 2021, Intel Corporation. All rights reserved.<BR> # Copyright (c) 2020, ARM Limited. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## Import Modules # from __future__ import print_function from __future__ import ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/PlatformAutoGen.py
## @file # Create makefile for MS nmake and GNU make # # Copyright (c) 2019, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## Import Modules # from __future__ import print_function from __future__ import absolute_import import os.path as path import hashlib from collectio...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/WorkspaceAutoGen.py
## @file # This file is used to parse a strings file and create or add to a string database # file. # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## # Import Modules # from __future__ import absolute_import import re import Common.EdkLogger as...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/AutoGen/StrGather.py
## @file # This tool adds EFI_FIRMWARE_IMAGE_AUTHENTICATION for a binary. # # This tool only support CertType - EFI_CERT_TYPE_PKCS7_GUID # {0x4aafd29d, 0x68df, 0x49ee, {0x8a, 0xa9, 0x34, 0x7d, 0x37, 0x56, 0x65, 0xa7}} # # This tool has been tested with OpenSSL. # # Copyright (c) 2016 - 2017, Intel Corporation. All ri...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Pkcs7Sign/Pkcs7Sign.py
## @file # This file is used to parse INF file of EDK project # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import print_function from __future__ import absolute_import import Common.LongFilePathOs as o...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/InfParserLite.py
## @file # This file is used to create a database used by EOT tool # # Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # import sqlite3 import Common.LongFilePathOs as os, time import Common.EdkLogger as EdkLogger import Commo...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/Database.py
## @file # fragments of source file # # Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import re import Common.LongFilePathOs as os from .ParserWarning import Warning from Common.L...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/FileProfile.py
## @file # Python 'Eot' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent #
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/__init__.py
## @file # This file is used to define common parsing related functions used in parsing # Inf/Dsc/Makefile process # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.LongF...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/Parser.py
## @file # This file is used to save global datas # # Copyright (c) 2008 - 2014, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # from collections import OrderedDict from Common.LongFilePathSupport import OpenLongFilePath as open gEFI_SOURCE = '' gEDK_SOURCE = '' gWORKSPACE...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/EotGlobalData.py
## @file # preprocess source file # # Copyright (c) 2007 - 2014, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import print_function from __future__ import absolute_import import sys import Common.LongFilePathOs as os import re fr...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/c.py
## @file # Warning information of Eot # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # class Warning (Exception): ## The constructor # # @param self The object pointer # @param Str The message to record ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/ParserWarning.py
## @file # preprocess source file # # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import print_function from __future__ import absolute_import import re import Common.LongFilePathOs as os import sys i...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/CodeFragmentCollector.py
## @file # This file is used to be the main entrance of EOT tool # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.LongFilePathOs as os, time, glob import Common.EdkLogge...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/EotMain.py
## @file # Standardized Error Handling infrastructures. # # Copyright (c) 2008 - 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # # Error id ERROR_1 = 1000 # Error message gEccErrorMessage = { ERROR_1 : "RESERVED" }
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/EotToolError.py
## @file # This file is used to define the identification of INF/DEC/DSC files # # Copyright (c) 2007, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent ## Identification # # This class defined basic Identification information structure which is used by INF/DEC/DSC files # # @p...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/Identification.py
## @file # fragments of source file # # Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## The description of comment contents and start & end position # # class Comment : ## The constructor # # @param self The object po...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/CodeFragment.py
## @file # This file is used to create report for Eot tool # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from __future__ import absolute_import import Common.LongFilePathOs as os from . import EotGlobalData from Common....
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/Report.py
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53 from antlr3 import * from antlr3.compat import set, frozenset ## @file # The file defines the Lexer for C source files. # # THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE. # This file is generated by running: # java org.antlr.Tool C.g # # Copyright (c) 2009 - 2018, ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/CParser3/CLexer.py
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/CParser3/__init__.py
# $ANTLR 3.0.1 C.g 2010-02-23 09:58:53 from __future__ import print_function from __future__ import absolute_import from antlr3 import * from antlr3.compat import set, frozenset ## @file # The file defines the parser for C source files. # # THIS FILE IS AUTO-GENERATED. PLEASE DO NOT MODIFY THIS FILE. # This file is g...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/CParser3/CParser.py
# Generated from C.g4 by ANTLR 4.7.1 from antlr4 import * from io import StringIO from typing.io import TextIO import sys ## @file # The file defines the parser for C source files. # # THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE. # This file is generated by running: # java org.antlr.Tool C.g # # Co...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/CParser4/CLexer.py
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/CParser4/__init__.py
# Generated from C.g4 by ANTLR 4.7.1 # encoding: utf-8 from antlr4 import * from io import StringIO from typing.io import TextIO import sys ## @file # The file defines the parser for C source files. # # THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE. # This file is generated by running: # java org.ant...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/CParser4/CParser.py
# Generated from C.g4 by ANTLR 4.7.1 from antlr4 import * if __name__ is not None and "." in __name__: from .CParser import CParser else: from CParser import CParser ## @file # The file defines the parser for C source files. # # THIS FILE IS AUTO-GENENERATED. PLEASE DON NOT MODIFY THIS FILE. # This file is gen...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Eot/CParser4/CListener.py
## @file # Python 'GenPatchPcdTable' package initialization file. # # This file is required to make Python interpreter treat the directory # as containing package. # # Copyright (c) 2010, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent #
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/GenPatchPcdTable/__init__.py
## @file # Generate PCD table for 'Patchable In Module' type PCD with given .map file. # The Patch PCD table like: # # PCD Name Offset in binary # ======== ================ # # Copyright (c) 2008 - 2018, Intel Corporation. All rights reserved.<BR> # SPDX-License-Identifier: BSD-2-Clause-Patent # # #====...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/GenPatchPcdTable/GenPatchPcdTable.py
## @file # This tool encodes and decodes GUIDed FFS sections or FMP capsule for a GUID type of # EFI_CERT_TYPE_RSA2048_SHA256_GUID defined in the UEFI 2.4 Specification as # {0xa7717414, 0xc616, 0x4977, {0x94, 0x20, 0x84, 0x47, 0x12, 0xa7, 0x35, 0xbf}} # This tool has been tested with OpenSSL 1.0.1e 11 Feb 2013 # # C...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256Sign.py
## @file # This tool can be used to generate new RSA 2048 bit private/public key pairs # in a PEM file format using OpenSSL command line utilities that are installed # on the path specified by the system environment variable OPENSSL_PATH. # This tool can also optionally write one or more SHA 256 hashes of 2048 bit # pu...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/Python/Rsa2048Sha256Sign/Rsa2048Sha256GenerateKeys.py
## @file # package and install PyEfiCompressor extension # # Copyright (c) 2008, Intel Corporation. All rights reserved.<BR> # # SPDX-License-Identifier: BSD-2-Clause-Patent # ## # Import Modules # from distutils.core import setup, Extension import os if 'BASE_TOOLS_PATH' not in os.environ: raise "Please define...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/C/PyEfiCompressor/setup.py
# Copyright 2015 The Brotli Authors. All rights reserved. # # Distributed under MIT license. # See file LICENSE for detail or copy at https://opensource.org/licenses/MIT import os import platform import re import unittest try: from setuptools import Extension from setuptools import setup except: from dist...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/C/BrotliCompress/brotli/setup.py
#! /usr/bin/env python """Compression/decompression utility using the Brotli algorithm.""" from __future__ import print_function import argparse import sys import os import platform import brotli # default values of encoder parameters DEFAULT_PARAMS = { 'mode': brotli.MODE_GENERIC, 'quality': 11, 'lgwin'...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/C/BrotliCompress/brotli/python/bro.py
# Copyright 2016 The Brotli Authors. All rights reserved. # # Distributed under MIT license. # See file LICENSE for detail or copy at https://opensource.org/licenses/MIT """Functions to compress and decompress data using the Brotli library.""" import _brotli # The library version. __version__ = _brotli.__version__ ...
nvtrust-main
infrastructure/kvm/ovmf/ovmf_source/BaseTools/Source/C/BrotliCompress/brotli/python/brotli.py