Changeset 3692678 in mainline


Ignore:
Timestamp:
2018-02-25T15:58:44Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ae3a941
Parents:
27de618
Message:

ew.py - allow qemu_path parameter (why the hell this does not use getopt?!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r27de618 r3692678  
    190190
    191191        cmdline = cmd
     192        if 'qemu_path' in overrides.keys():
     193                cmdline = overrides['qemu_path'] + cmd
     194
    192195        if options != '':
    193196                cmdline += ' ' + options
     
    329332def run():
    330333        expect_nic = False
     334        expect_qemu = False
    331335
    332336        for i in range(1, len(sys.argv)):
     
    345349                                usage()
    346350                                exit()
     351
     352                if expect_qemu:
     353                        expect_qemu = False
     354                        overrides['qemu_path'] = sys.argv[i]
    347355
    348356                elif sys.argv[i] == '-h':
     
    367375                elif sys.argv[i] == '-notablet':
    368376                        overrides['notablet'] = True
     377                elif sys.argv[i] == '-qemu_path' and i < len(sys.argv) - 1:
     378                        expect_qemu = True
    369379                else:
    370380                        usage()
Note: See TracChangeset for help on using the changeset viewer.