From 08152516c5540366cb80ba90b2ebdd13df6cff58 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Fri, 14 Apr 2023 11:57:38 -0700 Subject: [PATCH] Speed up felix builds by excluding code that can never be used. Uses the new PRODUCT_SOURCE_ROOT_DIRS flag, and the file list for pixel in vendor/google/products/sources_pixel.mk Test: treehugger, abtd for the relevant buidls Change-Id: Ia82de77b8b90399b1d0527361212acbf649ff3e3 --- device-felix.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device-felix.mk b/device-felix.mk index 68d76ef..f8c2d7c 100644 --- a/device-felix.mk +++ b/device-felix.mk @@ -14,6 +14,9 @@ # limitations under the License. # +# Restrict the visibility of Android.bp files to improve build analysis time +$(call inherit-product-if-exists, vendor/google/products/sources_pixel.mk) + TARGET_KERNEL_DIR ?= device/google/felix-kernel TARGET_BOARD_KERNEL_HEADERS := device/google/felix-kernel/kernel-headers TARGET_RECOVERY_DEFAULT_ROTATION := ROTATION_RIGHT