| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2016 The Android Open-Source Project |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # This file includes all definitions that apply to ALL marlin and sailfish devices |
| 18 | # |
| 19 | # Everything in this directory will become public |
| 20 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 21 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 22 | LOCAL_KERNEL := device/google/marlin-kernel/Image.gz-dtb |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 23 | else |
| 24 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 25 | endif |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 26 | |
| 27 | PRODUCT_COPY_FILES += \ |
| 28 | $(LOCAL_KERNEL):kernel |
| 29 | |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 30 | DEVICE_PACKAGE_OVERLAYS := device/google/marlin/overlay |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 31 | |
| Patrick Tjin | ceb7fc4 | 2016-02-04 13:19:39 -0800 | [diff] [blame] | 32 | # Input device files |
| 33 | PRODUCT_COPY_FILES += \ |
| 34 | device/google/marlin/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ |
| 35 | device/google/marlin/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 36 | |
| 37 | # copy customized media_profiles and media_codecs xmls for msm8996 |
| Zhijun He | c3a3639 | 2016-03-21 11:53:45 -0700 | [diff] [blame] | 38 | PRODUCT_COPY_FILES += device/google/marlin/media_profiles.xml:system/etc/media_profiles.xml \ |
| 39 | device/google/marlin/media_codecs.xml:system/etc/media_codecs.xml \ |
| 40 | device/google/marlin/media_codecs_performance.xml:system/etc/media_codecs_performance.xml |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 41 | |
| 42 | # Override heap growth limit due to high display density on device |
| 43 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 44 | dalvik.vm.heapgrowthlimit=256m |
| 45 | $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 46 | $(call inherit-product, device/google/marlin/common/common64.mk) |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 47 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 48 | #Android EGL implementation |
| 49 | PRODUCT_PACKAGES += libGLES_android |
| 50 | |
| 51 | # Audio configuration file |
| 52 | ifeq ($(TARGET_USES_AOSP), true) |
| 53 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 54 | device/google/marlin/common/media/audio_policy.conf:system/etc/audio_policy.conf |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 55 | else |
| 56 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 57 | device/google/marlin/audio_policy.conf:system/etc/audio_policy.conf |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 58 | endif |
| 59 | |
| 60 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 61 | device/google/marlin/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \ |
| 62 | device/google/marlin/audio_effects.conf:system/vendor/etc/audio_effects.conf \ |
| 63 | device/google/marlin/mixer_paths.xml:system/etc/mixer_paths.xml \ |
| vincent_tew | a02fc8a | 2016-03-14 14:47:06 +0800 | [diff] [blame] | 64 | device/google/marlin/mixer_paths_tasha_t50.xml:system/etc/mixer_paths_tasha_t50.xml \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 65 | device/google/marlin/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 66 | device/google/marlin/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \ |
| 67 | device/google/marlin/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \ |
| 68 | device/google/marlin/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \ |
| vincent_tew | a02fc8a | 2016-03-14 14:47:06 +0800 | [diff] [blame] | 69 | device/google/marlin/audio_platform_info.xml:system/etc/audio_platform_info.xml \ |
| 70 | device/google/marlin/audio_platform_info_tasha_t50.xml:system/etc/audio_platform_info_tasha_t50.xml \ |
| 71 | device/google/marlin/tfa98xx.cnt:system/etc/firmware/tfa98xx.cnt |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 72 | |
| 73 | # WLAN driver configuration files |
| 74 | PRODUCT_COPY_FILES += \ |
| Steve Pfetsch | fd66dce | 2016-02-18 09:14:20 -0800 | [diff] [blame] | 75 | device/google/marlin/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \ |
| 76 | device/google/marlin/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 77 | device/google/marlin/WCNSS_cfg.dat:system/etc/firmware/wlan/qca_cld/WCNSS_cfg.dat \ |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 78 | device/google/marlin/WCNSS_qcom_cfg.ini:system/etc/firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 79 | |
| 80 | # MIDI feature |
| 81 | PRODUCT_COPY_FILES += \ |
| 82 | frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml |
| 83 | |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 84 | # Wi-Fi |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 85 | PRODUCT_PACKAGES += \ |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 86 | libwpa_client \ |
| 87 | hostapd \ |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 88 | wpa_supplicant \ |
| Steve Pfetsch | fd66dce | 2016-02-18 09:14:20 -0800 | [diff] [blame] | 89 | wpa_supplicant.conf |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 90 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 91 | # Listen configuration file |
| 92 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 93 | device/google/marlin/listen_platform_info.xml:system/etc/listen_platform_info.xml |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 94 | |
| 95 | #ANT+ stack |
| 96 | PRODUCT_PACKAGES += \ |
| 97 | AntHalService \ |
| 98 | libantradio \ |
| 99 | antradio_app \ |
| 100 | libvolumelistener |
| 101 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 102 | # Sensor features |
| 103 | PRODUCT_COPY_FILES += \ |
| 104 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 105 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ |
| 106 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 107 | frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| 108 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 109 | frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ |
| 110 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \ |
| 111 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \ |
| 112 | frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:system/etc/permissions/android.hardware.sensor.ambient_temperature.xml \ |
| 113 | frameworks/native/data/etc/android.hardware.sensor.relative_humidity.xml:system/etc/permissions/android.hardware.sensor.relative_humidity.xml \ |
| 114 | frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.xml |
| 115 | |
| Trevor Bunker | c463b24 | 2016-02-16 09:49:11 -0800 | [diff] [blame] | 116 | # Common sensor packages |
| 117 | PRODUCT_PACKAGES += \ |
| Andrew Rossignol | 699fdf6 | 2016-02-19 16:34:16 -0800 | [diff] [blame] | 118 | nanoapp_cmd |
| Trevor Bunker | c463b24 | 2016-02-16 09:49:11 -0800 | [diff] [blame] | 119 | |
| Trevor Bunker | 0c8ac7f | 2016-03-28 07:37:55 -0700 | [diff] [blame^] | 120 | # sensor utilities (only for userdebug and eng builds) |
| 121 | ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) |
| 122 | PRODUCT_PACKAGES += \ |
| 123 | nanotool \ |
| 124 | sensortest |
| 125 | endif |
| 126 | |
| Patrick Tjin | ceb7fc4 | 2016-02-04 13:19:39 -0800 | [diff] [blame] | 127 | PRODUCT_COPY_FILES += \ |
| 128 | device/google/marlin/sec_config:system/etc/sec_config |
| 129 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 130 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 131 | device/google/marlin/i2ctest:system/bin/i2ctest \ |
| Trevor Bunker | a6d6df0 | 2016-02-05 08:53:38 -0800 | [diff] [blame] | 132 | device/google/marlin/libftm_lib_i2c_utility.so:system/lib64/libftm_lib_i2c_utility.so |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 133 | |
| 134 | PRODUCT_SUPPORTS_VERITY := true |
| 135 | PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/bootdevice/by-name/system |
| 136 | |
| 137 | #FEATURE_OPENGLES_EXTENSION_PACK support string config file |
| 138 | PRODUCT_COPY_FILES += \ |
| 139 | frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml |
| 140 | |
| 141 | # MSM IRQ Balancer configuration file |
| 142 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 143 | device/google/marlin/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 144 | |
| Jeff Vander Stoep | e0e5795 | 2016-02-29 09:14:01 -0800 | [diff] [blame] | 145 | # init launched script |
| 146 | PRODUCT_COPY_FILES += \ |
| 147 | device/google/marlin/init.class_main.sh:system/bin/init.class_main.sh \ |
| 148 | device/google/marlin/init.qcom.bt.sh:system/bin/init.qcom.bt.sh \ |
| 149 | device/google/marlin/init.qcom.class_core.sh:system/bin/init.qcom.class_core.sh \ |
| 150 | device/google/marlin/init.qcom.post_boot.sh:system/bin/init.qcom.post_boot.sh \ |
| 151 | device/google/marlin/init.qcom.sensors.sh:system/bin/init.qcom.sensors.sh \ |
| 152 | device/google/marlin/init.qcom.sh:system/bin/init.qcom.sh \ |
| 153 | device/google/marlin/init.qcom.usb.sh:system/bin/init.qcom.usb.sh \ |
| 154 | device/google/marlin/init.qcom.zram.sh:system/bin/init.qcom.zram.sh |
| 155 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 156 | # Reduce client buffer size for fast audio output tracks |
| 157 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 158 | af.fast_track_multiplier=1 |
| 159 | |
| 160 | # Low latency audio buffer size in frames |
| 161 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 162 | audio_hal.period_size=192 |
| 163 | |
| 164 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 165 | camera.disable_zsl_mode=1 |
| 166 | |
| Steve Pfetsch | a78cad8 | 2016-02-23 19:31:30 -0800 | [diff] [blame] | 167 | # Set bluetooth soc to rome |
| 168 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 169 | qcom.bluetooth.soc=rome |
| 170 | |
| Mekala Natarajan | 6c439d5 | 2016-03-03 00:59:55 -0800 | [diff] [blame] | 171 | PRODUCT_PROPERTY_OVERRIDES += \ |
| tim.tm_lin | 748d683 | 2016-03-18 22:55:26 +0800 | [diff] [blame] | 172 | persist.cne.feature=1 \ |
| 173 | persist.radio.RATE_ADAPT_ENABLE=1 \ |
| 174 | persist.radio.ROTATION_ENABLE=1 \ |
| tim.tm_lin | 29c3e3c | 2016-03-15 17:46:19 +0800 | [diff] [blame] | 175 | persist.radio.sw_mbn_update=1 \ |
| tim.tm_lin | 748d683 | 2016-03-18 22:55:26 +0800 | [diff] [blame] | 176 | persist.radio.videopause.mode=1 \ |
| 177 | persist.radio.VT_ENABLE=1 \ |
| 178 | persist.radio.VT_HYBRID_ENABLE=1 \ |
| 179 | persist.rcs.supported=1 \ |
| Mekala Natarajan | 6c439d5 | 2016-03-03 00:59:55 -0800 | [diff] [blame] | 180 | rild.libpath=/system/vendor/lib64/libril-qc-qmi-1.so |
| 181 | |
| Vineeta Srivastava | 88b013b | 2016-03-24 17:10:26 -0700 | [diff] [blame] | 182 | # IMS over WiFi |
| 183 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 184 | persist.data.iwlan.enable=true |
| 185 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 186 | PRODUCT_AAPT_CONFIG += xlarge large |
| 187 | |
| 188 | # TODO: move to vendor mk file |
| 189 | ### HTC touch ### |
| 190 | #PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 191 | # vendor/google_devices/marlin/prebuilts/tp_SYN3708.img:system/etc/firmware/synaptics.img |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 192 | |
| kris_chen | f8c1a3a | 2016-03-18 18:36:19 +0800 | [diff] [blame] | 193 | # Fingerprint |
| 194 | PRODUCT_PACKAGES += \ |
| 195 | fingerprintd |
| 196 | |
| 197 | PRODUCT_COPY_FILES += \ |
| 198 | frameworks/native/data/etc/android.hardware.fingerprint.xml:system/etc/permissions/android.hardware.fingerprint.xml |
| 199 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 200 | $(call inherit-product-if-exists, hardware/qcom/msm8996/msm8996.mk) |
| 201 | $(call inherit-product-if-exists, vendor/qcom/gpu/msm8996/msm8996-gpu-vendor.mk) |
| 202 | |
| 203 | # TODO: |
| 204 | # setup dm-verity configs. |
| 205 | # PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/7464900.sdhci/by-name/system |
| 206 | # $(call inherit-product, build/target/product/verity.mk) |
| Jeff Vander Stoep | e0e5795 | 2016-02-29 09:14:01 -0800 | [diff] [blame] | 207 | |