diff options
author | Yifan Hong | 2018-03-28 12:27:10 -0500 |
---|---|---|
committer | Yifan Hong | 2018-03-29 13:29:32 -0500 |
commit | 7d61a8d47b100e6c16deb2b910f4014d7d9b6f28 (patch) | |
tree | d75ec6ec111527741aa68b9d48ea7a73e4175e02 /compatibility_matrices | |
parent | 3693fe4ab595d8059d5135f2dfbed04d53f22861 (diff) | |
download | platform-hardware-interfaces-7d61a8d47b100e6c16deb2b910f4014d7d9b6f28.tar.gz platform-hardware-interfaces-7d61a8d47b100e6c16deb2b910f4014d7d9b6f28.tar.xz platform-hardware-interfaces-7d61a8d47b100e6c16deb2b910f4014d7d9b6f28.zip |
matrix: ENFORCE_NO_UNUSED_HALS
Enforce that all hals in the device manifest are
in framework compatibility matrix -- at build time.
Bug: 65028233
Test: build a phone without DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX.
Change-Id: Ibf220f80ca3621ddbf8288d372d5f40336e45248
Diffstat (limited to 'compatibility_matrices')
-rw-r--r-- | compatibility_matrices/Android.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compatibility_matrices/Android.mk b/compatibility_matrices/Android.mk index dd7165d5..23be7de2 100644 --- a/compatibility_matrices/Android.mk +++ b/compatibility_matrices/Android.mk | |||
@@ -127,6 +127,14 @@ endif | |||
127 | 127 | ||
128 | LOCAL_ASSEMBLE_VINTF_ENV_VARS := PRODUCT_ENFORCE_VINTF_MANIFEST | 128 | LOCAL_ASSEMBLE_VINTF_ENV_VARS := PRODUCT_ENFORCE_VINTF_MANIFEST |
129 | 129 | ||
130 | # TODO(b/65028233): Enforce no "unused HALs" for devices that does not define | ||
131 | # DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE as well | ||
132 | ifeq (true,$(strip $(PRODUCT_ENFORCE_VINTF_MANIFEST))) | ||
133 | ifdef DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE | ||
134 | LOCAL_ASSEMBLE_VINTF_ENV_VARS_OVERRIDE := VINTF_ENFORCE_NO_UNUSED_HALS=true | ||
135 | endif | ||
136 | endif | ||
137 | |||
130 | include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX) | 138 | include $(BUILD_FRAMEWORK_COMPATIBILITY_MATRIX) |
131 | BUILT_SYSTEM_COMPATIBILITY_MATRIX := $(LOCAL_BUILT_MODULE) | 139 | BUILT_SYSTEM_COMPATIBILITY_MATRIX := $(LOCAL_BUILT_MODULE) |
132 | 140 | ||