blob: 80c4541ddc9d85e122555aa99b7e611f2ab9f219 [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
Dmitry Shmidtc63232c2013-12-12 11:07:43 -080042PRODUCT_PACKAGES += \
43 libwpa_client \
44 hostapd \
45 wpa_supplicant \
46 wpa_supplicant.conf
47
Colin Crossa9e55ed2013-10-07 14:15:18 -070048PRODUCT_COPY_FILES += \
49 frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
50 frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
51 frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
Dmitry Shmidt8ee220b2013-10-14 17:22:30 -070052 frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
Yogesh Agrawal9240c1a2013-10-16 15:13:32 +053053 frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
Colin Crossa9e55ed2013-10-07 14:15:18 -070054 frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
55 frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
56 frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
57 frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
58 frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
59 frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
60 frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
61 frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
62 frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
63 frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
64 frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml
65
Dmitry Shmidtc4a032a2013-10-09 14:57:38 -070066PRODUCT_COPY_FILES += \
Colin Cross6e6bad22013-10-18 10:52:53 -070067 $(LOCAL_PATH)/media_codecs.xml:system/etc/media_codecs.xml \
68 $(LOCAL_PATH)/media_profiles.xml:system/etc/media_profiles.xml \
69 $(LOCAL_PATH)/audio_policy.conf:system/etc/audio_policy.conf
Yogesh Agrawal9240c1a2013-10-16 15:13:32 +053070
71PRODUCT_COPY_FILES += \
Colin Cross6e6bad22013-10-18 10:52:53 -070072 $(LOCAL_PATH)/nvaudio_conf.xml:system/etc/nvaudio_conf.xml \
Alex Ray016f3a12013-10-23 17:02:11 -070073 $(LOCAL_PATH)/nvcamera.conf:system/etc/nvcamera.conf \
Colin Cross6e6bad22013-10-18 10:52:53 -070074 $(LOCAL_PATH)/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
Dmitry Shmidtc4a032a2013-10-09 14:57:38 -070075
edwin_tunge98db7e2013-12-05 12:08:00 +080076PRODUCT_COPY_FILES += \
77 $(LOCAL_PATH)/gps/gps.conf:system/etc/gps.conf \
78 $(LOCAL_PATH)/gps/glgps:system/bin/glgps \
79 $(LOCAL_PATH)/gps/gpsconfig.xml:system/etc/gpsconfig.xml \
80 $(LOCAL_PATH)/gps/gps.flounder.so:system/lib/hw/gps.flounder.so
81
82
Colin Crossa9e55ed2013-10-07 14:15:18 -070083PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi
84PRODUCT_AAPT_PREF_CONFIG := xhdpi
85
86PRODUCT_CHARACTERISTICS := tablet,nosdcard
87
88DEVICE_PACKAGE_OVERLAYS := \
Colin Cross6e6bad22013-10-18 10:52:53 -070089 $(LOCAL_PATH)/overlay
Colin Crossa9e55ed2013-10-07 14:15:18 -070090
91PRODUCT_TAGS += dalvik.gc.type-precise
92
93PRODUCT_PACKAGES += \
94 librs_jni \
95 com.android.future.usb.accessory
96
97PRODUCT_PACKAGES += \
Colin Cross5b94bde2013-10-10 14:56:56 -070098 power.flounder \
99 lights.flounder
Colin Crossa9e55ed2013-10-07 14:15:18 -0700100
101# Filesystem management tools
102PRODUCT_PACKAGES += \
103 e2fsck
104
105PRODUCT_PROPERTY_OVERRIDES := \
106 wifi.interface=wlan0 \
107 ro.opengles.version=196608 \
108 ro.sf.lcd_density=320 \
109 ro.zygote.disable_gl_preload=true \
110 ro.hwui.texture_cache_size=72 \
111 ro.hwui.layer_cache_size=48 \
112 ro.hwui.r_buffer_cache_size=8 \
113 ro.hwui.path_cache_size=32 \
114 ro.hwui.gradient_cache_size=1 \
115 ro.hwui.drop_shadow_cache_size=6 \
116 ro.hwui.texture_cache_flushrate=0.4 \
117 ro.hwui.text_small_cache_width=1024 \
118 ro.hwui.text_small_cache_height=1024 \
119 ro.hwui.text_large_cache_width=2048 \
120 ro.hwui.text_large_cache_height=1024 \
121 ro.hwui.disable_scissor_opt=true
122
123# setup dalvik vm configs.
124$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
125
126# set default USB configuration
127PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
128 persist.sys.usb.config=mtp
129
130# for off charging mode
131PRODUCT_PACKAGES += \
132 charger \
133 charger_res_images
134
135$(call inherit-product-if-exists, hardware/nvidia/tegra124/tegra124.mk)
136$(call inherit-product-if-exists, vendor/nvidia/proprietary-tegra124/tegra124-vendor.mk)
137$(call inherit-product-if-exists, vendor/htc/flounder/device-vendor.mk)
Dmitry Shmidtc4a032a2013-10-09 14:57:38 -0700138$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4350/device-bcm.mk)