userland: make uber awesome with --baremetal-like executable resolution

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-10-30 22:00:02 +00:00
parent ab2574a790
commit 4f47491482
7 changed files with 160 additions and 96 deletions

View File

@@ -7,7 +7,7 @@ import common
class QemuComponent(common.Component):
def add_parser_arguments(self, parser):
parser.add_argument(
'--user',
'--userland',
default=False,
action='store_true',
help='Build QEMU user mode instead of system.',
@@ -26,7 +26,7 @@ class QemuComponent(common.Component):
verbose = ['V=1']
else:
verbose = []
if args.user:
if args.userland:
target_list = '{}-linux-user'.format(args.arch)
else:
target_list = '{}-softmmu'.format(args.arch)