emulator-qemu: Fix data directory lookup.

This patch modifies the qemu launcher/wrapper to use the -L <path>
option to specify the location of the 'data directory' that contains
the BIOS and keymaps file required by QEMU.

By default, QEMU hard-codes the directory that was used for its build
(which was under /tmp/), which explains why the binary worked until
the machine was rebooted!

This requires the pc-bios/ directory from the QEMU source tree to
be copied into $OUT_DIR/qemu/pc-bios/ to work correctly, something
that should be handled by android-configure.sh at build time.

+ If userdata-qemu.img doesn't exist, create it as a copy of
  userdata.img, which is the initial version.

Change-Id: Id41f2523a9cf23ff74aea6b5f04eb211cbb164f6
1 file changed