• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 2011 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),)
18LOCAL_KERNEL := device/samsung/manta/kernel
19else
20LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
21endif
22
23PRODUCT_COPY_FILES := \
24    $(LOCAL_KERNEL):kernel \
25    device/samsung/manta/init.manta.rc:root/init.manta.rc \
26    device/samsung/manta/init.manta.usb.rc:root/init.manta.usb.rc \
27    device/samsung/manta/init.recovery.manta.rc:root/init.recovery.manta.rc \
28    device/samsung/manta/fstab.manta:root/fstab.manta \
29    device/samsung/manta/ueventd.manta.rc:root/ueventd.manta.rc
30
31# Input device files for manta
32PRODUCT_COPY_FILES += \
33    device/samsung/manta/Atmel_maXTouch_Touchscreen.idc:system/usr/idc/Atmel_maXTouch_Touchscreen.idc \
34    device/samsung/manta/manta-keypad.kl:system/usr/keylayout/manta-keypad.kl \
35    device/samsung/manta/manta-keypad.kcm:system/usr/keychars/manta-keypad.kcm
36
37
38# Init files for booting smdk5250 with a manta image
39PRODUCT_COPY_FILES += \
40    device/samsung/manta/init.smdk5250.rc:root/init.smdk5250.rc \
41    device/samsung/manta/init.smdk5250.usb.rc:root/init.smdk5250.usb.rc \
42    device/samsung/manta/fstab.smdk5250:root/fstab.smdk5250 \
43    device/samsung/manta/ueventd.smdk5250.rc:root/ueventd.smdk5250.rc
44
45# Input device files for smdk5250
46PRODUCT_COPY_FILES += \
47    device/samsung/manta/egalax_i2c.idc:system/usr/idc/egalax_i2c.idc \
48    device/samsung/manta/smdk5250-keypad.kl:system/usr/keylayout/smdk5250-keypad.kl \
49    device/samsung/manta/smdk5250-keypad.kcm:system/usr/keychars/smdk5250-keypad.kcm
50
51PRODUCT_COPY_FILES += \
52    frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
53    frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
54    frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
55    frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
56    device/samsung/manta/media_codecs.xml:system/etc/media_codecs.xml \
57    device/samsung/manta/media_profiles.xml:system/etc/media_profiles.xml \
58    frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
59    frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
60    frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
61    frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
62    frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
63    frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
64    frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \
65    frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
66    frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
67    frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
68    frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml
69
70PRODUCT_COPY_FILES += \
71    device/samsung/manta/bcmdhd.cal:system/etc/wifi/bcmdhd.cal
72
73# audio mixer paths
74PRODUCT_COPY_FILES += \
75    device/samsung/manta/mixer_paths.xml:system/etc/mixer_paths.xml
76
77# audio policy configuration
78PRODUCT_COPY_FILES += \
79    device/samsung/manta/audio_policy.conf:system/etc/audio_policy.conf
80
81# audio effects
82PRODUCT_PACKAGES += libaudience_voicefx
83PRODUCT_COPY_FILES += \
84    device/samsung/manta/audio_effects.conf:system/etc/audio_effects.conf
85
86# BCM47511 GPS
87PRODUCT_COPY_FILES += \
88    device/samsung/manta/gps/gps.conf:system/etc/gps.conf \
89    device/samsung/manta/gps/gpsd:system/vendor/bin/gpsd \
90    device/samsung/manta/gps/gps.xml:system/vendor/etc/gps.xml \
91    device/samsung/manta/gps/gps.exynos5.so:system/lib/hw/gps.exynos5.so
92
93# NFC packages
94PRODUCT_PACKAGES += \
95    nfc_nci.manta \
96    NfcNci \
97    Tag \
98    com.android.nfc_extras
99
100# NFCEE access control
101ifeq ($(TARGET_BUILD_VARIANT),user)
102    NFCEE_ACCESS_PATH := device/samsung/manta/nfc/nfcee_access.xml
103else
104    NFCEE_ACCESS_PATH := device/samsung/manta/nfc/nfcee_access_debug.xml
105endif
106
107# NFC access control + feature files + configuration
108PRODUCT_COPY_FILES += \
109    $(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml \
110    frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
111    frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
112    frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
113    device/samsung/manta/nfc/libnfc-brcm.conf:system/etc/libnfc-brcm.conf
114
115PRODUCT_PACKAGES += \
116    lights.manta \
117    sensors.manta
118
119PRODUCT_AAPT_CONFIG := xlarge hdpi xhdpi
120PRODUCT_AAPT_PREF_CONFIG := xhdpi
121
122PRODUCT_CHARACTERISTICS := tablet,nosdcard
123
124DEVICE_PACKAGE_OVERLAYS := \
125    device/samsung/manta/overlay
126
127# for now include gralloc here. should come from hardware/samsung_slsi/exynos5
128PRODUCT_PACKAGES += \
129    gralloc.exynos5
130
131PRODUCT_PACKAGES += \
132    libion
133
134PRODUCT_TAGS += dalvik.gc.type-precise
135
136PRODUCT_PACKAGES += \
137    librs_jni \
138    com.android.future.usb.accessory
139
140PRODUCT_PACKAGES += \
141    audio.primary.manta \
142    audio.a2dp.default \
143    audio.usb.default \
144    libbubblelevel \
145    audio.r_submix.default
146
147PRODUCT_PACKAGES += \
148    power.manta
149
150PRODUCT_PACKAGES += \
151    camera.exynos5
152
153# Filesystem management tools
154PRODUCT_PACKAGES += \
155    e2fsck
156
157PRODUCT_PROPERTY_OVERRIDES := \
158    wifi.interface=wlan0 \
159    ro.opengles.version=196608 \
160    ro.sf.lcd_density=320 \
161    ro.hwui.texture_cache_size=72 \
162    ro.hwui.layer_cache_size=48 \
163    ro.hwui.r_buffer_cache_size=8 \
164    ro.hwui.path_cache_size=32 \
165    ro.hwui.gradient_cache_size=1 \
166    ro.hwui.drop_shadow_cache_size=6 \
167    ro.hwui.texture_cache_flushrate=0.4 \
168    ro.hwui.text_small_cache_width=1024 \
169    ro.hwui.text_small_cache_height=1024 \
170    ro.hwui.text_large_cache_width=2048 \
171    ro.hwui.text_large_cache_height=1024 \
172    ro.hwui.disable_scissor_opt=true
173
174# setup dalvik vm configs.
175$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
176
177# Enable AAC 5.1 output
178PRODUCT_PROPERTY_OVERRIDES += \
179    media.aac_51_output_enabled=true
180
181# set default USB configuration
182PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
183    persist.sys.usb.config=mtp
184
185# for off charging mode
186PRODUCT_PACKAGES += \
187    charger \
188    charger_res_images
189
190$(call inherit-product-if-exists, hardware/samsung_slsi/exynos5/exynos5.mk)
191$(call inherit-product-if-exists, vendor/samsung_slsi/exynos5/exynos5-vendor.mk)
192$(call inherit-product-if-exists, vendor/samsung/manta/device-vendor.mk)
193
194$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4324/device-bcm.mk)
195