| 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 | |
| 21 | # Enable support for chinook sensorhub |
| Trevor Bunker | a6d6df0 | 2016-02-05 08:53:38 -0800 | [diff] [blame] | 22 | TARGET_USES_CHINOOK_SENSORHUB := true |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 23 | |
| 24 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 25 | LOCAL_KERNEL := device/google/marlin-kernel/Image.gz-dtb |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 26 | else |
| 27 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 28 | endif |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 29 | |
| 30 | PRODUCT_COPY_FILES += \ |
| 31 | $(LOCAL_KERNEL):kernel |
| 32 | |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 33 | DEVICE_PACKAGE_OVERLAYS := device/google/marlin/overlay |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 34 | |
| Patrick Tjin | ceb7fc4 | 2016-02-04 13:19:39 -0800 | [diff] [blame] | 35 | # Input device files |
| 36 | PRODUCT_COPY_FILES += \ |
| 37 | device/google/marlin/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ |
| 38 | device/google/marlin/qpnp_pon.kl:system/usr/keylayout/qpnp_pon.kl |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 39 | |
| 40 | # copy customized media_profiles and media_codecs xmls for msm8996 |
| Ed Tam | 82c05c4 | 2016-02-09 11:29:07 -0800 | [diff] [blame] | 41 | #PRODUCT_COPY_FILES += device/google/marlin/media_profiles.xml:system/etc/media_profiles.xml \ |
| 42 | # device/google/marlin/media_codecs.xml:system/etc/media_codecs.xml \ |
| 43 | # 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] | 44 | |
| 45 | # Override heap growth limit due to high display density on device |
| 46 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 47 | dalvik.vm.heapgrowthlimit=256m |
| 48 | $(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk) |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 49 | $(call inherit-product, device/google/marlin/common/common64.mk) |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 50 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 51 | #Android EGL implementation |
| 52 | PRODUCT_PACKAGES += libGLES_android |
| 53 | |
| 54 | # Audio configuration file |
| 55 | ifeq ($(TARGET_USES_AOSP), true) |
| 56 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 57 | 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] | 58 | else |
| 59 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 60 | device/google/marlin/audio_policy.conf:system/etc/audio_policy.conf |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 61 | endif |
| 62 | |
| 63 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 64 | device/google/marlin/audio_output_policy.conf:system/vendor/etc/audio_output_policy.conf \ |
| 65 | device/google/marlin/audio_effects.conf:system/vendor/etc/audio_effects.conf \ |
| 66 | device/google/marlin/mixer_paths.xml:system/etc/mixer_paths.xml \ |
| 67 | device/google/marlin/mixer_paths_tasha.xml:system/etc/mixer_paths_tasha.xml \ |
| 68 | device/google/marlin/mixer_paths_dtp.xml:system/etc/mixer_paths_dtp.xml \ |
| 69 | device/google/marlin/mixer_paths_i2s.xml:system/etc/mixer_paths_i2s.xml \ |
| 70 | device/google/marlin/aanc_tuning_mixer.txt:system/etc/aanc_tuning_mixer.txt \ |
| 71 | device/google/marlin/audio_platform_info_i2s.xml:system/etc/audio_platform_info_i2s.xml \ |
| 72 | device/google/marlin/sound_trigger_mixer_paths.xml:system/etc/sound_trigger_mixer_paths.xml \ |
| 73 | device/google/marlin/sound_trigger_mixer_paths_wcd9330.xml:system/etc/sound_trigger_mixer_paths_wcd9330.xml \ |
| 74 | device/google/marlin/sound_trigger_platform_info.xml:system/etc/sound_trigger_platform_info.xml \ |
| 75 | device/google/marlin/audio_platform_info.xml:system/etc/audio_platform_info.xml \ |
| 76 | device/google/marlin/AudioBTIDnew.csv:system/etc/AudioBTIDnew.csv \ |
| 77 | device/google/marlin/Tfa98xx.cnt:system/etc/Tfa98xx.cnt \ |
| 78 | device/google/marlin/Tfa98xx2.cnt:system/etc/Tfa98xx2.cnt \ |
| 79 | device/google/marlin/Tfa98xx2_n1b.cnt:system/etc/Tfa98xx2_n1b.cnt \ |
| 80 | device/google/marlin/Tfa98xx_n1b.cnt:system/etc/Tfa98xx_n1b.cnt \ |
| 81 | device/google/marlin/htc_sound_mfg.txt:system/etc/htc_sound_mfg.txt |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 82 | |
| 83 | # WLAN driver configuration files |
| 84 | PRODUCT_COPY_FILES += \ |
| Steve Pfetsch | fd66dce | 2016-02-18 09:14:20 -0800 | [diff] [blame^] | 85 | device/google/marlin/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \ |
| 86 | 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] | 87 | 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] | 88 | 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] | 89 | |
| 90 | # MIDI feature |
| 91 | PRODUCT_COPY_FILES += \ |
| 92 | frameworks/native/data/etc/android.software.midi.xml:system/etc/permissions/android.software.midi.xml |
| 93 | |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 94 | # Wi-Fi |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 95 | PRODUCT_PACKAGES += \ |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 96 | libwpa_client \ |
| 97 | hostapd \ |
| 98 | dhcpcd.conf \ |
| 99 | wpa_supplicant \ |
| Steve Pfetsch | fd66dce | 2016-02-18 09:14:20 -0800 | [diff] [blame^] | 100 | wpa_supplicant.conf |
| Steve Pfetsch | a77d804 | 2016-02-17 13:15:35 -0800 | [diff] [blame] | 101 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 102 | # Listen configuration file |
| 103 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 104 | 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] | 105 | |
| 106 | #ANT+ stack |
| 107 | PRODUCT_PACKAGES += \ |
| 108 | AntHalService \ |
| 109 | libantradio \ |
| 110 | antradio_app \ |
| 111 | libvolumelistener |
| 112 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 113 | # Sensor features |
| 114 | PRODUCT_COPY_FILES += \ |
| 115 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 116 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ |
| 117 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 118 | frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| 119 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 120 | frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ |
| 121 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \ |
| 122 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \ |
| 123 | frameworks/native/data/etc/android.hardware.sensor.ambient_temperature.xml:system/etc/permissions/android.hardware.sensor.ambient_temperature.xml \ |
| 124 | frameworks/native/data/etc/android.hardware.sensor.relative_humidity.xml:system/etc/permissions/android.hardware.sensor.relative_humidity.xml \ |
| 125 | frameworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.hardware.sensor.hifi_sensors.xml |
| 126 | |
| Trevor Bunker | c463b24 | 2016-02-16 09:49:11 -0800 | [diff] [blame] | 127 | # Common sensor packages |
| 128 | PRODUCT_PACKAGES += \ |
| 129 | sensortest |
| 130 | |
| Patrick Tjin | ceb7fc4 | 2016-02-04 13:19:39 -0800 | [diff] [blame] | 131 | PRODUCT_COPY_FILES += \ |
| 132 | device/google/marlin/sec_config:system/etc/sec_config |
| 133 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 134 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 135 | device/google/marlin/i2ctest:system/bin/i2ctest \ |
| Trevor Bunker | a6d6df0 | 2016-02-05 08:53:38 -0800 | [diff] [blame] | 136 | 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] | 137 | |
| 138 | PRODUCT_SUPPORTS_VERITY := true |
| 139 | PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/bootdevice/by-name/system |
| 140 | |
| 141 | #FEATURE_OPENGLES_EXTENSION_PACK support string config file |
| 142 | PRODUCT_COPY_FILES += \ |
| 143 | frameworks/native/data/etc/android.hardware.opengles.aep.xml:system/etc/permissions/android.hardware.opengles.aep.xml |
| 144 | |
| 145 | # MSM IRQ Balancer configuration file |
| 146 | PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 147 | device/google/marlin/msm_irqbalance.conf:system/vendor/etc/msm_irqbalance.conf |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 148 | |
| Patrick Tjin | 19134d0 | 2016-01-27 14:56:57 -0800 | [diff] [blame] | 149 | # Reduce client buffer size for fast audio output tracks |
| 150 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 151 | af.fast_track_multiplier=1 |
| 152 | |
| 153 | # Low latency audio buffer size in frames |
| 154 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 155 | audio_hal.period_size=192 |
| 156 | |
| 157 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 158 | camera.disable_zsl_mode=1 |
| 159 | |
| 160 | PRODUCT_AAPT_CONFIG += xlarge large |
| 161 | |
| 162 | # TODO: move to vendor mk file |
| 163 | ### HTC touch ### |
| 164 | #PRODUCT_COPY_FILES += \ |
| Patrick Tjin | a148bca | 2016-01-29 15:56:38 -0800 | [diff] [blame] | 165 | # 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] | 166 | |
| 167 | $(call inherit-product-if-exists, hardware/qcom/msm8996/msm8996.mk) |
| 168 | $(call inherit-product-if-exists, vendor/qcom/gpu/msm8996/msm8996-gpu-vendor.mk) |
| 169 | |
| 170 | # TODO: |
| 171 | # setup dm-verity configs. |
| 172 | # PRODUCT_SYSTEM_VERITY_PARTITION := /dev/block/platform/soc/7464900.sdhci/by-name/system |
| 173 | # $(call inherit-product, build/target/product/verity.mk) |