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