Add image size calcuations into the script

Change-Id: Ide13a873982bae21e2b8735a235389a660abd592
This commit is contained in:
Justin Ho
2011-09-01 13:34:20 -07:00
parent b139b6a1a5
commit bdab41a16f

View File

@@ -595,6 +595,7 @@ INTERNAL_USERIMAGES_BINARY_PATHS := $(sort $(dir $(INTERNAL_USERIMAGES_DEPS)))
define calculate-userimage-ext-size
@echo Calculating image size...
@find $(1) -type f | xargs du -k | sort -gr > $(PRODUCT_OUT)/imagesize-report.txt
@du -s -h -k $(1)
endef
# $(1): src directory