device_base.mk revision 7c1ce9e660b2e1b27eb661ef6a6e5f4587230669
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/base/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/ueventd.stingray.rc:root/ueventd.stingray.rc \ 36 37ifneq ($(TARGET_PREBUILT_WIFI_MODULE),) 38PRODUCT_COPY_FILES += \ 39 $(TARGET_PREBUILT_WIFI_MODULE):system/lib/modules/bcm4329.ko 40endif 41 42PRODUCT_COPY_FILES += \ 43 device/moto/wingray/mXT1386_08_AA.bin:system/etc/firmware/mXT1386_08_AA.bin \ 44 device/moto/wingray/mXT1386_08_E1.bin:system/etc/firmware/mXT1386_08_E1.bin \ 45 device/moto/wingray/mXT1386_09_AA.bin:system/etc/firmware/mXT1386_09_AA.bin \ 46 device/moto/wingray/mXT1386_10_AA.bin:system/etc/firmware/mXT1386_10_AA.bin \ 47 device/moto/wingray/mXT1386_10_FF.bin:system/etc/firmware/mXT1386_10_FF.bin 48 49PRODUCT_COPY_FILES += \ 50 frameworks/base/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \ 51 frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ 52 frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ 53 frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ 54 frameworks/base/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ 55 frameworks/base/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ 56 frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ 57 frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ 58 frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ 59 frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ 60 frameworks/base/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ 61 frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ 62 packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml 63 64PRODUCT_COPY_FILES += \ 65 device/moto/wingray/vold.fstab:system/etc/vold.fstab \ 66 device/moto/wingray/qtouch-touchscreen.idc:system/usr/idc/qtouch-touchscreen.idc \ 67 device/moto/wingray/cpcap-key.kl:system/usr/keylayout/cpcap-key.kl \ 68 device/moto/wingray/cpcap-key.kcm:system/usr/keychars/cpcap-key.kcm \ 69 device/moto/wingray/stingray-keypad.kl:system/usr/keylayout/stingray-keypad.kl \ 70 device/moto/wingray/stingray-keypad.kcm:system/usr/keychars/stingray-keypad.kcm 71 72PRODUCT_COPY_FILES += \ 73 device/moto/wingray/libaudio/audio_policy.conf:system/etc/audio_policy.conf 74 75PRODUCT_PACKAGES := \ 76 camera.stingray \ 77 sensors.stingray \ 78 lights.stingray \ 79 audio.primary.stingray \ 80 audio.a2dp.default \ 81 audio_policy.stingray \ 82 librs_jni \ 83 make_ext4fs \ 84 l2ping \ 85 hcitool \ 86 bttest \ 87 com.android.future.usb.accessory \ 88 whisperd 89 90PRODUCT_CHARACTERISTICS := tablet 91 92# we have enough storage space to hold precise GC data 93PRODUCT_TAGS += dalvik.gc.type-precise 94 95# media config xml file 96PRODUCT_COPY_FILES += \ 97 device/moto/wingray/media_profiles.xml:system/etc/media_profiles.xml 98 99# media codec config xml file 100PRODUCT_COPY_FILES += \ 101 device/moto/wingray/media_codecs.xml:system/etc/media_codecs.xml 102 103# Bluetooth config file 104PRODUCT_COPY_FILES += \ 105 system/bluetooth/data/main.nonsmartphone.conf:system/etc/bluetooth/main.conf \ 106 107# for bugreport, with screen capture, and send mail intent 108PRODUCT_PACKAGES += send_bug 109PRODUCT_COPY_FILES += \ 110 system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \ 111 system/extras/bugmailer/send_bug:system/bin/send_bug 112 113# inherit from the non-open-source side, if present 114ifneq ($(filter trygon trygon_l10n calgon full_stingray tyranid stingray,$(TARGET_PRODUCT)),) 115$(call inherit-product-if-exists, vendor/moto/stingray/stingray-vendor.mk) 116else 117$(call inherit-product-if-exists, vendor/moto/stingray/wingray-vendor.mk) 118endif 119 120WIFI_BAND := 802_11_ABG 121$(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk) 122