summaryrefslogtreecommitdiff
path: root/sdm660_64.mk
diff options
context:
space:
mode:
authorNiranjan Reddy Dumbala <ndumba@codeaurora.org>2017-03-17 17:54:52 +0530
committerVara Prasad A V S G <vavsg@codeaurora.org>2017-03-24 12:13:47 +0530
commitba549c4e0d0f12d153b296fa2b9ed93c0fb67cd2 (patch)
tree2119ebc16f377428e70c8eeeb16c65f2c55b4318 /sdm660_64.mk
parentfad70d44341ff96b5a3580a65685cbad5de263f0 (diff)
SDM660_64: Intial bring up.
Intial bring up changes Change-Id: I789911a6cd9edacdf73df41b39a80b096b9f1077
Diffstat (limited to 'sdm660_64.mk')
-rwxr-xr-xsdm660_64.mk156
1 files changed, 156 insertions, 0 deletions
diff --git a/sdm660_64.mk b/sdm660_64.mk
new file mode 100755
index 0000000..10b7ff8
--- /dev/null
+++ b/sdm660_64.mk
@@ -0,0 +1,156 @@
+DEVICE_PACKAGE_OVERLAYS := device/qcom/sdm660_64/overlay
+TARGET_KERNEL_VERSION := 4.4
+BOARD_FRP_PARTITION_NAME := frp
+BOARD_HAVE_QCOM_FM := true
+#TARGET_USES_QTIC := false # bring-up hack
+TARGET_USES_NQ_NFC := true
+ifeq ($(TARGET_USES_NQ_NFC),true)
+# Flag to enable and support NQ3XX chipsets
+NQ3XX_PRESENT := true
+endif
+
+#QTIC flag
+-include $(QCPATH)/common/config/qtic-config.mk
+
+TARGET_ENABLE_QC_AV_ENHANCEMENTS := true
+# Video codec configuration files
+ifeq ($(TARGET_ENABLE_QC_AV_ENHANCEMENTS), true)
+PRODUCT_COPY_FILES += device/qcom/sdm660_64/media_profiles.xml:system/etc/media_profiles.xml \
+ device/qcom/sdm660_64/media_codecs.xml:system/etc/media_codecs.xml \
+ device/qcom/sdm660_64/media_codecs_performance.xml:system/etc/media_codecs_performance.xml
+endif #TARGET_ENABLE_QC_AV_ENHANCEMENTS
+
+PRODUCT_COPY_FILES += device/qcom/sdm660_64/whitelistedapps.xml:system/vendor/etc/whitelistedapps.xml \
+ device/qcom/sdm660_64/gamedwhitelist.xml:system/vendor/etc/gamedwhitelist.xml \
+ device/qcom/sdm660_64/appboosts.xml:system/vendor/etc/appboosts.xml
+
+$(call inherit-product, device/qcom/common/common64.mk)
+
+PRODUCT_NAME := sdm660_64
+PRODUCT_DEVICE := sdm660_64
+PRODUCT_BRAND := Android
+PRODUCT_MODEL := sdm660 for arm64
+
+# default is nosdcard, S/W button enabled in resource
+PRODUCT_CHARACTERISTICS := nosdcard
+
+# When can normal compile this module, need module owner enable below commands
+# font rendering engine feature switch
+-include $(QCPATH)/common/config/rendering-engine.mk
+ifneq (,$(strip $(wildcard $(PRODUCT_RENDERING_ENGINE_REVLIB))))
+ MULTI_LANG_ENGINE := REVERIE
+# MULTI_LANG_ZAWGYI := REVERIE
+endif
+
+# Enable features in video HAL that can compile only on this platform
+TARGET_USES_MEDIA_EXTENSIONS := true
+
+# WLAN chipset
+WLAN_CHIPSET := qca_cld3
+
+#Android EGL implementation
+PRODUCT_PACKAGES += libGLES_android
+PRODUCT_BOOT_JARS += tcmiface
+PRODUCT_BOOT_JARS += telephony-ext
+
+PRODUCT_PACKAGES += telephony-ext
+
+ifneq ($(strip $(QCPATH)),)
+PRODUCT_BOOT_JARS += WfdCommon
+#Android oem shutdown hook
+PRODUCT_BOOT_JARS += oem-services
+endif
+
+ifeq ($(strip $(BOARD_HAVE_QCOM_FM)),true)
+PRODUCT_BOOT_JARS += qcom.fmradio
+endif #BOARD_HAVE_QCOM_FM
+
+# Audio configuration file
+-include $(TOPDIR)hardware/qcom/audio/configs/sdm660/sdm660.mk
+
+# Sensor HAL conf file
+PRODUCT_COPY_FILES += \
+ device/qcom/sdm660_64/sensors/hals.conf:system/etc/sensors/hals.conf
+
+# WLAN host driver
+ifneq ($(WLAN_CHIPSET),)
+PRODUCT_PACKAGES += $(WLAN_CHIPSET)_wlan.ko
+endif
+
+# WLAN driver configuration file
+PRODUCT_COPY_FILES += \
+ device/qcom/sdm660_64/WCNSS_qcom_cfg.ini:system/etc/wifi/WCNSS_qcom_cfg.ini \
+ device/qcom/sdm660_64/wifi_concurrency_cfg.txt:system/etc/wifi/wifi_concurrency_cfg.txt
+
+PRODUCT_PACKAGES += \
+ wpa_supplicant_overlay.conf \
+ p2p_supplicant_overlay.conf
+
+#ANT+ stack
+PRODUCT_PACKAGES += \
+ AntHalService \
+ libantradio \
+ antradio_app \
+ libvolumelistener
+
+
+# Sensor features
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
+ frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
+ frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
+ frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
+ frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
+ frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
+ frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
+ frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
+ frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:system/etc/permissions/android.hardware.sensor.ambient_temperature.xml \
+ frameworks/native/data/etc/android.hardware.sensor.relative_humidity.xml:system/etc/permissions/android.hardware.sensor.relative_humidity.xml \
+ frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.xml
+
+# FBE support
+PRODUCT_COPY_FILES += \
+ device/qcom/sdm660_64/init.qti.qseecomd.sh:system/bin/init.qti.qseecomd.sh
+
+# MSM IRQ Balancer configuration file
+PRODUCT_COPY_FILES += device/qcom/sdm660_64/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf
+
+# dm-verity configuration
+PRODUCT_SUPPORTS_VERITY := true
+PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/bootdevice/by-name/system
+
+#for android_filesystem_config.h
+PRODUCT_PACKAGES += \
+ fs_config_files
+
+# Add the overlay path
+PRODUCT_PACKAGE_OVERLAYS := $(QCPATH)/qrdplus/Extension/res \
+ $(QCPATH)/qrdplus/globalization/multi-language/res-overlay \
+ $(PRODUCT_PACKAGE_OVERLAYS)
+
+# Enable logdumpd service only for non-perf bootimage
+ifeq ($(findstring perf,$(KERNEL_DEFCONFIG)),)
+ ifeq ($(TARGET_BUILD_VARIANT),user)
+ PRODUCT_DEFAULT_PROPERTY_OVERRIDES+= \
+ ro.logdumpd.enabled=0
+ else
+ PRODUCT_DEFAULT_PROPERTY_OVERRIDES+= \
+ ro.logdumpd.enabled=1
+ endif
+else
+ PRODUCT_DEFAULT_PROPERTY_OVERRIDES+= \
+ ro.logdumpd.enabled=0
+endif
+
+#A/B related packages
+PRODUCT_PACKAGES += update_engine \
+ update_engine_client \
+ update_verifier \
+ bootctrl.sdm660 \
+ brillo_update_payload
+#Boot control HAL test app
+PRODUCT_PACKAGES_DEBUG += bootctl
+
+#FEATURE_OPENGLES_EXTENSION_PACK support string config file
+PRODUCT_COPY_FILES += \
+ frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml