Changeset 129b92c6 in mainline


Ignore:
Timestamp:
2016-02-29T20:52:33Z (9 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c24c7c
Parents:
a62ceaf
Message:

refactor disk image creation, use it for MSIM, too

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    ra62ceaf r129b92c6  
    9393                return 'system-sparc64', ''
    9494
     95def hdisk_mk():
     96        if not os.path.exists('hdisk.img'):
     97                subprocess.call('tools/mkfat.py 1048576 uspace/dist/data hdisk.img', shell = True)
     98
    9599def qemu_bd_options():
    96100        if is_override('nohdd'):
    97101                return ''
    98 
    99         if not os.path.exists('hdisk.img'):
    100                 subprocess.call('tools/mkfat.py 1048576 uspace/dist/data hdisk.img', shell = True)
    101 
     102       
     103        hdisk_mk()
     104       
    102105        return ' -drive file=hdisk.img,index=0,media=disk,format=raw'
    103106
     
    178181
    179182def msim_run(platform, machine):
     183        hdisk_mk()
    180184        run_in_console('msim -c contrib/conf/msim.conf', 'HelenOS/mips32 on msim')
    181185
Note: See TracChangeset for help on using the changeset viewer.