VirtualBox

Ignore:
Timestamp:
Aug 12, 2020 4:09:12 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
139865
Message:

Devices/EFI: Merge edk-stable202005 and make it build, 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/SetupGit.py

    r80721 r85718  
    33#
    44#  Copyright (c) 2019, Linaro Ltd. All rights reserved.<BR>
     5#  Copyright (c) 2019, Intel Corporation. All rights reserved.<BR>
    56#
    67#  SPDX-License-Identifier: BSD-2-Clause-Patent
     
    5455# Set of options to be set identically for all repositories
    5556OPTIONS = [
    56     {'section': 'am',          'option': 'keepcr',         'value': True},
    57     {'section': 'am',          'option': 'signoff',        'value': True},
    58     {'section': 'cherry-pick', 'option': 'signoff',        'value': True},
    59     {'section': 'color',       'option': 'diff',           'value': True},
    60     {'section': 'color',       'option': 'grep',           'value': 'auto'},
    61     {'section': 'commit',      'option': 'signoff',        'value': True},
    62     {'section': 'core',        'option': 'abbrev',         'value': 12},
     57    {'section': 'am',          'option': 'keepcr',            'value': True},
     58    {'section': 'am',          'option': 'signoff',           'value': True},
     59    {'section': 'cherry-pick', 'option': 'signoff',           'value': True},
     60    {'section': 'color',       'option': 'diff',              'value': True},
     61    {'section': 'color',       'option': 'grep',              'value': 'auto'},
     62    {'section': 'commit',      'option': 'signoff',           'value': True},
     63    {'section': 'core',        'option': 'abbrev',            'value': 12},
    6364    {'section': 'core',        'option': 'attributesFile',
    6465     'value': os.path.join(CONFDIR, 'gitattributes').replace('\\', '/')},
    65     {'section': 'core',        'option': 'whitespace',     'value': 'cr-at-eol'},
    66     {'section': 'diff',        'option': 'algorithm',      'value': 'patience'},
     66    {'section': 'core',        'option': 'whitespace',        'value': 'cr-at-eol'},
     67    {'section': 'diff',        'option': 'algorithm',         'value': 'patience'},
    6768    {'section': 'diff',        'option': 'orderFile',
    6869     'value': os.path.join(CONFDIR, 'diff.order').replace('\\', '/')},
    69     {'section': 'diff',        'option': 'renames',        'value': 'copies'},
    70     {'section': 'diff',        'option': 'statGraphWidth', 'value': '20'},
    71     {'section': 'diff "ini"',    'option': 'xfuncname',
     70    {'section': 'diff',        'option': 'renames',           'value': 'copies'},
     71    {'section': 'diff',        'option': 'statGraphWidth',    'value': '20'},
     72    {'section': 'diff "ini"',  'option': 'xfuncname',
    7273     'value': '^\\\\[[A-Za-z0-9_., ]+]'},
    73     {'section': 'format',      'option': 'coverLetter',    'value': True},
    74     {'section': 'format',      'option': 'numbered',       'value': True},
    75     {'section': 'format',      'option': 'signoff',        'value': False},
    76     {'section': 'notes',       'option': 'rewriteRef',     'value': 'refs/notes/commits'},
    77     {'section': 'sendemail',   'option': 'chainreplyto',   'value': False},
    78     {'section': 'sendemail',   'option': 'thread',         'value': True},
     74    {'section': 'format',      'option': 'coverLetter',       'value': True},
     75    {'section': 'format',      'option': 'numbered',          'value': True},
     76    {'section': 'format',      'option': 'signoff',           'value': False},
     77    {'section': 'log',         'option': 'mailmap',           'value': True},
     78    {'section': 'notes',       'option': 'rewriteRef',        'value': 'refs/notes/commits'},
     79    {'section': 'sendemail',   'option': 'chainreplyto',      'value': False},
     80    {'section': 'sendemail',   'option': 'thread',            'value': True},
     81    {'section': 'sendemail',   'option': 'transferEncoding',  'value': '8bit'},
    7982    ]
    8083
     
    104107
    105108
    106 def get_upstream(url):
     109def get_upstream(url, name):
    107110    """Extracts the dict for the current repo origin."""
    108111    for upstream in UPSTREAMS:
    109         if fuzzy_match_repo_url(upstream['repo'], url):
     112        if (fuzzy_match_repo_url(upstream['repo'], url) or
     113                upstream['name'] == name):
    110114            return upstream
    111115    print("Unknown upstream '%s' - aborting!" % url)
     
    141145                        action='store_true',
    142146                        required=False)
     147    PARSER.add_argument('-n', '--name', type=str, metavar='repo',
     148                        choices=['edk2', 'edk2-platforms', 'edk2-non-osi'],
     149                        help='set the repo name to configure for, if not '
     150                             'detected automatically',
     151                        required=False)
    143152    PARSER.add_argument('-v', '--verbose',
    144153                        help='enable more detailed output',
     
    154163    URL = REPO.remotes.origin.url
    155164
    156     UPSTREAM = get_upstream(URL)
     165    UPSTREAM = get_upstream(URL, ARGS.name)
    157166    if not UPSTREAM:
    158167        print("Upstream '%s' unknown, aborting!" % URL)
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