VirtualBox

忽略:
時間撮記:
2024-8-14 下午01:16:30 (7 月 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
164367
訊息:

Devices/EFI/FirmwareNew: Merge edk2-stable-202405 and make it build on aarch64, bugref:4643

位置:
trunk/src/VBox/Devices/EFI/FirmwareNew
檔案:
修改 2 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/.pytool/CISettings.py

    r101291 r105670  
    88import os
    99import logging
     10import sys
    1011from edk2toolext.environment import shell_environment
    1112from edk2toolext.invocables.edk2_ci_build import CiBuildSettingsManager
     
    1415from edk2toolext.invocables.edk2_pr_eval import PrEvalSettingsManager
    1516from edk2toollib.utility_functions import GetHostInfo
     17from pathlib import Path
     18
     19
     20try:
     21    # Temporarily needed until edk2 can update to the latest edk2-pytools
     22    # that has the CodeQL helpers.
     23    #
     24    # May not be present until submodules are populated.
     25    #
     26    root = Path(__file__).parent.parent.resolve()
     27    sys.path.append(str(root/'BaseTools'/'Plugin'/'CodeQL'/'integration'))
     28    import stuart_codeql as codeql_helpers
     29except ImportError:
     30    pass
    1631
    1732
     
    3550        group.add_argument("-no_piptools", "--npt", dest="no_piptools", action="store_true", default=False, help="Force the system to not use pip tools")
    3651
     52        try:
     53            codeql_helpers.add_command_line_option(parserObj)
     54        except NameError:
     55            pass
     56
    3757    def RetrieveCommandLineOptions(self, args):
    3858        super().RetrieveCommandLineOptions(args)
     
    4161        if args.no_piptools:
    4262            self.UseBuiltInBaseTools = False
     63
     64        try:
     65            self.codeql = codeql_helpers.is_codeql_enabled_on_command_line(args)
     66        except NameError:
     67            pass
    4368
    4469    # ####################################################################################### #
     
    170195                logging.warning("Falling back to using in-tree BaseTools")
    171196
     197            try:
     198                scopes += codeql_helpers.get_scopes(self.codeql)
     199
     200                if self.codeql:
     201                    shell_environment.GetBuildVars().SetValue(
     202                        "STUART_CODEQL_AUDIT_ONLY",
     203                        "TRUE",
     204                        "Set in CISettings.py")
     205            except NameError:
     206                pass
     207
    172208            self.ActualScopes = scopes
    173209        return self.ActualScopes
     
    200236        rs.append(RequiredSubmodule(
    201237            "MdePkg/Library/MipiSysTLib/mipisyst", False))
     238        rs.append(RequiredSubmodule(
     239            "CryptoPkg/Library/MbedTlsLib/mbedtls", False))
     240        rs.append(RequiredSubmodule(
     241            "SecurityPkg/DeviceSecurity/SpdmLib/libspdm", False))
    202242        return rs
    203243
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette