blob: e3816062e9fdb30e8297decefe0601622fadb0dc [file] [log] [blame]
Colin Crossa9e55ed2013-10-07 14:15:18 -07001#
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 Wang1a2cb212013-11-25 13:43:35 -080017PRODUCT_PACKAGES := \
18 libwpa_client \
19 hostapd \
20 wpa_supplicant \
21 wpa_supplicant.conf
22
Colin Cross11a18c22014-02-19 17:49:10 -080023ifeq ($(TARGET_PREBUILT_KERNEL),)
Rom Lemarchand5ec43212014-03-21 13:37:22 -070024LOCAL_KERNEL := device/htc/flounder-kernel/Image.gz-dtb
Colin Cross11a18c22014-02-19 17:49:10 -080025else
26LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
27endif
28
Colin Crossa9e55ed2013-10-07 14:15:18 -070029PRODUCT_COPY_FILES := \
30 $(LOCAL_KERNEL):kernel \
Colin Cross6e6bad22013-10-18 10:52:53 -070031 $(LOCAL_PATH)/init.flounder.rc:root/init.flounder.rc \
32 $(LOCAL_PATH)/init.flounder.usb.rc:root/init.flounder.usb.rc \
JP Abgralle34d0fd2014-04-29 15:26:03 -070033 $(LOCAL_PATH)/init.recovery.flounder.rc:root/init.recovery.flounder.rc \
Colin Cross6e6bad22013-10-18 10:52:53 -070034 $(LOCAL_PATH)/fstab.flounder:root/fstab.flounder \
35 $(LOCAL_PATH)/ueventd.flounder.rc:root/ueventd.flounder.rc
Colin Crossa9e55ed2013-10-07 14:15:18 -070036
JP Abgralle34d0fd2014-04-29 15:26:03 -070037# Copy flounder files as flounder64 so that ${ro.hardware} can find them
Colin Cross2e4e82b2014-01-31 18:41:57 -080038PRODUCT_COPY_FILES += \
Colin Cross11a18c22014-02-19 17:49:10 -080039 $(LOCAL_PATH)/init.flounder.rc:root/init.flounder64.rc \
Colin Cross2e4e82b2014-01-31 18:41:57 -080040 $(LOCAL_PATH)/init.flounder.usb.rc:root/init.flounder64.usb.rc \
41 $(LOCAL_PATH)/fstab.flounder:root/fstab.flounder64 \
JP Abgralle34d0fd2014-04-29 15:26:03 -070042 $(LOCAL_PATH)/init.recovery.flounder.rc:root/init.recovery.flounder64.rc \
Colin Cross2e4e82b2014-01-31 18:41:57 -080043 $(LOCAL_PATH)/ueventd.flounder.rc:root/ueventd.flounder64.rc
44
Colin Cross11a18c22014-02-19 17:49:10 -080045PRODUCT_COPY_FILES += \
46 $(LOCAL_PATH)/touch/touch_fusion.cfg:system/vendor/firmware/touch_fusion.cfg \
47 $(LOCAL_PATH)/touch/maxim_fp35.bin:system/vendor/firmware/maxim_fp35.bin \
48 $(LOCAL_PATH)/touch/touch_fusion.idc:system/usr/idc/touch_fusion.idc \
49 $(LOCAL_PATH)/touch/touch_fusion:system/vendor/bin/touch_fusion
50
Colin Crossebdbcb22013-10-10 15:58:21 -070051PRODUCT_PACKAGES += \
Dmitry Shmidtc63232c2013-12-12 11:07:43 -080052 libwpa_client \
53 hostapd \
54 wpa_supplicant \
55 wpa_supplicant.conf
56
Colin Crossa9e55ed2013-10-07 14:15:18 -070057PRODUCT_COPY_FILES += \
58 frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
59 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
60 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
Dmitry Shmidt9f7dabd2014-03-24 14:50:02 -070061 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
Yogesh Agrawal9240c1a2013-10-16 15:13:32 +053062 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
Colin Crossa9e55ed2013-10-07 14:15:18 -070063 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
64 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
65 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
66 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
67 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
68 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
69 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
70 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
71 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
72 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
Andy Chuang729d8412014-05-05 18:46:37 +080073 frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.hardware.sensor.stepcounter.xml \
74 frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.hardware.sensor.stepdetector.xml \
Colin Cross5a451b82013-12-26 17:50:09 -080075 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \
76 frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
77 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
78 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml
Colin Crossa9e55ed2013-10-07 14:15:18 -070079
Dmitry Shmidtc4a032a2013-10-09 14:57:38 -070080PRODUCT_COPY_FILES += \
Lajos Molnar4389f092014-03-19 14:45:02 -070081 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
82 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
Colin Cross6e6bad22013-10-18 10:52:53 -070083 $(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml \
84 $(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \
Eric Laurente9b88202013-12-17 17:57:18 -080085 $(LOCAL_PATH)/audio_policy.conf:system/etc/audio_policy.conf \
86 $(LOCAL_PATH)/mixer_paths_1.xml:system/etc/mixer_paths_1.xml \
87 $(LOCAL_PATH)/mixer_paths_0.xml:system/etc/mixer_paths_0.xml
Yogesh Agrawal9240c1a2013-10-16 15:13:32 +053088
Ira354a0982014-04-09 18:06:28 +080089
90PRODUCT_COPY_FILES += \
91 $(LOCAL_PATH)/enctune.conf:system/etc/enctune.conf
92
Yogesh Agrawal9240c1a2013-10-16 15:13:32 +053093PRODUCT_COPY_FILES += \
Colin Cross6e6bad22013-10-18 10:52:53 -070094 $(LOCAL_PATH)/nvaudio_conf.xml:system/etc/nvaudio_conf.xml \
Alex Ray016f3a12013-10-23 17:02:11 -070095 $(LOCAL_PATH)/nvcamera.conf:system/etc/nvcamera.conf \
Colin Cross6e6bad22013-10-18 10:52:53 -070096 $(LOCAL_PATH)/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
Dmitry Shmidtc4a032a2013-10-09 14:57:38 -070097
edwin_tunge98db7e2013-12-05 12:08:00 +080098PRODUCT_COPY_FILES += \
edwin_tungac7b5c12014-01-24 19:46:58 +080099 $(LOCAL_PATH)/gps/bcm/gps.bcm47521.conf:system/etc/gps.bcm47521.conf \
100 $(LOCAL_PATH)/gps/bcm/glgps:system/bin/glgps \
101 $(LOCAL_PATH)/gps/bcm/gpsconfig.xml:system/etc/gpsconfig.xml \
102 $(LOCAL_PATH)/gps/bcm/gps.bcm47521.so:system/lib/hw/gps.bcm47521.so
edwin_tunge98db7e2013-12-05 12:08:00 +0800103
Martijn Coenence789142014-02-25 10:50:01 -0800104# NFC feature + config files
105PRODUCT_COPY_FILES += \
106 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
107 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
108 device/htc/flounder/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf \
109 device/htc/flounder/nfc/libnfc-brcm-20795a10.conf:system/etc/libnfc-brcm-20795a10.conf
110
Colin Crossa9e55ed2013-10-07 14:15:18 -0700111PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi
112PRODUCT_AAPT_PREF_CONFIG := xhdpi
113
114PRODUCT_CHARACTERISTICS := tablet,nosdcard
115
116DEVICE_PACKAGE_OVERLAYS := \
Colin Cross6e6bad22013-10-18 10:52:53 -0700117 $(LOCAL_PATH)/overlay
Colin Crossa9e55ed2013-10-07 14:15:18 -0700118
119PRODUCT_TAGS += dalvik.gc.type-precise
120
Colin Cross5a451b82013-12-26 17:50:09 -0800121# NFC packages
Martijn Coenence789142014-02-25 10:50:01 -0800122# Note: NFC HAL is built with $(TARGET_DEVICE), so this
123# includes both flounder and flounder64 HALs to support both
Colin Cross5a451b82013-12-26 17:50:09 -0800124PRODUCT_PACKAGES += \
Martijn Coenence789142014-02-25 10:50:01 -0800125 nfc_nci.flounder \
126 nfc_nci.flounder64 \
Colin Cross5a451b82013-12-26 17:50:09 -0800127 NfcNci \
128 Tag \
Colin Cross5a451b82013-12-26 17:50:09 -0800129
Colin Crossa9e55ed2013-10-07 14:15:18 -0700130PRODUCT_PACKAGES += \
131 librs_jni \
132 com.android.future.usb.accessory
133
134PRODUCT_PACKAGES += \
Colin Cross5b94bde2013-10-10 14:56:56 -0700135 power.flounder \
Andy Chuang92af8b22014-03-14 18:38:17 +0800136 lights.flounder \
137 sensors.flounder
Colin Crossa9e55ed2013-10-07 14:15:18 -0700138
139# Filesystem management tools
140PRODUCT_PACKAGES += \
141 e2fsck
142
143PRODUCT_PROPERTY_OVERRIDES := \
144 wifi.interface=wlan0 \
145 ro.opengles.version=196608 \
146 ro.sf.lcd_density=320 \
147 ro.zygote.disable_gl_preload=true \
148 ro.hwui.texture_cache_size=72 \
149 ro.hwui.layer_cache_size=48 \
150 ro.hwui.r_buffer_cache_size=8 \
151 ro.hwui.path_cache_size=32 \
152 ro.hwui.gradient_cache_size=1 \
153 ro.hwui.drop_shadow_cache_size=6 \
154 ro.hwui.texture_cache_flushrate=0.4 \
155 ro.hwui.text_small_cache_width=1024 \
156 ro.hwui.text_small_cache_height=1024 \
157 ro.hwui.text_large_cache_width=2048 \
158 ro.hwui.text_large_cache_height=1024 \
Thomas.TT_Linc6888472014-01-22 11:30:52 +0800159 ro.hwui.disable_scissor_opt=true \
160 ro.bt.bdaddr_path=/sys/module/flounder_bdaddress/parameters/bdaddress
Colin Crossa9e55ed2013-10-07 14:15:18 -0700161
162# setup dalvik vm configs.
163$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
164
165# set default USB configuration
166PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
xerox_linf4ec2102014-03-18 23:02:54 +0800167 persist.sys.usb.config=mtp \
168 ro.adb.secure=1
Colin Crossa9e55ed2013-10-07 14:15:18 -0700169
170# for off charging mode
171PRODUCT_PACKAGES += \
172 charger \
173 charger_res_images
174
Eric Laurente9b88202013-12-17 17:57:18 -0800175# for audio
176PRODUCT_PACKAGES += \
177 audio.primary.flounder \
178 audio.a2dp.default \
179 audio.usb.default \
180 audio.r_submix.default \
181
Geremy Condraa83c5292014-04-03 13:03:29 -0700182# add verity dependencies
183$(call inherit-product, build/target/product/verity.mk)
184PRODUCT_VERITY_PARTITION := /dev/block/platform/sdhci-tegra.3/by-name/APP
185
Colin Cross11a18c22014-02-19 17:49:10 -0800186$(call inherit-product-if-exists, hardware/nvidia/tegra132/tegra132.mk)
187$(call inherit-product-if-exists, vendor/nvidia/proprietary-tegra132/tegra132-vendor.mk)
Dmitry Shmidt2faa10e2014-02-24 14:42:14 -0800188$(call inherit-product-if-exists, vendor/htc/flounder/device-vendor.mk)
Dmitry Shmidt22e6c162013-12-18 15:09:32 -0800189$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4354/device-bcm.mk)