cm: "Released" means current.

Since mainline devices will always identify as a latest
  release api level (due to userbase volume), make sure
  we check against the current api vs api -1.

Change-Id: I9e9b41a1af5d3a93f58b2e0e0545b979d1cef978
This commit is contained in:
Adnan Begovic 2016-08-17 14:14:11 -07:00
parent 850dd22e12
commit a194731dd4

View File

@ -26,7 +26,7 @@ ifeq (,$(filter true, $(WITHOUT_CHECK_API) $(TARGET_BUILD_PDK)))
droidcore: checkapi-cm droidcore: checkapi-cm
# Validate against previous release platform sdk version api text within prebuilts # Validate against previous release platform sdk version api text within prebuilts
cm_last_released_sdk_version := $(shell echo ${CM_PLATFORM_SDK_VERSION}-1 | bc) cm_last_released_sdk_version := $(CM_PLATFORM_SDK_VERSION)
.PHONY: check-cm-public-api .PHONY: check-cm-public-api
checkapi-cm : check-cm-public-api checkapi-cm : check-cm-public-api