Skip to content

Commit 099d937

Browse files
committed
penangf: add pb build config
1 parent 3214821 commit 099d937

File tree

3 files changed

+39
-8
lines changed

3 files changed

+39
-8
lines changed

AndroidProducts.mk

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
# limitations under the License.
1515
#
1616

17-
PRODUCT_MAKEFILES := \
17+
PRODUCT_MAKEFILES += \
18+
$(LOCAL_DIR)/pb_penangf.mk \
1819
$(LOCAL_DIR)/twrp_penangf.mk
19-
20-
COMMON_LUNCH_CHOICES := \
21-
twrp_penangf-eng
20+
21+
COMMON_LUNCH_CHOICES += \
22+
pb_penangf-eng \
23+
twrp_penangf-eng

pb_penangf.mk

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#
2+
# Copyright (C) 2025 The TWRP Open Source Project
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
# Inherit from those products. Most specific first.
18+
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
19+
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
20+
21+
# Inherit some common pb stuff.
22+
$(call inherit-product, vendor/pb/config/common.mk)
23+
24+
# Inherit from penangf device
25+
$(call inherit-product, device/motorola/penangf/device.mk)
26+
27+
PRODUCT_DEVICE := penangf
28+
PRODUCT_NAME := pb_penangf
29+
PRODUCT_BRAND := motorola
30+
PRODUCT_MODEL := penangf
31+
PRODUCT_MANUFACTURER := motorola
32+

twrp_penangf.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
1919
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
2020

2121
# Inherit some common twrp stuff.
22-
$(call inherit-product-if-exists, vendor/twrp/config/common.mk)
23-
24-
# Inherit some common pb stuff.
25-
$(call inherit-product-if-exists, vendor/pb/config/common.mk)
22+
$(call inherit-product, vendor/twrp/config/common.mk)
2623

2724
# Inherit from penangf device
2825
$(call inherit-product, device/motorola/penangf/device.mk)

0 commit comments

Comments
 (0)