]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/platform-hardware-interfaces.git/commitdiff
matrix: Enforce kernel requirements in OTA only when flag is set.
authorYifan Hong <elsk@google.com>
Thu, 26 Jul 2018 18:42:17 +0000 (11:42 -0700)
committerYifan Hong <elsk@google.com>
Fri, 27 Jul 2018 19:42:28 +0000 (12:42 -0700)
Enforce only when PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS
is set. If a device does want to require kernel configs, it has to
provide info for new kernel in OTA package.
Bug: 111840577
Test: build and manual inspection

Change-Id: I36b3fcd9d14a9795aaf8d020bba6180c5e8681d1

compatibility_matrices/Android.mk

index cadf85b4c87c638b3c9dddbe3373f0c439c26011..826c25457ff2ea598862813e7541b231fc2b129d 100644 (file)
@@ -141,6 +141,10 @@ LOCAL_GEN_FILE_DEPENDENCIES += $(BUILT_VENDOR_MANIFEST)
 LOCAL_ASSEMBLE_VINTF_FLAGS += -c "$(BUILT_VENDOR_MANIFEST)"
 endif
 
+ifneq ($(PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS),true)
+LOCAL_ASSEMBLE_VINTF_FLAGS += --no-kernel-requirements
+endif
+
 include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX)
 BUILT_SYSTEM_MATRIX := $(LOCAL_BUILT_MODULE)