From 64a738e66f2fae5826303eeba223bda53c662b35 Mon Sep 17 00:00:00 2001 From: Arindam Mondal Date: Wed, 5 Jun 2024 11:03:05 +0000 Subject: [PATCH] Refactor product inheritance for tegu products. Add an additional layer of inheritance for tegu products. This change adds a common layer of inheritance for non-factory products (tegu_generic.mk). This makes it easier to configure factory and non-factory products differently. Non-factory `tegu` products now inherits from `device/google/tegu/tegu_generic.mk` which inherit from `device/google/tegu/device-tegu.mk`. FLAG: EXEMPT mechanical refactoring Bug: 336452008 Bug: 345198819 Test: lunch tegu-trunk_staging-userdebug && m Change-Id: I5a48fe09f825ec7d8dff50ff36b1c1b1b1a6fa22 --- aosp_tegu.mk | 2 +- tegu_generic.mk | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 tegu_generic.mk diff --git a/aosp_tegu.mk b/aosp_tegu.mk index f52e085..5647d6d 100644 --- a/aosp_tegu.mk +++ b/aosp_tegu.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/tegu/device-tegu.mk) +$(call inherit-product, device/google/tegu/tegu_generic.mk) PRODUCT_NAME := aosp_tegu PRODUCT_DEVICE := tegu diff --git a/tegu_generic.mk b/tegu_generic.mk new file mode 100644 index 0000000..0c85062 --- /dev/null +++ b/tegu_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/tegu/device-tegu.mk) +