From 483e9f45b71458b84ccbbaf658449b58f029a63b Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Mon, 11 Jan 2016 22:21:18 -0600 Subject: Improve sdcard partitioning process -Improve code for partitioning sdcards -Allow user to select a device for partitioning (must be removable) -Use sgdisk to partition sdcards -Set default sizes for ext and swap to 0 -Change increments for ext to 256MB and swap to 64MB Note: sgdisk is included in 6.0. I have included a static prebuilt sgdisk for trees that do not have sgdisk, however the prebuilt sgdisk is a decent bit larger than the old parted binary. The old parted binary is quite old at this point and we only have it for armv7a. sgdisk should be maintained by AOSP and can be built from source so it should work across architectures. Change-Id: Ib80882d9b5776e5e9358b11340fba392e6f1ae09 --- Android.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index 44149736b..0ac82ba99 100644 --- a/Android.mk +++ b/Android.mk @@ -374,7 +374,11 @@ ifneq ($(TW_NO_EXFAT), true) LOCAL_ADDITIONAL_DEPENDENCIES += mkexfatfs fsckexfat endif ifeq ($(BOARD_HAS_NO_REAL_SDCARD),) - LOCAL_ADDITIONAL_DEPENDENCIES += parted + ifeq ($(shell test $(PLATFORM_SDK_VERSION) -gt 22; echo $$?),0) + LOCAL_ADDITIONAL_DEPENDENCIES += sgdisk + else + LOCAL_ADDITIONAL_DEPENDENCIES += sgdisk_static + endif endif ifneq ($(TW_EXCLUDE_ENCRYPTED_BACKUPS), true) LOCAL_ADDITIONAL_DEPENDENCIES += openaes ../openaes/LICENSE -- cgit v1.2.3