device_base.mk revision b13767a8224ce6c8b65bd9908ffb371e3adcd970
1#
2# Copyright (C) 2010 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
17DEVICE_PACKAGE_OVERLAYS := \
18    device/moto/wingray/overlay
19
20PRODUCT_PROPERTY_OVERRIDES := \
21    wifi.interface=wlan0
22
23PRODUCT_PROPERTY_OVERRIDES += \
24    ro.sf.lcd_density=160
25
26# Set default USB interface
27PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
28	persist.sys.usb.config=mtp
29
30include frameworks/native/build/tablet-dalvik-heap.mk
31
32PRODUCT_COPY_FILES += \
33    device/moto/wingray/init.stingray.rc:root/init.stingray.rc \
34    device/moto/wingray/init.stingray.usb.rc:root/init.stingray.usb.rc \
35    device/moto/wingray/fstab.stingray:root/fstab.stingray \
36    device/moto/wingray/ueventd.stingray.rc:root/ueventd.stingray.rc \
37
38ifneq ($(TARGET_PREBUILT_WIFI_MODULE),)
39PRODUCT_COPY_FILES += \
40    $(TARGET_PREBUILT_WIFI_MODULE):system/lib/modules/bcm4329.ko
41endif
42
43PRODUCT_COPY_FILES += \
44    device/moto/wingray/mXT1386_08_AA.bin:system/etc/firmware/mXT1386_08_AA.bin \
45    device/moto/wingray/mXT1386_08_E1.bin:system/etc/firmware/mXT1386_08_E1.bin \
46    device/moto/wingray/mXT1386_09_AA.bin:system/etc/firmware/mXT1386_09_AA.bin \
47    device/moto/wingray/mXT1386_10_AA.bin:system/etc/firmware/mXT1386_10_AA.bin \
48    device/moto/wingray/mXT1386_10_FF.bin:system/etc/firmware/mXT1386_10_FF.bin
49
50PRODUCT_COPY_FILES += \
51    frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.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.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
54    frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
55    frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.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.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
58    frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.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.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.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.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
63    $(call add-to-product-copy-files-if-exists,packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml)
64
65PRODUCT_COPY_FILES += \
66        device/moto/wingray/vold.fstab:system/etc/vold.fstab \
67        device/moto/wingray/qtouch-touchscreen.idc:system/usr/idc/qtouch-touchscreen.idc \
68        device/moto/wingray/cpcap-key.kl:system/usr/keylayout/cpcap-key.kl \
69        device/moto/wingray/cpcap-key.kcm:system/usr/keychars/cpcap-key.kcm \
70        device/moto/wingray/stingray-keypad.kl:system/usr/keylayout/stingray-keypad.kl \
71        device/moto/wingray/stingray-keypad.kcm:system/usr/keychars/stingray-keypad.kcm
72
73PRODUCT_COPY_FILES += \
74        device/moto/wingray/libaudio/audio_policy.conf:system/etc/audio_policy.conf
75
76PRODUCT_PACKAGES := \
77    camera.stingray \
78    sensors.stingray \
79    lights.stingray \
80    audio.primary.stingray \
81    audio.a2dp.default \
82    audio.usb.default \
83    audio_policy.stingray \
84    librs_jni \
85    make_ext4fs \
86    l2ping \
87    hcitool \
88    bttest \
89    com.android.future.usb.accessory \
90    whisperd
91
92PRODUCT_CHARACTERISTICS := tablet
93
94# we have enough storage space to hold precise GC data
95PRODUCT_TAGS += dalvik.gc.type-precise
96
97# media config xml file
98PRODUCT_COPY_FILES += \
99    device/moto/wingray/media_profiles.xml:system/etc/media_profiles.xml
100
101# media codec config xml file
102PRODUCT_COPY_FILES += \
103    device/moto/wingray/media_codecs.xml:system/etc/media_codecs.xml
104
105# Bluetooth config file
106PRODUCT_COPY_FILES += \
107    system/bluetooth/data/main.nonsmartphone.conf:system/etc/bluetooth/main.conf \
108
109# for bugreport, with screen capture, and send mail intent
110PRODUCT_PACKAGES += send_bug
111PRODUCT_COPY_FILES += \
112    system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \
113    system/extras/bugmailer/send_bug:system/bin/send_bug
114
115# inherit from the non-open-source side, if present
116ifneq ($(filter trygon trygon_l10n calgon full_stingray tyranid stingray,$(TARGET_PRODUCT)),)
117$(call inherit-product-if-exists, vendor/moto/stingray/stingray-vendor.mk)
118else
119$(call inherit-product-if-exists, vendor/moto/stingray/wingray-vendor.mk)
120endif
121
122WIFI_BAND := 802_11_ABG
123$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk)
124