Merge "Add build number to apps\' version name for non-platform build" into nyc-dev am: 1059f37377 am: df1fff12fe
am: ac88564f7a

* commit 'ac88564f7aac12b67478deff48feae85126c1ee6':
  Add build number to apps' version name for non-platform build

Change-Id: Iafff4a5776c456a0dee1e4eaf2d484567640f2d4
diff --git a/core/definitions.mk b/core/definitions.mk
index 84fe8e9..4573bdd 100644
--- a/core/definitions.mk
+++ b/core/definitions.mk
@@ -1928,6 +1928,10 @@
 
 # Add BUILD_NUMBER to apps default version name if it's unbundled build.
 ifdef TARGET_BUILD_APPS
+TARGET_BUILD_WITH_APPS_VERSION_NAME := true
+endif
+
+ifdef TARGET_BUILD_WITH_APPS_VERSION_NAME
 APPS_DEFAULT_VERSION_NAME := $(PLATFORM_VERSION)-$(BUILD_NUMBER_FROM_FILE)
 else
 APPS_DEFAULT_VERSION_NAME := $(PLATFORM_VERSION)