vendor/cm: Expose internal revision for platform.

TICKET: CYNGNOS-724
Change-Id: I9d93ca77fd888046cb4733a73ace2ee337c46300
diff --git a/config/common.mk b/config/common.mk
index 8422d5b..64acb50 100644
--- a/config/common.mk
+++ b/config/common.mk
@@ -335,6 +335,13 @@
   CM_PLATFORM_SDK_VERSION := 2
 endif
 
+ifndef CM_PLATFORM_REV
+  # For internal SDK revisions that are hotfixed/patched
+  # Reset after each CM_PLATFORM_SDK_VERSION release
+  # If you are doing a release and this is NOT 0, you are almost certainly doing it wrong
+  CM_PLATFORM_REV := 0
+endif
+
 PRODUCT_PROPERTY_OVERRIDES += \
   ro.cm.display.version=$(CM_DISPLAY_VERSION)
 
@@ -342,6 +349,10 @@
 PRODUCT_PROPERTY_OVERRIDES += \
   ro.cm.build.version.plat.sdk=$(CM_PLATFORM_SDK_VERSION)
 
+# CyanogenMod Platform Internal
+PRODUCT_PROPERTY_OVERRIDES += \
+  ro.cm.build.version.plat.rev=$(CM_PLATFORM_REV)
+
 -include $(WORKSPACE)/build_env/image-auto-bits.mk
 
 -include vendor/cyngn/product.mk