Use board config variable BOARD_WIDEVINE_OEMCRYPTO_LEVEL
Instead of grepping out the oemcrypto level from PRODUCT_PACKAGES, which is very fragile. Change-Id: I1ac5b8ace25dd4798d3383304f01496f12193526
This commit is contained in:
@@ -3,10 +3,9 @@ ifneq ($(filter arm x86,$(TARGET_ARCH)),)
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
include $(TOP)/vendor/widevine/proprietary/wvm/common.mk
|
||||
include $(TOP)/vendor/widevine/proprietary/drmwvmplugin/oemcryptolevel.mk
|
||||
include vendor/widevine/proprietary/wvm/common.mk
|
||||
|
||||
ifeq ($(LOCAL_OEMCRYPTO_LEVEL),1)
|
||||
ifeq ($(BOARD_WIDEVINE_OEMCRYPTO_LEVEL),1)
|
||||
LOCAL_CFLAGS := -DREQUIRE_SECURE_BUFFERS
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user