Skip to content
Snippets Groups Projects
lineage_beckham.mk 2.14 KiB
Newer Older
Erfan Abdi's avatar
Erfan Abdi committed
#
# Copyright (C) 2017 The LineageOS 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.
#

# Inherit some common Lineage stuff.
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)

$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_o_mr1.mk)
Erfan Abdi's avatar
Erfan Abdi committed

# Device
Jan Dula's avatar
Jan Dula committed
$(call inherit-product, device/motorola/beckham/device.mk)
Erfan Abdi's avatar
Erfan Abdi committed

# A/B updater
AB_OTA_UPDATER := true

AB_OTA_PARTITIONS += \
    boot \
Erfan Abdi's avatar
Erfan Abdi committed
    system \
    vendor
Erfan Abdi's avatar
Erfan Abdi committed

AB_OTA_POSTINSTALL_CONFIG += \
    RUN_POSTINSTALL_system=true \
    POSTINSTALL_PATH_system=system/bin/otapreopt_script \
    FILESYSTEM_TYPE_system=ext4 \
    POSTINSTALL_OPTIONAL_system=true

PRODUCT_PACKAGES += \
    otapreopt_script \
    update_engine \
    update_engine_sideload \
    update_verifier

# The following modules are included in debuggable builds only.
PRODUCT_PACKAGES_DEBUG += \
    bootctl \
    update_engine_client

# Boot control HAL
PRODUCT_PACKAGES += \
    android.hardware.boot@1.0-impl.recovery \
Erfan Abdi's avatar
Erfan Abdi committed
    bootctrl.sdm660 \
    bootctrl.sdm660.recovery
Erfan Abdi's avatar
Erfan Abdi committed

# Recovery
TARGET_RECOVERY_FSTAB := device/motorola/sdm660-common/rootdir/etc/fstab.qcom
Erfan Abdi's avatar
Erfan Abdi committed
# Device identifiers
Jan Dula's avatar
Jan Dula committed
PRODUCT_DEVICE := beckham
PRODUCT_NAME := lineage_beckham
Erfan Abdi's avatar
Erfan Abdi committed
PRODUCT_BRAND := motorola
Jan Dula's avatar
Jan Dula committed
PRODUCT_MODEL := Moto Z3 Play
Erfan Abdi's avatar
Erfan Abdi committed
PRODUCT_MANUFACTURER := Motorola
Jan Dula's avatar
Jan Dula committed
PRODUCT_RELEASE_NAME := beckham
Erfan Abdi's avatar
Erfan Abdi committed

PRODUCT_BUILD_PROP_OVERRIDES += \
Jan Dula's avatar
Jan Dula committed
    PRODUCT_NAME=beckham
Erfan Abdi's avatar
Erfan Abdi committed

Jan Dula's avatar
Jan Dula committed
BUILD_FINGERPRINT := motorola/beckham/beckham:8.1.0/OPWS28.70-56-2/8ad8e:user/release-keys