From bc4d8174e33b32057b5d5488befa4fafb1a05ba5 Mon Sep 17 00:00:00 2001 From: Sasha Smundak Date: Mon, 2 Aug 2021 19:36:33 -0700 Subject: Replace PHONE_CAR_BOARD_CONFIG with more specific PHONE_CAR_BOARD_PRODUCT The statement ``` include $(PHONE_CAR_BOARD_CONFIG) ``` is difficult to translate to the Starlark configuration file. Fortunately, all the potential values of this variable have have similar structure, so ``` PHONE_CAR_BOARD_CONFIG := device/google_car/foo/BoardConfig.mk .... include $(PHONE_CARD_BOARD_CONFIG) ``` can be changed to ``` PHONE_CAR_BOARD_PRODUCT := foo .... include device/google_car/$(PHONE_CAR_BOARD_PRODUCT)/BoardConfig.mk ``` Bug: 190051051 Test: treehugger Change-Id: Icf47e7ca0bf01d6b3ee6d86e144460a41a277939 --- redfin/BoardConfig.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'redfin/BoardConfig.mk') diff --git a/redfin/BoardConfig.mk b/redfin/BoardConfig.mk index d155f40..d149ae2 100644 --- a/redfin/BoardConfig.mk +++ b/redfin/BoardConfig.mk @@ -14,8 +14,8 @@ # limitations under the License. # -ifdef PHONE_CAR_BOARD_CONFIG - include $(PHONE_CAR_BOARD_CONFIG) +ifdef PHONE_CAR_BOARD_PRODUCT + include device/google_car/$(PHONE_CAR_BOARD_PRODUCT)/BoardConfig.mk else TARGET_BOOTLOADER_BOARD_NAME := redfin TARGET_SCREEN_DENSITY := 440 -- cgit v1.2.3