use registered qemu emulator filename if already registered.
authorDohyung Kim <dohyung2.kim@samsung.com>
Mon, 5 Jun 2017 05:49:23 +0000 (14:49 +0900)
committeryuhuan.yang <yuhuan.yang@samsung.com>
Fri, 26 Jan 2018 05:38:42 +0000 (13:38 +0800)
commit984d9bdd5f01c83c98979e108d00654afbd32b6f
treed216c874745d830daae0a8cdc6970e6d8085997d
parentb9a3b7e8322f54dfb116058be4a24b9c6bf1de4e
use registered qemu emulator filename if already registered.

1. preserve-argv[0] flag is enabled
   copy both qemu-XXX and qemu-XXX-binfmt and use them.
2. flag is disabled and the copied qemu and the registered qemu are different
   create symlink as the registered qemu emulator filename and use symlink

Change-Id: I3f9050a01cc3bd0431b37a2c1e29729ef15ee765
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
mic/chroot.py
mic/imager/baseimager.py
mic/utils/misc.py