aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNolen Johnson <johnsonnolen@gmail.com>2022-06-18 21:45:23 -0400
committermarcost2 <marcostolcachir@gmail.com>2022-06-22 15:30:43 -0300
commit0f8b2201667d2a1da7b17b9cf25e7919e34a34b5 (patch)
treee52c5dd11117ad17e2e4ea5ccc920a56151c8c82
parent3b183b446b2c9b573dc12fc10a15addad4782ab4 (diff)
addison: Organize product makefiles and remove deprecated flags
Change-Id: I93197378f01bcbc0b68fdfe59d5ce5f299e99c79
-rw-r--r--aicp_addison.mk24
-rw-r--r--device.mk119
-rw-r--r--full_addison.mk13
3 files changed, 73 insertions, 83 deletions
diff --git a/aicp_addison.mk b/aicp_addison.mk
index f1f583c..d9afdb9 100644
--- a/aicp_addison.mk
+++ b/aicp_addison.mk
@@ -1,6 +1,6 @@
#
# Copyright (C) 2016 The CyanogenMod Project
-# Copyright (C) 2017 The LineageOS Project
+# Copyright (C) 2017-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.
@@ -15,34 +15,28 @@
# limitations under the License.
-# Inherit from those products. Most specific first.
+# Inherit from device product
$(call inherit-product, device/motorola/addison/full_addison.mk)
-
-# Inherit from those products. Most specific first.
+# Inherit from core 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)
-$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_m.mk)
-$(call inherit-product, vendor/aicp/config/common_full_phone.mk)
+$(call inherit-product, vendor/aicp/config/common_full_phone.mk)
-# Boot animation
+# Boot Animation
TARGET_SCREEN_WIDTH := 1080
TARGET_SCREEN_HEIGHT := 1920
TARGET_BOOTANIMATION_HALF_RES := true
-## Device identifier. This must come after all inclusions
+## Device identifier - This must come after all inclusions
PRODUCT_DEVICE := addison
-PRODUCT_NAME := aicp_addison
PRODUCT_BRAND := Motorola
-PRODUCT_MODEL := Moto Z Play
PRODUCT_MANUFACTURER := Motorola
-PRODUCT_RELEASE_NAME := addison
+PRODUCT_MODEL := Moto Z Play
+PRODUCT_NAME := aicp_addison
PRODUCT_GMS_CLIENTID_BASE := android-motorola
-PRODUCT_ENFORCE_RRO_TARGETS := \
- framework-res
-
PRODUCT_BUILD_PROP_OVERRIDES += \
PRIVATE_BUILD_DESC="addison_retail-user 8.0.0 OPNS27.76-12-22-9 10 release-keys" \
PRODUCT_NAME="Moto Z Play" \
@@ -53,5 +47,3 @@ PRODUCT_OVERRIDE_INFO := true
PRODUCT_OVERRIDE_FINGERPRINT := google/walleye/walleye:8.1.0/OPM1.171019.011/4448085:user/release-keys
BUILD_FINGERPRINT := "motorola/addison_retail/addison:8.0.0/OPNS27.76-12-22-9/10:user/release-keys"
- # for specific
-$(call inherit-product, vendor/motorola/addison/addison-vendor.mk)
diff --git a/device.mk b/device.mk
index 8c53906..80e4696 100644
--- a/device.mk
+++ b/device.mk
@@ -1,6 +1,6 @@
#
# Copyright (C) 2016 The CyanogenMod Project
-# Copyright (C) 2017 The LineageOS Project
+# Copyright (C) 2017-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.
@@ -14,18 +14,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-# Properties
-include device/motorola/addison/vendor_prop.mk
+# Include Proprietary Components
+$(call inherit-product, vendor/motorola/addison/addison-vendor.mk)
-# Overlay
-DEVICE_PACKAGE_OVERLAYS += \
- $(LOCAL_PATH)/overlay \
-
-# Screen density
-PRODUCT_AAPT_PREF_CONFIG := xxhdpi
+# AAPT
PRODUCT_AAPT_CONFIG := normal
+PRODUCT_AAPT_PREF_CONFIG := xxhdpi
-# Additional native libraries
+# Additional Native Libraries
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
@@ -62,17 +58,17 @@ PRODUCT_PACKAGES += \
android.hardware.bluetooth@1.0 \
vendor.qti.hardware.btconfigstore@1.0.vendor
-#Camera
+# Camera
PRODUCT_PACKAGES += \
+ Snap \
android.hardware.camera.device@3.5 \
android.hardware.camera.provider@2.5 \
android.hardware.camera.provider@2.4-impl \
android.hardware.camera.provider@2.4-service \
- vendor.qti.hardware.camera.device@1.0 \
camera.device@3.2-impl \
libbson.vendor \
- Snap \
- libwui
+ libwui \
+ vendor.qti.hardware.camera.device@1.0
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/camera/msm8953_mot_camera.xml:$(TARGET_COPY_OUT_VENDOR)/etc/camera/msm8953_mot_camera.xml \
@@ -81,11 +77,7 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/camera/ov5693_chromatix.xml:$(TARGET_COPY_OUT_VENDOR)/etc/camera/ov5693_chromatix.xml \
$(LOCAL_PATH)/configs/camera/ov16860_chromatix.xml:$(TARGET_COPY_OUT_VENDOR)/etc/camera/ov16860_chromatix.xml \
-# Component overrides
-PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
-
-#CNE
+# CNE
PRODUCT_PACKAGES += \
libcnefeatureconfig
@@ -94,6 +86,10 @@ PRODUCT_PACKAGES += \
com.android.media.swcodec \
libsfplugin_ccodec
+# Component Overrides
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
+
# Display
PRODUCT_PACKAGES += \
android.hardware.graphics.allocator@2.0-impl \
@@ -106,9 +102,9 @@ PRODUCT_PACKAGES += \
hwcomposer.msm8953 \
memtrack.msm8953 \
libdisplayconfig \
+ libtinyxml \
libqdMetaData.system \
- libvulkan \
- libtinyxml
+ libvulkan
# DRM
PRODUCT_PACKAGES += \
@@ -123,7 +119,7 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/idc/fpc1020.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/fpc1020.idc
-# Gatekeeper HAL
+# Gatekeeper
PRODUCT_PACKAGES += \
android.hardware.gatekeeper@1.0-impl \
android.hardware.gatekeeper@1.0-service
@@ -148,7 +144,7 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/gps/etc/sap.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sap.conf \
$(LOCAL_PATH)/gps/etc/xtwifi.conf:$(TARGET_COPY_OUT_VENDOR)/etc/xtwifi.conf
-# HW crypto
+# Hardware Crypto
PRODUCT_PACKAGES += \
vendor.qti.hardware.cryptfshw@1.0-service-qti.qsee
@@ -188,7 +184,7 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/keylayout/fpc1020.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/fpc1020.kl
-# Keymaster HAL
+# Keymaster
PRODUCT_PACKAGES += \
android.hardware.keymaster@3.0-impl \
android.hardware.keymaster@3.0-service
@@ -203,7 +199,7 @@ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_codecs/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \
$(LOCAL_PATH)/configs/media_codecs/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
-# Media Google
+# Media (Google)
PRODUCT_COPY_FILES += \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
@@ -223,11 +219,11 @@ PRODUCT_PACKAGES += \
# NFC
PRODUCT_PACKAGES += \
- android.hardware.nfc@1.1-service \
- com.android.nfc_extras \
- SecureElement \
NfcNci \
- Tag
+ SecureElement \
+ Tag \
+ android.hardware.nfc@1.1-service \
+ com.android.nfc_extras
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nci.conf \
@@ -251,15 +247,9 @@ PRODUCT_PACKAGES += \
libOmxVidcCommon \
libstagefrighthw
-# Power
-PRODUCT_PACKAGES += \
- android.hardware.power-service-qti \
- android.hardware.power.stats@1.0-service.mock \
- vendor.qti.hardware.perf@2.0.vendor
-
-# Powerhint configuration file
-PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
+# Overlay
+DEVICE_PACKAGE_OVERLAYS += \
+ $(LOCAL_PATH)/overlay
# Permissions
PRODUCT_COPY_FILES += \
@@ -297,14 +287,23 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.sip.voip.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.sip.voip.xml \
frameworks/native/data/etc/android.hardware.opengles.aep.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.opengles.aep.xml
-# QMI
-PRODUCT_PACKAGES += \
- libjson
-
# PocketMode
PRODUCT_PACKAGES += \
MotoPocketMode
+# Power
+PRODUCT_PACKAGES += \
+ android.hardware.power-service-qti \
+ android.hardware.power.stats@1.0-service.mock \
+ vendor.qti.hardware.perf@2.0.vendor
+
+# Powerhint configuration file
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/configs/powerhint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.xml
+
+# Properties
+include device/motorola/addison/vendor_prop.mk
+
# Protobuf
PRODUCT_PACKAGES += \
libprotobuf-cpp-full-vendorcompat \
@@ -313,6 +312,10 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
prebuilts/vndk/v28/arm64/arch-arm-armv8-a/shared/vndk-core/libprotobuf-cpp-lite.so:$(TARGET_COPY_OUT_VENDOR)/lib/libprotobuf-cpp-lite-v28.so
+# QMI
+PRODUCT_PACKAGES += \
+ libjson
+
# QTI
PRODUCT_PACKAGES += \
libqti_vndfwk_detect \
@@ -337,24 +340,24 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
fstab_ramdisk.qcom \
fstab.qcom \
+ init.addison.rc \
init.mmi.rc \
init.mmi.usb.rc \
init.qcom.rc \
- init.recovery.qcom.rc \
- init.addison.rc
+ init.recovery.qcom.rc
PRODUCT_PACKAGES += \
init.qcom.sh \
- wlan_carrier_bin.sh \
init.gbmods.sh \
init.qcom.early_boot.sh \
- init.qcom.sensors.sh \
init.qcom.post_boot.sh \
+ init.qcom.sensors.sh \
+ wlan_carrier_bin.sh
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/ueventd.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc
-# RenderScript HAL
+# RenderScript
PRODUCT_PACKAGES += \
android.hardware.renderscript@1.0-impl
@@ -379,21 +382,19 @@ PRODUCT_COPY_FILES += \
# Shims
PRODUCT_PACKAGES += \
- libqsapshim \
+ libcutils_shim \
libjustshoot_shim \
libmemset_shim \
- libcutils_shim
+ libqsapshim
+
+# Shipping API
+$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_m.mk)
# Soong
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)
# Speed profile services and wifi-service to reduce RAM and storage
PRODUCT_SYSTEM_SERVER_COMPILER_FILTER := speed-profile
-PRODUCT_USE_PROFILE_FOR_BOOT_IMAGE := true
-PRODUCT_DEX_PREOPT_BOOT_IMAGE_PROFILE_LOCATION := frameworks/base/config/boot-image-profile.txt
-USE_DEX2OAT_DEBUG := false
-PRODUCT_MINIMIZE_JAVA_DEBUG_INFO := true
-PRODUCT_ART_TARGET_INCLUDE_DEBUG_BUILD := false
# Tethering
PRODUCT_PACKAGES += \
@@ -409,7 +410,7 @@ PRODUCT_PACKAGES += \
PRODUCT_BOOT_JARS += \
telephony-ext
-# USB HAL
+# USB
PRODUCT_PACKAGES += \
android.hardware.usb@1.0-service.basic
@@ -423,8 +424,9 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.vibrator@1.0-service.addison
-# Wifi
+# Wi-Fi
PRODUCT_PACKAGES += \
+ WifiOverlay \
android.hardware.wifi@1.0-service \
hostapd \
hostapd_cli \
@@ -434,14 +436,13 @@ PRODUCT_PACKAGES += \
libwpa_client \
wcnss_service \
wificond \
- WifiOverlay \
wpa_supplicant \
wpa_supplicant.conf
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/wifi/WCNSS_cfg.dat:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_cfg.dat \
+ $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini \
$(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \
- $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
- $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/firmware/wlan/prima/WCNSS_qcom_cfg.ini
+ $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf
diff --git a/full_addison.mk b/full_addison.mk
index 38cca56..e6fd257 100644
--- a/full_addison.mk
+++ b/full_addison.mk
@@ -14,16 +14,13 @@
# limitations under the License.
#
-# Inherit from those products. Most specific first.
+# # Inherit from device product
+$(call inherit-product, device/motorola/addison/device.mk)
+
+# 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 addison device
-$(call inherit-product, device/motorola/addison/device.mk)
-
-# Device identifier. This must come after all inclusions
+# Device identifier - This must come after all inclusions
PRODUCT_DEVICE := addison
PRODUCT_NAME := full_addison
-
-# for specific
-$(call inherit-product, vendor/motorola/addison/addison-vendor.mk)