update edk2 build script
This commit is contained in:
parent
59db9c4455
commit
58f180d4ee
@ -337,7 +337,8 @@ def main():
|
|||||||
parser.add_argument('-j', '--jobs', dest = 'jobs', type = str,
|
parser.add_argument('-j', '--jobs', dest = 'jobs', type = str,
|
||||||
help = 'allow up to JOBS parallel build jobs',
|
help = 'allow up to JOBS parallel build jobs',
|
||||||
metavar = 'JOBS')
|
metavar = 'JOBS')
|
||||||
parser.add_argument('-m', '--match', dest = 'match', type = str,
|
parser.add_argument('-m', '--match', dest = 'match',
|
||||||
|
type = str, action = 'append',
|
||||||
help = 'only run builds matching INCLUDE (substring)',
|
help = 'only run builds matching INCLUDE (substring)',
|
||||||
metavar = 'INCLUDE')
|
metavar = 'INCLUDE')
|
||||||
parser.add_argument('-x', '--exclude', dest = 'exclude',
|
parser.add_argument('-x', '--exclude', dest = 'exclude',
|
||||||
@ -408,9 +409,14 @@ def main():
|
|||||||
for build in cfg.sections():
|
for build in cfg.sections():
|
||||||
if not build.startswith('build.'):
|
if not build.startswith('build.'):
|
||||||
continue
|
continue
|
||||||
if options.match and options.match not in build:
|
if options.match:
|
||||||
print(f'# skipping "{build}" (not matching "{options.match}")')
|
matching = False
|
||||||
continue
|
for item in options.match:
|
||||||
|
if item in build:
|
||||||
|
matching = True
|
||||||
|
if not matching:
|
||||||
|
print(f'# skipping "{build}" (not matching "{"|".join(options.match)}")')
|
||||||
|
continue
|
||||||
if options.exclude:
|
if options.exclude:
|
||||||
exclude = False
|
exclude = False
|
||||||
for item in options.exclude:
|
for item in options.exclude:
|
||||||
|
Loading…
Reference in New Issue
Block a user