Home | History | Annotate | Download | only in grouper
      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 ifeq ($(TARGET_PREBUILT_KERNEL),)
     18   LOCAL_KERNEL := device/asus/grouper/kernel
     19 else
     20   LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
     21 endif
     22 
     23 PRODUCT_AAPT_CONFIG := normal large tvdpi hdpi
     24 PRODUCT_AAPT_PREF_CONFIG := tvdpi
     25 
     26 
     27 PRODUCT_PROPERTY_OVERRIDES := \
     28     wifi.interface=wlan0 \
     29     wifi.supplicant_scan_interval=15 \
     30     tf.enable=y \
     31     drm.service.enabled=true
     32 
     33 # libhwui flags
     34 PRODUCT_PROPERTY_OVERRIDES += \
     35     debug.hwui.render_dirty_regions=false
     36 
     37 # Set default USB interface
     38 PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
     39     persist.sys.usb.config=mtp
     40 
     41 include frameworks/native/build/tablet-7in-hdpi-1024-dalvik-heap.mk
     42 
     43 PRODUCT_COPY_FILES += \
     44     $(LOCAL_KERNEL):kernel \
     45     device/asus/grouper/ueventd.grouper.rc:root/ueventd.grouper.rc \
     46     device/asus/grouper/init.grouper.usb.rc:root/init.grouper.usb.rc \
     47     device/asus/grouper/gps.conf:system/etc/gps.conf
     48 
     49 ifneq ($(TARGET_PREBUILT_WIFI_MODULE),)
     50 PRODUCT_COPY_FILES += \
     51     $(TARGET_PREBUILT_WIFI_MODULE):system/lib/modules/bcm4329.ko
     52 endif
     53 
     54 PRODUCT_COPY_FILES += \
     55     frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
     56     frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
     57     frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
     58     frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
     59     frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
     60     frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
     61     frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
     62     frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
     63     frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
     64     frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
     65     frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml
     66 
     67 PRODUCT_COPY_FILES += \
     68     device/asus/grouper/elan-touchscreen.idc:system/usr/idc/elan-touchscreen.idc \
     69     device/asus/grouper/raydium_ts.idc:system/usr/idc/raydium_ts.idc \
     70     device/asus/grouper/sensor00fn11.idc:system/usr/idc/sensor00fn11.idc \
     71     device/asus/grouper/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl
     72 
     73 PRODUCT_PACKAGES := \
     74     libwpa_client \
     75     hostapd \
     76     dhcpcd.conf \
     77     wpa_supplicant \
     78     wpa_supplicant.conf
     79 
     80 PRODUCT_PACKAGES += \
     81     lights.grouper \
     82     audio.primary.grouper \
     83     power.grouper \
     84     audio.a2dp.default \
     85     audio.usb.default \
     86     audio.r_submix.default \
     87     librs_jni \
     88     l2ping \
     89     hcitool \
     90     bttest \
     91     com.android.future.usb.accessory
     92 
     93 PRODUCT_PACKAGES += \
     94     keystore.grouper
     95 
     96 # NFC packages
     97 PRODUCT_PACKAGES += \
     98     nfc.grouper \
     99     Nfc \
    100     Tag
    101 
    102 # Filesystem management tools
    103 PRODUCT_PACKAGES += \
    104     e2fsck \
    105     setup_fs
    106 
    107 PRODUCT_CHARACTERISTICS := tablet,nosdcard
    108 
    109 # we have enough storage space to hold precise GC data
    110 PRODUCT_TAGS += dalvik.gc.type-precise
    111 
    112 # media config xml file
    113 PRODUCT_COPY_FILES += \
    114     device/asus/grouper/media_profiles.xml:system/etc/media_profiles.xml
    115 
    116 # media codec config xml file
    117 PRODUCT_COPY_FILES += \
    118     frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
    119     frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
    120     frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml \
    121     device/asus/grouper/media_codecs.xml:system/etc/media_codecs.xml
    122 
    123 # audio mixer paths
    124 PRODUCT_COPY_FILES += \
    125     device/asus/grouper/mixer_paths.xml:system/etc/mixer_paths.xml
    126 
    127 # audio policy configuration
    128 PRODUCT_COPY_FILES += \
    129     device/asus/grouper/audio_policy.conf:system/etc/audio_policy.conf
    130 
    131 PRODUCT_COPY_FILES += \
    132     frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
    133     frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml
    134 
    135 WIFI_BAND := 802_11_BG
    136  $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk)
    137