From 0cc2376153dd2563010dae3d327e73ab3c7235b8 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 13 Jul 2018 21:37:56 +0300 Subject: Set a dummy CM_PLATFORM_SDK_VERSION if it doesn't exist * Avoids printing 2 build warnings on every single rebuild of anything when building TWRP inline Change-Id: I5dd3623707c03af0dfe7366f1a77e83762e720b2 --- Android.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Android.mk b/Android.mk index 6eb1cbcd5..9ad3507d9 100755 --- a/Android.mk +++ b/Android.mk @@ -34,6 +34,10 @@ ifneq (,$(filter $(PLATFORM_SDK_VERSION), 21 22)) BOARD_SEPOLICY_UNION += twrp.te endif +ifeq ($(CM_PLATFORM_SDK_VERSION),) + CM_PLATFORM_SDK_VERSION := 0 +endif + include $(CLEAR_VARS) TWRES_PATH := /twres/ -- cgit v1.2.3