From c2a63a8e0b1f4ada7817ec5a7f1a9b8668ed1389 Mon Sep 17 00:00:00 2001 From: Nelson Li Date: Wed, 24 Apr 2024 09:02:05 +0000 Subject: [PATCH] Refactor product inheritance for komodo products Add an additional layer of inheritance for `aosp_komodo`, and `aosp_komodo_fullmte`. This change adds a common layer of inheritance for non-factory products (komodo_generic.mk). This makes it easier to configure factory and non-factory products differently. Non-factory `komodo` products now inherits from `device/google/caimito/komodo_generic.mk` which inherit from `device/google/caimito/device-komodo.mk`. aconfig flags: Flag: EXEMPT mechanical refactoring build flags: Flag: EXEMPT mechanical refactoring Bug: 336452008 Bug: 336707135 Test: lunch aosp_komodo-trunk_staging-userdebug && m lunch aosp_komodo_fullmte-trunk_staging-userdebug && m Change-Id: I670082760bc6775f18b6f235b9e7c981d3649688 --- aosp_komodo.mk | 2 +- komodo_generic.mk | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 komodo_generic.mk diff --git a/aosp_komodo.mk b/aosp_komodo.mk index 5bd8baf4..22f66114 100644 --- a/aosp_komodo.mk +++ b/aosp_komodo.mk @@ -20,7 +20,7 @@ USE_SWIFTSHADER := false BOARD_USES_SWIFTSHADER := false $(call inherit-product, device/google/zumapro/aosp_common.mk) -$(call inherit-product, device/google/caimito/device-komodo.mk) +$(call inherit-product, device/google/caimito/komodo_generic.mk) PRODUCT_NAME := aosp_komodo PRODUCT_DEVICE := komodo diff --git a/komodo_generic.mk b/komodo_generic.mk new file mode 100644 index 00000000..686ba6c7 --- /dev/null +++ b/komodo_generic.mk @@ -0,0 +1,17 @@ +# +# Copyright 2024 The Android Open-Source Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +$(call inherit-product, device/google/caimito/device-komodo.mk)