aboutsummaryrefslogtreecommitdiffstats
path: root/vl-android.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-03-01 14:58:23 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-03-01 16:09:13 +0100
commit53eb66db4eba72d2e4fc951456be725e14243f25 (patch)
treefa55aa1c310db2b48cc49bbbc3dc2c5e76e5097a /vl-android.c
parent143a7553845c11028f867eb3f3e2f10c66b591c6 (diff)
downloadexternal_qemu-53eb66db4eba72d2e4fc951456be725e14243f25.zip
external_qemu-53eb66db4eba72d2e4fc951456be725e14243f25.tar.gz
external_qemu-53eb66db4eba72d2e4fc951456be725e14243f25.tar.bz2
Move AVD name initialization to the core.
Use a hardware property to send the AVD name to the core. The -android-avdname core option is still supported though. Change-Id: I4daac5c9fb65ed5261b5c04c1e1a18daed057a3f
Diffstat (limited to 'vl-android.c')
-rw-r--r--vl-android.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/vl-android.c b/vl-android.c
index a5510a0..d94bec0 100644
--- a/vl-android.c
+++ b/vl-android.c
@@ -4891,6 +4891,14 @@ int main(int argc, char **argv, char **envp)
}
#endif // CONFIG_NAND_LIMITS
+ /* Initialize AVD name from hardware configuration if needed */
+ if (!android_op_avd_name) {
+ if (android_hw->avd_name && *android_hw->avd_name) {
+ android_op_avd_name = android_hw->avd_name;
+ VERBOSE_PRINT(init,"AVD Name: %s", android_op_avd_name);
+ }
+ }
+
/* Initialize system partition image */
{
char tmp[PATH_MAX+32];