VirtualBox

Ignore:
Timestamp:
Sep 11, 2019 8:46:37 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133262
Message:

Devices/EFI/FirmwareNew: Start upgrade process to edk2-stable201908 (compiles on Windows and works to some extent), bugref:4643

Location:
trunk/src/VBox/Devices/EFI/FirmwareNew
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/FirmwareNew

  • trunk/src/VBox/Devices/EFI/FirmwareNew/BaseTools/Scripts/SmiHandlerProfileSymbolGen.py

    r77662 r80721  
    55#
    66# Copyright (c) 2017, Intel Corporation. All rights reserved.<BR>
    7 # This program and the accompanying materials are licensed and made available under
    8 # the terms and conditions of the BSD License that accompanies this distribution.
    9 # The full text of the license may be found at
    10 # http://opensource.org/licenses/bsd-license.php.
    11 #
    12 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    13 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     7# SPDX-License-Identifier: BSD-2-Clause-Patent
    148#
    159##
    1610
     11from __future__ import print_function
    1712import os
    1813import re
     
    6257            nmCommand = "nm"
    6358            nmLineOption = "-l"
    64             print "parsing (debug) - " + pdbName
     59            print("parsing (debug) - " + pdbName)
    6560            os.system ('%s %s %s > nmDump.line.log' % (nmCommand, nmLineOption, pdbName))
    6661        except :
    67             print 'ERROR: nm command not available.  Please verify PATH'
     62            print('ERROR: nm command not available.  Please verify PATH')
    6863            return
    6964
     
    10499            #DIA2SymbolOption = "-p"
    105100            DIA2LinesOption = "-l"
    106             print "parsing (pdb) - " + pdbName
     101            print("parsing (pdb) - " + pdbName)
    107102            #os.system ('%s %s %s > DIA2Dump.symbol.log' % (DIA2DumpCommand, DIA2SymbolOption, pdbName))
    108103            os.system ('%s %s %s > DIA2Dump.line.log' % (DIA2DumpCommand, DIA2LinesOption, pdbName))
    109104        except :
    110             print 'ERROR: DIA2Dump command not available.  Please verify PATH'
     105            print('ERROR: DIA2Dump command not available.  Please verify PATH')
    111106            return
    112107
     
    205200            guid = guidLineList[0]
    206201            guidName = guidLineList[1]
    207             if guid not in dictGuid.keys() :
     202            if guid not in dictGuid :
    208203                dictGuid[guid] = guidName
    209204
     
    236231        DOMTree = xml.dom.minidom.parse(Options.inputfilename)
    237232    except Exception:
    238         print "fail to open input " + Options.inputfilename
     233        print("fail to open input " + Options.inputfilename)
    239234        return 1
    240235
     
    243238            guidreffile = open(Options.guidreffilename)
    244239        except Exception:
    245             print "fail to open guidref" + Options.guidreffilename
     240            print("fail to open guidref" + Options.guidreffilename)
    246241            return 1
    247242        genGuidString(guidreffile)
     
    257252            if smiEntry.hasAttribute("HandlerType"):
    258253                guidValue = smiEntry.getAttribute("HandlerType")
    259                 if guidValue in dictGuid.keys() :
     254                if guidValue in dictGuid:
    260255                    smiEntry.setAttribute("HandlerType", dictGuid[guidValue])
    261256            SmiHandler = smiEntry.getElementsByTagName("SmiHandler")
     
    278273                    Handler = smiHandler.getElementsByTagName("Handler")
    279274                    RVA = Handler[0].getElementsByTagName("RVA")
    280                     print "    Handler RVA: %s" % RVA[0].childNodes[0].data
     275                    print("    Handler RVA: %s" % RVA[0].childNodes[0].data)
    281276
    282277                    if (len(RVA)) >= 1:
     
    290285                    Caller = smiHandler.getElementsByTagName("Caller")
    291286                    RVA = Caller[0].getElementsByTagName("RVA")
    292                     print "    Caller RVA: %s" % RVA[0].childNodes[0].data
     287                    print("    Caller RVA: %s" % RVA[0].childNodes[0].data)
    293288
    294289                    if (len(RVA)) >= 1:
     
    303298        newfile = open(Options.outputfilename, "w")
    304299    except Exception:
    305         print "fail to open output" + Options.outputfilename
     300        print("fail to open output" + Options.outputfilename)
    306301        return 1
    307302
Note: See TracChangeset for help on using the changeset viewer.

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