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 | |
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')
-rw-r--r-- | android/avd/hardware-properties.ini | 12 | ||||
-rw-r--r-- | android/avd/hw-config-defs.h | 14 | ||||
-rw-r--r-- | android/main.c | 11 |
3 files changed, 4 insertions, 33 deletions
diff --git a/android/avd/hardware-properties.ini b/android/avd/hardware-properties.ini index b3e486b..615c758 100644 --- a/android/avd/hardware-properties.ini +++ b/android/avd/hardware-properties.ini @@ -124,18 +124,6 @@ default = yes abstract = SD Card support description = Whether the device supports insertion/removal of virtual SD Cards. -# System partition -name = disk.systemPartition.size -type = diskSize -abstract = System partition size -default = 72MB - -# Data partition -name = disk.dataPartition.size -type = diskSize -abstract = Data partition size -default = 66MB - # Cache partition name = disk.cachePartition type = boolean diff --git a/android/avd/hw-config-defs.h b/android/avd/hw-config-defs.h index 069ae23..77cb8fe 100644 --- a/android/avd/hw-config-defs.h +++ b/android/avd/hw-config-defs.h @@ -122,20 +122,6 @@ HWCFG_BOOL( "SD Card support", "Whether the device supports insertion/removal of virtual SD Cards.") -HWCFG_DISKSIZE( - disk_systemPartition_size, - "disk.systemPartition.size", - "72MB", - "System partition size", - "") - -HWCFG_DISKSIZE( - disk_dataPartition_size, - "disk.dataPartition.size", - "66MB", - "Data partition size", - "") - HWCFG_BOOL( disk_cachePartition, "disk.cachePartition", 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; |