From 0701e32750492ecd5cc256200e82328354e597cd Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Fri, 14 Apr 2023 09:44:58 -0700 Subject: [PATCH] Speed up cheetah, cloudripper, pantherand ravenclaw 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: I7d509f93e41aa6018ad597da2da8157b20bce755 --- device-cheetah.mk | 3 +++ device-cloudripper.mk | 3 +++ device-panther.mk | 3 +++ device-ravenclaw.mk | 3 +++ 4 files changed, 12 insertions(+) diff --git a/device-cheetah.mk b/device-cheetah.mk index 07827be..903e4ec 100644 --- a/device-cheetah.mk +++ b/device-cheetah.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/pantah-kernel TARGET_BOARD_KERNEL_HEADERS := device/google/pantah-kernel/kernel-headers diff --git a/device-cloudripper.mk b/device-cloudripper.mk index 447bf2a..92d73b2 100644 --- a/device-cloudripper.mk +++ b/device-cloudripper.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/pantah-kernel TARGET_BOARD_KERNEL_HEADERS := device/google/pantah-kernel/kernel-headers diff --git a/device-panther.mk b/device-panther.mk index deb68b5..0509d9d 100644 --- a/device-panther.mk +++ b/device-panther.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/pantah-kernel TARGET_BOARD_KERNEL_HEADERS := device/google/pantah-kernel/kernel-headers diff --git a/device-ravenclaw.mk b/device-ravenclaw.mk index b3607e7..311b568 100644 --- a/device-ravenclaw.mk +++ b/device-ravenclaw.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/pantah-kernel TARGET_BOARD_KERNEL_HEADERS := device/google/pantah-kernel/kernel-headers