From 71e02ec7d9223c78e8f614519b1ce269ae4f3188 Mon Sep 17 00:00:00 2001 From: Nelson Li Date: Thu, 18 Apr 2024 05:46:40 +0000 Subject: [PATCH] Refactor product inheritance for ripcurrent products Add an additional layer of inheritance for `aosp_ripcurrent` and `aosp_ripcurrent`. This change adds a common layer of inheritance(ripcurrent_generic.mk) for non-factory products. This makes it easier to configure factory and non-factory products differently. non-factory `ripcurrent` products now inherits from `device/google/shusky/ripcurrent_generic.mk` which inherit from `device/google/shusky/device-ripcurrent.mk`. aconfig flags: Flag: EXEMPT mechanical refactoring build flags: Flag: EXEMPT mechanical refactoring Bug: 332219400 Bug: 335564645 Test: lunch factory_ripcurrent-trunk_staging-userdebug && m lunch aosp_ripcurrent-trunk_staging-userdebug && m lunch aosp_ripcurrent_fullmte-trunk_staging-userdebug && m Change-Id: Ieb552a075e35215cb027b6d5a91d84168d9e6a45 --- aosp_ripcurrent.mk | 2 +- ripcurrent_generic.mk | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 ripcurrent_generic.mk diff --git a/aosp_ripcurrent.mk b/aosp_ripcurrent.mk index 83322c4..4a6c484 100644 --- a/aosp_ripcurrent.mk +++ b/aosp_ripcurrent.mk @@ -20,7 +20,7 @@ USE_SWIFTSHADER := true BOARD_USES_SWIFTSHADER := true $(call inherit-product, device/google/zuma/aosp_common.mk) -$(call inherit-product, device/google/shusky/device-ripcurrent.mk) +$(call inherit-product, device/google/shusky/ripcurrent_generic.mk) PRODUCT_NAME := aosp_ripcurrent PRODUCT_DEVICE := ripcurrent diff --git a/ripcurrent_generic.mk b/ripcurrent_generic.mk new file mode 100644 index 0000000..bb1afb3 --- /dev/null +++ b/ripcurrent_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/shusky/device-ripcurrent.mk)