Merge "qcom: common: Add -s option to calculate size"

This commit is contained in:
Linux Build Service Account 2014-02-19 20:01:24 -08:00 committed by Gerrit - the friendly Code Review server
commit 6815498a60
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ endif
CDROM_RES_FILE := $(TARGET_DEVICE_DIR)/cdrom_res
ifneq ($(wildcard $(CDROM_RES_FILE)),)
CDROM_ISO_TARGET := $(PRODUCT_OUT)/system/etc/cdrom_install.iso
CDROM_RES_SIZE := $(shell du -b $(CDROM_RES_FILE) | egrep -o '^[0-9]+')
CDROM_RES_SIZE := $(shell du -bs $(CDROM_RES_FILE) | egrep -o '^[0-9]+')
#At least 300 sectors, 2048Bytes per Sector, set as 310 here
CDROM_MIN_SIZE := 634880
CDROM_CAPACITY_IS_ENOUGH := $(shell expr $(CDROM_RES_SIZE) / $(CDROM_MIN_SIZE))