qcom: common: Add -s option to calculate size
Add -s option to calculate the total size of folder cdrom_res/ in case it has sub-dirs. Change-Id: I733f46b6abd865aa1e6331683d57b9bca022c561
This commit is contained in:
parent
1121a27d2e
commit
6b41949bf7
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue