diff --git a/Android.mk b/Android.mk index e69de29..55edc80 100644 --- a/Android.mk +++ b/Android.mk @@ -0,0 +1,21 @@ +# +# Copyright (C) 2022 The LineageOS 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. +# + +LOCAL_PATH := $(call my-dir) + +ifeq ($(TARGET_DEVICE),pstar) +include $(call all-makefiles-under,$(LOCAL_PATH)) +endif \ No newline at end of file diff --git a/AndroidProducts.mk b/AndroidProducts.mk index e69de29..676a5bb 100644 --- a/AndroidProducts.mk +++ b/AndroidProducts.mk @@ -0,0 +1,23 @@ +# +# Copyright (C) 2022 The LineageOS 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. +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/lineage_pstar.mk + +COMMON_LUNCH_CHOICES := \ + lineage_pstar-user \ + lineage_pstar-userdebug \ + lineage_pstar-eng \ No newline at end of file diff --git a/device.mk b/device.mk index e69de29..87a0541 100644 --- a/device.mk +++ b/device.mk @@ -0,0 +1,15 @@ +# +# Copyright (C) 2022 The LineageOS 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. +# \ No newline at end of file diff --git a/lineage_pstar.mk b/lineage_pstar.mk index e69de29..edb12fe 100644 --- a/lineage_pstar.mk +++ b/lineage_pstar.mk @@ -0,0 +1,40 @@ +# +# Copyright (C) 2022 The LineageOS 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. +# + +# Inherit from those products. Most specific first. +$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) +$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) + +# Inherit from pstar device +$(call inherit-product, device/motorola/pstar/device.mk) + +# Inherit some common Lineage stuff. +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +PRODUCT_NAME := lineage_pstar +PRODUCT_DEVICE := pstar +PRODUCT_MANUFACTURER := Motorola +PRODUCT_BRAND := Motorola +PRODUCT_MODEL := XT2153-1 + +PRODUCT_GMS_CLIENTID_BASE := android-motorola + +PRODUCT_BUILD_PROP_OVERRIDES += \ + PRODUCT_DEVICE=pstar \ + PRODUCT_NAME=pstar_retail \ + PRIVATE_BUILD_DESC="pstar_retail-user 11 RRA31.Q3-19-19 d30cf release-keys" + +BUILD_FINGERPRINT := motorola/pstar_retail/pstar:11/RRA31.Q3-19-19/d30cf:user/release-keys \ No newline at end of file