From 631904912eb89ce958da87f109330ca911e29cd2 Mon Sep 17 00:00:00 2001 From: Nelson Li Date: Wed, 24 Apr 2024 07:42:21 +0000 Subject: [PATCH] Refactor product inheritance for ripcurrentpro products Add an additional layer of inheritance for `aosp_ripcurrentpro`, and `aosp_ripcurrentpro_fullmte`. This change adds a common layer of inheritance for non-factory products (ripcurrentpro_generic.mk). This makes it easier to configure factory and non-factory products differently. Non-factory `ripcurrentpro` products now inherits from `device/google/caimito/ripcurrentpro_generic.mk` which inherit from `device/google/caimito/device-ripcurrentpro.mk`. aconfig flags: Flag: EXEMPT mechanical refactoring build flags: Flag: EXEMPT mechanical refactoring Bug: 336452008 Bug: 336706040 Test: lunch aosp_ripcurrentpro-trunk_staging-userdebug && m lunch aosp_ripcurrentpro_fullmte-trunk_staging-userdebug && m Change-Id: I852a670a40846722274e2232e390d2ce4235bb6c --- aosp_ripcurrentpro.mk | 2 +- ripcurrentpro_generic.mk | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ripcurrentpro_generic.mk diff --git a/aosp_ripcurrentpro.mk b/aosp_ripcurrentpro.mk index 5a0a013a..b9dece69 100644 --- a/aosp_ripcurrentpro.mk +++ b/aosp_ripcurrentpro.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-ripcurrentpro.mk) +$(call inherit-product, device/google/caimito/ripcurrentpro_generic.mk) PRODUCT_NAME := aosp_ripcurrentpro PRODUCT_DEVICE := ripcurrentpro diff --git a/ripcurrentpro_generic.mk b/ripcurrentpro_generic.mk new file mode 100644 index 00000000..d92fc54c --- /dev/null +++ b/ripcurrentpro_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-ripcurrentpro.mk)