diff options
author | David 'Digit' Turner <digit@google.com> | 2009-10-29 14:30:38 -0700 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2009-10-29 14:30:38 -0700 |
commit | def0e542c9cc004a7b83ff965103c34097c0960b (patch) | |
tree | cc22f558fbeb40d43f5cc5965c8c65f3603aded8 /android/main.c | |
parent | dba3a6fdf7ec051143f0d889721f56b2e28803f3 (diff) | |
download | external_qemu-def0e542c9cc004a7b83ff965103c34097c0960b.zip external_qemu-def0e542c9cc004a7b83ff965103c34097c0960b.tar.gz external_qemu-def0e542c9cc004a7b83ff965103c34097c0960b.tar.bz2 |
Remove the disk partition size hardware properties.
Also remove the error/abort message in case an AVD's image files
are larger than the default.
Diffstat (limited to 'android/main.c')
-rw-r--r-- | android/main.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/android/main.c b/android/main.c index 6f73571..6e467b9 100644 --- a/android/main.c +++ b/android/main.c @@ -1772,12 +1772,9 @@ _adjustPartitionSize( const char* description, snprintf(temp, sizeof temp, "(%lld bytes > %lld bytes)", imageBytes, defaultBytes); } - if (!inAndroidBuild) { - derror("%s image file too large for device's hardware configuration %s.\n" - "Aborting !", description, temp); - exit(1); + if (inAndroidBuild) { + dwarning("%s partition size adjusted to match image file %s\n", description, temp); } - dwarning("%s partition size adjusted to match image file %s\n", description, temp); return convertMBToBytes(imageMB); } @@ -2389,7 +2386,7 @@ int main(int argc, char **argv) */ { uint64_t systemBytes = avdInfo_getImageFileSize(avd, AVD_IMAGE_INITSYSTEM); - uint64_t defaultBytes = hw->disk_systemPartition_size; + uint64_t defaultBytes = defaultPartitionSize; if (defaultBytes == 0 || opts->partition_size) defaultBytes = defaultPartitionSize; @@ -2405,7 +2402,7 @@ int main(int argc, char **argv) { const char* dataPath = avdInfo_getImageFile(avd, AVD_IMAGE_USERDATA); - uint64_t defaultBytes = hw->disk_dataPartition_size; + uint64_t defaultBytes = defaultPartitionSize; if (defaultBytes == 0 || opts->partition_size) defaultBytes = defaultPartitionSize; |