cm: include minor version in CM_VERSION if not 0

Change-Id: I0b7d0227bcb0fc5de831bcb065e087afece89a34
This commit is contained in:
Chirayu Desai 2012-12-04 19:16:48 +05:30 committed by Gerrit Code Review
parent da95d9f44e
commit e6e61634cd

View file

@ -210,7 +210,11 @@ endif
ifdef CM_RELEASE
CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR).$(PRODUCT_VERSION_MAINTENANCE)$(PRODUCT_VERSION_DEVICE_SPECIFIC)-$(CM_BUILD)
else
ifeq ($(PRODUCT_VERSION_MINOR),0)
CM_VERSION := $(PRODUCT_VERSION_MAJOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)-$(CM_BUILD)$(CM_EXTRAVERSION)
else
CM_VERSION := $(PRODUCT_VERSION_MAJOR).$(PRODUCT_VERSION_MINOR)-$(shell date -u +%Y%m%d)-$(CM_BUILDTYPE)-$(CM_BUILD)$(CM_EXTRAVERSION)
endif
endif
PRODUCT_PROPERTY_OVERRIDES += \