From 4f1cfc7b35ac65ef1d588bb2fde1250c28d3d380 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Fri, 14 Apr 2023 09:30:21 -0700 Subject: [PATCH] Speed up husky, ripcurrent and shiba 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, abdt for the relevant builds Change-Id: Id5faa1697aa430039a5fa939c4ad8403d641e566 --- device-husky.mk | 3 +++ device-ripcurrent.mk | 3 +++ device-shiba.mk | 3 +++ 3 files changed, 9 insertions(+) diff --git a/device-husky.mk b/device-husky.mk index 3b9c1e5..109c193 100644 --- a/device-husky.mk +++ b/device-husky.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/shusky-kernel TARGET_BOARD_KERNEL_HEADERS := device/google/shusky-kernel/kernel-headers diff --git a/device-ripcurrent.mk b/device-ripcurrent.mk index 162ea4a..580dc61 100644 --- a/device-ripcurrent.mk +++ b/device-ripcurrent.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/shusky-kernel TARGET_BOARD_KERNEL_HEADERS := device/google/shusky-kernel/kernel-headers diff --git a/device-shiba.mk b/device-shiba.mk index 7977d15..4ffd508 100644 --- a/device-shiba.mk +++ b/device-shiba.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/shusky-kernel TARGET_BOARD_KERNEL_HEADERS := device/google/shusky-kernel/kernel-headers