Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2013 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 | |
Ying Wang | 1a2cb21 | 2013-11-25 13:43:35 -0800 | [diff] [blame] | 17 | PRODUCT_PACKAGES := \ |
| 18 | libwpa_client \ |
| 19 | hostapd \ |
| 20 | wpa_supplicant \ |
| 21 | wpa_supplicant.conf |
| 22 | |
Colin Cross | 11a18c2 | 2014-02-19 17:49:10 -0800 | [diff] [blame] | 23 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
Rom Lemarchand | 5ec4321 | 2014-03-21 13:37:22 -0700 | [diff] [blame] | 24 | LOCAL_KERNEL := device/htc/flounder-kernel/Image.gz-dtb |
Colin Cross | 11a18c2 | 2014-02-19 17:49:10 -0800 | [diff] [blame] | 25 | else |
| 26 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 27 | endif |
| 28 | |
JP Abgrall | 03190ca | 2014-06-17 18:30:51 -0700 | [diff] [blame] | 29 | BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs |
JP Abgrall | 03190ca | 2014-06-17 18:30:51 -0700 | [diff] [blame] | 30 | |
| 31 | # This ensures the needed build tools are available. |
| 32 | TARGET_USERIMAGES_USE_F2FS := true |
| 33 | LOCAL_FSTAB := $(LOCAL_PATH)/fstab.flounder |
| 34 | |
| 35 | |
| 36 | TARGET_RECOVERY_FSTAB = $(LOCAL_FSTAB) |
| 37 | |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 38 | PRODUCT_COPY_FILES := \ |
| 39 | $(LOCAL_KERNEL):kernel \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 40 | $(LOCAL_PATH)/init.flounder.rc:root/init.flounder.rc \ |
| 41 | $(LOCAL_PATH)/init.flounder.usb.rc:root/init.flounder.usb.rc \ |
JP Abgrall | e34d0fd | 2014-04-29 15:26:03 -0700 | [diff] [blame] | 42 | $(LOCAL_PATH)/init.recovery.flounder.rc:root/init.recovery.flounder.rc \ |
JP Abgrall | 03190ca | 2014-06-17 18:30:51 -0700 | [diff] [blame] | 43 | $(LOCAL_FSTAB):root/fstab.flounder \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 44 | $(LOCAL_PATH)/ueventd.flounder.rc:root/ueventd.flounder.rc |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 45 | |
JP Abgrall | e34d0fd | 2014-04-29 15:26:03 -0700 | [diff] [blame] | 46 | # Copy flounder files as flounder64 so that ${ro.hardware} can find them |
Colin Cross | 2e4e82b | 2014-01-31 18:41:57 -0800 | [diff] [blame] | 47 | PRODUCT_COPY_FILES += \ |
Colin Cross | 11a18c2 | 2014-02-19 17:49:10 -0800 | [diff] [blame] | 48 | $(LOCAL_PATH)/init.flounder.rc:root/init.flounder64.rc \ |
Colin Cross | 2e4e82b | 2014-01-31 18:41:57 -0800 | [diff] [blame] | 49 | $(LOCAL_PATH)/init.flounder.usb.rc:root/init.flounder64.usb.rc \ |
JP Abgrall | 03190ca | 2014-06-17 18:30:51 -0700 | [diff] [blame] | 50 | $(LOCAL_FSTAB):root/fstab.flounder64 \ |
JP Abgrall | e34d0fd | 2014-04-29 15:26:03 -0700 | [diff] [blame] | 51 | $(LOCAL_PATH)/init.recovery.flounder.rc:root/init.recovery.flounder64.rc \ |
Colin Cross | 2e4e82b | 2014-01-31 18:41:57 -0800 | [diff] [blame] | 52 | $(LOCAL_PATH)/ueventd.flounder.rc:root/ueventd.flounder64.rc |
| 53 | |
Colin Cross | 11a18c2 | 2014-02-19 17:49:10 -0800 | [diff] [blame] | 54 | PRODUCT_COPY_FILES += \ |
Daniel Rosenberg | 4cefd4a | 2014-06-09 17:50:22 -0700 | [diff] [blame^] | 55 | $(LOCAL_PATH)/touch/touch_fusion.cfg:$(TARGET_COPY_OUT_VENDOR)/firmware/touch_fusion.cfg \ |
| 56 | $(LOCAL_PATH)/touch/maxim_fp35.bin:$(TARGET_COPY_OUT_VENDOR)/firmware/maxim_fp35.bin \ |
Colin Cross | 11a18c2 | 2014-02-19 17:49:10 -0800 | [diff] [blame] | 57 | $(LOCAL_PATH)/touch/touch_fusion.idc:system/usr/idc/touch_fusion.idc \ |
Daniel Rosenberg | 4cefd4a | 2014-06-09 17:50:22 -0700 | [diff] [blame^] | 58 | $(LOCAL_PATH)/touch/touch_fusion:$(TARGET_COPY_OUT_VENDOR)/bin/touch_fusion \ |
tai_kuo | d80b43b | 2014-05-26 10:44:18 +0800 | [diff] [blame] | 59 | $(LOCAL_PATH)/touch/synaptics-dsx.idc:system/usr/idc/synaptics-dsx.idc |
Colin Cross | 11a18c2 | 2014-02-19 17:49:10 -0800 | [diff] [blame] | 60 | |
Colin Cross | ebdbcb2 | 2013-10-10 15:58:21 -0700 | [diff] [blame] | 61 | PRODUCT_PACKAGES += \ |
Dmitry Shmidt | c63232c | 2013-12-12 11:07:43 -0800 | [diff] [blame] | 62 | libwpa_client \ |
| 63 | hostapd \ |
| 64 | wpa_supplicant \ |
| 65 | wpa_supplicant.conf |
| 66 | |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 67 | PRODUCT_COPY_FILES += \ |
| 68 | frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \ |
| 69 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 70 | frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
Dmitry Shmidt | 9f7dabd | 2014-03-24 14:50:02 -0700 | [diff] [blame] | 71 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ |
Yogesh Agrawal | 9240c1a | 2013-10-16 15:13:32 +0530 | [diff] [blame] | 72 | frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \ |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 73 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 74 | frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| 75 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
| 76 | frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ |
| 77 | frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ |
| 78 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 79 | frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ |
| 80 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ |
| 81 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 82 | frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
Andy Chuang | 729d841 | 2014-05-05 18:46:37 +0800 | [diff] [blame] | 83 | frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \ |
| 84 | frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \ |
Colin Cross | 5a451b8 | 2013-12-26 17:50:09 -0800 | [diff] [blame] | 85 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ |
| 86 | frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \ |
| 87 | frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ |
Thomas.TT_Lin | 9b0e823 | 2014-05-28 21:27:32 +0800 | [diff] [blame] | 88 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \ |
| 89 | frameworks/native/data/etc/android.hardware.bluetooth.xml:system/etc/permissions/android.hardware.bluetooth.xml \ |
| 90 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 91 | |
Dmitry Shmidt | c4a032a | 2013-10-09 14:57:38 -0700 | [diff] [blame] | 92 | PRODUCT_COPY_FILES += \ |
Lajos Molnar | 4389f09 | 2014-03-19 14:45:02 -0700 | [diff] [blame] | 93 | frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \ |
| 94 | frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 95 | $(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml \ |
| 96 | $(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \ |
Eric Laurent | e9b8820 | 2013-12-17 17:57:18 -0800 | [diff] [blame] | 97 | $(LOCAL_PATH)/audio_policy.conf:system/etc/audio_policy.conf \ |
| 98 | $(LOCAL_PATH)/mixer_paths_1.xml:system/etc/mixer_paths_1.xml \ |
| 99 | $(LOCAL_PATH)/mixer_paths_0.xml:system/etc/mixer_paths_0.xml |
Yogesh Agrawal | 9240c1a | 2013-10-16 15:13:32 +0530 | [diff] [blame] | 100 | |
Ira | 354a098 | 2014-04-09 18:06:28 +0800 | [diff] [blame] | 101 | |
| 102 | PRODUCT_COPY_FILES += \ |
| 103 | $(LOCAL_PATH)/enctune.conf:system/etc/enctune.conf |
| 104 | |
Yogesh Agrawal | 9240c1a | 2013-10-16 15:13:32 +0530 | [diff] [blame] | 105 | PRODUCT_COPY_FILES += \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 106 | $(LOCAL_PATH)/nvaudio_conf.xml:system/etc/nvaudio_conf.xml \ |
Alex Ray | 016f3a1 | 2013-10-23 17:02:11 -0700 | [diff] [blame] | 107 | $(LOCAL_PATH)/nvcamera.conf:system/etc/nvcamera.conf \ |
Dmitry Shmidt | e2ab8f6 | 2014-05-29 13:11:00 -0700 | [diff] [blame] | 108 | $(LOCAL_PATH)/bcmdhd.cal:system/etc/wifi/bcmdhd.cal \ |
| 109 | $(LOCAL_PATH)/bcmdhd_lte.cal:system/etc/wifi/bcmdhd_lte.cal |
Dmitry Shmidt | c4a032a | 2013-10-09 14:57:38 -0700 | [diff] [blame] | 110 | |
edwin_tung | e98db7e | 2013-12-05 12:08:00 +0800 | [diff] [blame] | 111 | PRODUCT_COPY_FILES += \ |
edwin_tung | ac7b5c1 | 2014-01-24 19:46:58 +0800 | [diff] [blame] | 112 | $(LOCAL_PATH)/gps/bcm/gps.bcm47521.conf:system/etc/gps.bcm47521.conf \ |
| 113 | $(LOCAL_PATH)/gps/bcm/glgps:system/bin/glgps \ |
| 114 | $(LOCAL_PATH)/gps/bcm/gpsconfig.xml:system/etc/gpsconfig.xml \ |
edwin_tung | 0796554 | 2014-06-03 20:56:49 +0800 | [diff] [blame] | 115 | $(LOCAL_PATH)/gps/bcm/lib64/gps.bcm47521.so:system/lib64/hw/gps.bcm47521.so \ |
edwin_tung | ac7b5c1 | 2014-01-24 19:46:58 +0800 | [diff] [blame] | 116 | $(LOCAL_PATH)/gps/bcm/gps.bcm47521.so:system/lib/hw/gps.bcm47521.so |
edwin_tung | e98db7e | 2013-12-05 12:08:00 +0800 | [diff] [blame] | 117 | |
Martijn Coenen | ce78914 | 2014-02-25 10:50:01 -0800 | [diff] [blame] | 118 | # NFC feature + config files |
| 119 | PRODUCT_COPY_FILES += \ |
| 120 | frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ |
| 121 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \ |
| 122 | device/htc/flounder/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \ |
| 123 | device/htc/flounder/nfc/libnfc-brcm-20795a10.conf:system/etc/libnfc-brcm-20795a10.conf |
| 124 | |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 125 | PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi |
| 126 | PRODUCT_AAPT_PREF_CONFIG := xhdpi |
| 127 | |
| 128 | PRODUCT_CHARACTERISTICS := tablet,nosdcard |
| 129 | |
Mohamad Ayyash | 160974a | 2014-06-12 18:00:26 -0700 | [diff] [blame] | 130 | ifneq ($(filter volantis volantisf, $(TARGET_PRODUCT)),) |
| 131 | # Wifi-Only overlays. |
| 132 | DEVICE_PACKAGE_OVERLAYS := \ |
| 133 | $(LOCAL_PATH)/wifi_only_overlay \ |
| 134 | $(LOCAL_PATH)/overlay |
| 135 | else |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 136 | DEVICE_PACKAGE_OVERLAYS := \ |
Colin Cross | 6e6bad2 | 2013-10-18 10:52:53 -0700 | [diff] [blame] | 137 | $(LOCAL_PATH)/overlay |
Mohamad Ayyash | 160974a | 2014-06-12 18:00:26 -0700 | [diff] [blame] | 138 | endif |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 139 | |
| 140 | PRODUCT_TAGS += dalvik.gc.type-precise |
| 141 | |
Colin Cross | 5a451b8 | 2013-12-26 17:50:09 -0800 | [diff] [blame] | 142 | # NFC packages |
Martijn Coenen | ce78914 | 2014-02-25 10:50:01 -0800 | [diff] [blame] | 143 | # Note: NFC HAL is built with $(TARGET_DEVICE), so this |
| 144 | # includes both flounder and flounder64 HALs to support both |
Colin Cross | 5a451b8 | 2013-12-26 17:50:09 -0800 | [diff] [blame] | 145 | PRODUCT_PACKAGES += \ |
Martijn Coenen | ce78914 | 2014-02-25 10:50:01 -0800 | [diff] [blame] | 146 | nfc_nci.flounder \ |
| 147 | nfc_nci.flounder64 \ |
Colin Cross | 5a451b8 | 2013-12-26 17:50:09 -0800 | [diff] [blame] | 148 | NfcNci \ |
| 149 | Tag \ |
Colin Cross | 5a451b8 | 2013-12-26 17:50:09 -0800 | [diff] [blame] | 150 | |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 151 | PRODUCT_PACKAGES += \ |
| 152 | librs_jni \ |
| 153 | com.android.future.usb.accessory |
| 154 | |
| 155 | PRODUCT_PACKAGES += \ |
Colin Cross | 5b94bde | 2013-10-10 14:56:56 -0700 | [diff] [blame] | 156 | power.flounder \ |
Andy Chuang | 92af8b2 | 2014-03-14 18:38:17 +0800 | [diff] [blame] | 157 | lights.flounder \ |
| 158 | sensors.flounder |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 159 | |
| 160 | # Filesystem management tools |
| 161 | PRODUCT_PACKAGES += \ |
Daniel Rosenberg | d5da7ff | 2014-06-11 13:03:36 -0700 | [diff] [blame] | 162 | fsck.f2fs mkfs.f2fs |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 163 | |
| 164 | PRODUCT_PROPERTY_OVERRIDES := \ |
| 165 | wifi.interface=wlan0 \ |
| 166 | ro.opengles.version=196608 \ |
| 167 | ro.sf.lcd_density=320 \ |
| 168 | ro.zygote.disable_gl_preload=true \ |
| 169 | ro.hwui.texture_cache_size=72 \ |
| 170 | ro.hwui.layer_cache_size=48 \ |
| 171 | ro.hwui.r_buffer_cache_size=8 \ |
| 172 | ro.hwui.path_cache_size=32 \ |
| 173 | ro.hwui.gradient_cache_size=1 \ |
| 174 | ro.hwui.drop_shadow_cache_size=6 \ |
| 175 | ro.hwui.texture_cache_flushrate=0.4 \ |
| 176 | ro.hwui.text_small_cache_width=1024 \ |
| 177 | ro.hwui.text_small_cache_height=1024 \ |
| 178 | ro.hwui.text_large_cache_width=2048 \ |
| 179 | ro.hwui.text_large_cache_height=1024 \ |
Thomas.TT_Lin | c688847 | 2014-01-22 11:30:52 +0800 | [diff] [blame] | 180 | ro.hwui.disable_scissor_opt=true \ |
| 181 | ro.bt.bdaddr_path=/sys/module/flounder_bdaddress/parameters/bdaddress |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 182 | |
| 183 | # setup dalvik vm configs. |
| 184 | $(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk) |
| 185 | |
| 186 | # set default USB configuration |
| 187 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
xerox_lin | f4ec210 | 2014-03-18 23:02:54 +0800 | [diff] [blame] | 188 | persist.sys.usb.config=mtp \ |
| 189 | ro.adb.secure=1 |
Colin Cross | a9e55ed | 2013-10-07 14:15:18 -0700 | [diff] [blame] | 190 | |
| 191 | # for off charging mode |
| 192 | PRODUCT_PACKAGES += \ |
| 193 | charger \ |
| 194 | charger_res_images |
| 195 | |
Eric Laurent | e9b8820 | 2013-12-17 17:57:18 -0800 | [diff] [blame] | 196 | # for audio |
| 197 | PRODUCT_PACKAGES += \ |
| 198 | audio.primary.flounder \ |
| 199 | audio.a2dp.default \ |
| 200 | audio.usb.default \ |
| 201 | audio.r_submix.default \ |
| 202 | |
Geremy Condra | a83c529 | 2014-04-03 13:03:29 -0700 | [diff] [blame] | 203 | # add verity dependencies |
| 204 | $(call inherit-product, build/target/product/verity.mk) |
| 205 | PRODUCT_VERITY_PARTITION := /dev/block/platform/sdhci-tegra.3/by-name/APP |
| 206 | |
Colin Cross | 11a18c2 | 2014-02-19 17:49:10 -0800 | [diff] [blame] | 207 | $(call inherit-product-if-exists, hardware/nvidia/tegra132/tegra132.mk) |
| 208 | $(call inherit-product-if-exists, vendor/nvidia/proprietary-tegra132/tegra132-vendor.mk) |
Dmitry Shmidt | 2faa10e | 2014-02-24 14:42:14 -0800 | [diff] [blame] | 209 | $(call inherit-product-if-exists, vendor/htc/flounder/device-vendor.mk) |
Dmitry Shmidt | 22e6c16 | 2013-12-18 15:09:32 -0800 | [diff] [blame] | 210 | $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4354/device-bcm.mk) |