#
-# Copyright (C) 2020 The LineageOS Project
+# Copyright (C) 2020-2021 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.
# See the License for the specific language governing permissions and
# limitations under the License.
-# inherit from common
--include device/motorola/exynos9610-common/BoardConfigCommon.mk
+## Inherit from the common tree
+include device/motorola/exynos9610-common/BoardConfigCommon.mk
+
+## Inherit from the proprietary configuration
+include vendor/motorola/troika/BoardConfigVendor.mk
DEVICE_PATH := device/motorola/troika
-# Assert
+## Assert
TARGET_OTA_ASSERT_DEVICE := troika,one_action
-# Kernel
+## Kernel
TARGET_KERNEL_CONFIG := troika_defconfig
-# Properties
+## Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
-
-# inherit from the proprietary version
-include vendor/motorola/troika/BoardConfigVendor.mk
#
-# Copyright (C) 2020 The LineageOS Project
+# Copyright (C) 2020-2021 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.
# limitations under the License.
#
-# Inherit from common
+# Inherit from the common tree
$(call inherit-product, device/motorola/exynos9610-common/common.mk)
+# Inherit proprietary files
$(call inherit-product, vendor/motorola/troika/troika-vendor.mk)
#
-# Copyright (C) 2020 The LineageOS Project
+# Copyright (C) 2020-2021 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.
# limitations under the License.
#
-# Inherit from those products. Most specific first.
+## Inherit from generic products, most specific first
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base.mk)
-# Inherit from troika device
+## Inherit from troika device
$(call inherit-product, device/motorola/troika/device.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
-# Inherit some common Lineage stuff.
+## Inherit some common Lineage stuff
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
-# Device identifier. This must come after all inclusions
+## Device identifier, this must come after all inclusions
PRODUCT_DEVICE := troika
PRODUCT_NAME := lineage_troika
PRODUCT_BRAND := Motorola
PRODUCT_GMS_CLIENTID_BASE := android-motorola
-# Use the latest approved GMS identifiers
+## Use the latest CTS approved build identifiers
PRODUCT_BUILD_PROP_OVERRIDES += \
PRODUCT_NAME=troika_sprout \
PRIVATE_BUILD_DESC="10/QSBS30.62-29-7/0ea60:user/release-keys"
-# Device proprietary files - from motorola/troika_retail/troika_sprout:10/QSBS30.62-29-11-5/db5cb, unless pinned
+## Device proprietary files - from motorola/troika_retail/troika_sprout:10/QSBS30.62-29-11-5/db5cb, unless pinned
-# camera
+## Camera
vendor/lib/hw/camera.exynos9610.so
vendor/lib/libexynoscamera3.so
vendor/lib64/hw/camera.exynos9610.so
vendor/lib64/libexynoscamera3.so
-# firmware
+## Firmware
vendor/firmware/fimc_is_lib.bin
vendor/firmware/fimc_is_rta.bin
vendor/firmware/himax-hix83112a-hx83112a-0C00-208-troika.bin
vendor/firmware/setfile_16885c.bin
vendor/firmware/setfile_5e9_troika.bin
-# NFC
+## NFC
vendor/etc/sec_s3nrn81_rfreg.bin
-# sensors
+## Sensors
vendor/lib/hw/sensors.troika_sprout.so
vendor/lib/sensors.chub.so
vendor/lib64/hw/sensors.troika_sprout.so
vendor/lib64/sensors.chub.so
-# ril
+## RIL
vendor/lib/libril_sitril.so
vendor/lib/libsitril.so
vendor/lib64/libril_sitril.so
-ro.hardware.sensors=troika_sprout
+## IMEI
ro.radio.imei.sv=13
+
+## Sensors
+ro.hardware.sensors=troika_sprout