blob: cde8c1250d12022827b606f6ce26969e11a8c090 [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
17ifeq ($(TARGET_PREBUILT_KERNEL),)
Colin Crosscd57f832013-10-10 16:47:36 -070018LOCAL_KERNEL := device/htc/flounder-kernel/zImage-dtb
Colin Crossa9e55ed2013-10-07 14:15:18 -070019else
20LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
21endif
22
23PRODUCT_COPY_FILES := \
24 $(LOCAL_KERNEL):kernel \
Colin Cross6e6bad22013-10-18 10:52:53 -070025 $(LOCAL_PATH)/init.flounder.rc:root/init.flounder.rc \
26 $(LOCAL_PATH)/init.flounder.usb.rc:root/init.flounder.usb.rc \
27 $(LOCAL_PATH)/fstab.flounder:root/fstab.flounder \
28 $(LOCAL_PATH)/ueventd.flounder.rc:root/ueventd.flounder.rc
Colin Crossa9e55ed2013-10-07 14:15:18 -070029
30# Copy ardbeg files to allow booting on flounder or ardbeg for now
31PRODUCT_COPY_FILES += \
32 device/nvidia/ardbeg/init.ardbeg.rc:root/init.ardbeg.rc \
33 device/nvidia/ardbeg/init.ardbeg.usb.rc:root/init.ardbeg.usb.rc \
34 device/nvidia/ardbeg/fstab.ardbeg:root/fstab.ardbeg \
35 device/nvidia/ardbeg/ueventd.ardbeg.rc:root/ueventd.ardbeg.rc \
36 device/nvidia/ardbeg/raydium_ts.idc:system/usr/idc/raydium_ts.idc
37
Colin Crossebdbcb22013-10-10 15:58:21 -070038PRODUCT_PACKAGES += \
39 power.ardbeg \
40 lights.ardbeg
41
Colin Crossa9e55ed2013-10-07 14:15:18 -070042PRODUCT_COPY_FILES += \
43 frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
44 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
45 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
Dmitry Shmidt8ee220b2013-10-14 17:22:30 -070046 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
Yogesh Agrawal9240c1a2013-10-16 15:13:32 +053047 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
Colin Crossa9e55ed2013-10-07 14:15:18 -070048 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
49 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
50 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
51 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
52 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
53 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
54 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
55 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
56 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
57 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
58 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml
59
Dmitry Shmidtc4a032a2013-10-09 14:57:38 -070060PRODUCT_COPY_FILES += \
Colin Cross6e6bad22013-10-18 10:52:53 -070061 $(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml \
62 $(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \
63 $(LOCAL_PATH)/audio_policy.conf:system/etc/audio_policy.conf
Yogesh Agrawal9240c1a2013-10-16 15:13:32 +053064
65PRODUCT_COPY_FILES += \
Colin Cross6e6bad22013-10-18 10:52:53 -070066 $(LOCAL_PATH)/nvaudio_conf.xml:system/etc/nvaudio_conf.xml \
67 $(LOCAL_PATH)/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
Dmitry Shmidtc4a032a2013-10-09 14:57:38 -070068
Colin Crossa9e55ed2013-10-07 14:15:18 -070069PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi
70PRODUCT_AAPT_PREF_CONFIG := xhdpi
71
72PRODUCT_CHARACTERISTICS := tablet,nosdcard
73
74DEVICE_PACKAGE_OVERLAYS := \
Colin Cross6e6bad22013-10-18 10:52:53 -070075 $(LOCAL_PATH)/overlay
Colin Crossa9e55ed2013-10-07 14:15:18 -070076
77PRODUCT_TAGS += dalvik.gc.type-precise
78
79PRODUCT_PACKAGES += \
80 librs_jni \
81 com.android.future.usb.accessory
82
83PRODUCT_PACKAGES += \
Colin Cross5b94bde2013-10-10 14:56:56 -070084 power.flounder \
85 lights.flounder
Colin Crossa9e55ed2013-10-07 14:15:18 -070086
87# Filesystem management tools
88PRODUCT_PACKAGES += \
89 e2fsck
90
91PRODUCT_PROPERTY_OVERRIDES := \
92 wifi.interface=wlan0 \
93 ro.opengles.version=196608 \
94 ro.sf.lcd_density=320 \
95 ro.zygote.disable_gl_preload=true \
96 ro.hwui.texture_cache_size=72 \
97 ro.hwui.layer_cache_size=48 \
98 ro.hwui.r_buffer_cache_size=8 \
99 ro.hwui.path_cache_size=32 \
100 ro.hwui.gradient_cache_size=1 \
101 ro.hwui.drop_shadow_cache_size=6 \
102 ro.hwui.texture_cache_flushrate=0.4 \
103 ro.hwui.text_small_cache_width=1024 \
104 ro.hwui.text_small_cache_height=1024 \
105 ro.hwui.text_large_cache_width=2048 \
106 ro.hwui.text_large_cache_height=1024 \
107 ro.hwui.disable_scissor_opt=true
108
109# setup dalvik vm configs.
110$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
111
112# set default USB configuration
113PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
114 persist.sys.usb.config=mtp
115
116# for off charging mode
117PRODUCT_PACKAGES += \
118 charger \
119 charger_res_images
120
121$(call inherit-product-if-exists, hardware/nvidia/tegra124/tegra124.mk)
122$(call inherit-product-if-exists, vendor/nvidia/proprietary-tegra124/tegra124-vendor.mk)
123$(call inherit-product-if-exists, vendor/htc/flounder/device-vendor.mk)
Dmitry Shmidtc4a032a2013-10-09 14:57:38 -0700124$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4350/device-bcm.mk)