aboutsummaryrefslogtreecommitdiffstats
path: root/android/main-common.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2011-03-01 14:04:00 +0100
committerDavid 'Digit' Turner <digit@android.com>2011-03-01 15:31:11 +0100
commit40841b2d221273a08abfe20824e7631211ade31d (patch)
treeea4ae5d5dd91b9473a4fd34c46e50f7af246f2a0 /android/main-common.c
parent5f64b873605baa5519211b0d47a53c93df9d4868 (diff)
downloadexternal_qemu-40841b2d221273a08abfe20824e7631211ade31d.zip
external_qemu-40841b2d221273a08abfe20824e7631211ade31d.tar.gz
external_qemu-40841b2d221273a08abfe20824e7631211ade31d.tar.bz2
Move system image initialization to core.
Change-Id: Ic8da3ccaed9bab7dbb44c0bb341b0dba20b90980
Diffstat (limited to 'android/main-common.c')
-rw-r--r--android/main-common.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/android/main-common.c b/android/main-common.c
index 740f59a..9e5318d 100644
--- a/android/main-common.c
+++ b/android/main-common.c
@@ -1031,13 +1031,7 @@ updateHwConfigFromAVD(AndroidHwConfig* hwConfig,
{
unsigned defaultPartitionSize = convertMBToBytes(66);
- if (_update_hwconfig_path(&hwConfig->disk_systemPartition_initPath, avd, AVD_IMAGE_INITSYSTEM)) {
- dprint("system path %s is invalid", hwConfig->disk_systemPartition_initPath);
- exit(1);
- }
-
_update_hwconfig_path(&hwConfig->disk_dataPartition_path, avd, AVD_IMAGE_USERDATA);
- _update_hwconfig_path(&hwConfig->disk_systemPartition_path, avd, AVD_IMAGE_USERSYSTEM);
_update_hwconfig_path(&hwConfig->disk_dataPartition_path, avd, AVD_IMAGE_INITDATA);
if (opts->partition_size) {
@@ -1057,25 +1051,6 @@ updateHwConfigFromAVD(AndroidHwConfig* hwConfig,
}
defaultPartitionSize = sizeMB * ONE_MB;
}
-
- /* Check the size of the system partition image.
- * If we have an AVD, it must be smaller than
- * the disk.systemPartition.size hardware property.
- *
- * Otherwise, we need to adjust the systemPartitionSize
- * automatically, and print a warning.
- *
- */
- {
- uint64_t systemBytes = avdInfo_getImageFileSize(avd, AVD_IMAGE_INITSYSTEM);
- uint64_t defaultBytes = defaultPartitionSize;
-
- if (defaultBytes == 0 || opts->partition_size)
- defaultBytes = defaultPartitionSize;
- hwConfig->disk_systemPartition_size =
- _adjustPartitionSize("system", systemBytes, defaultBytes, inAndroidBuild);
- }
-
/* Check the size of the /data partition. The only interesting cases here are:
* - when the USERDATA image already exists and is larger than the default
* - when we're wiping data and the INITDATA is larger than the default.