Jean-Baptiste Queru | 671476b | 2012-05-29 10:40:37 -0700 | [diff] [blame^] | 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 | DEVICE_PACKAGE_OVERLAYS := \ |
| 27 | device/asus/grouper/overlay |
| 28 | |
| 29 | PRODUCT_PROPERTY_OVERRIDES := \ |
| 30 | wifi.interface=wlan0 \ |
| 31 | wifi.supplicant_scan_interval=15 \ |
| 32 | tf.enable=y \ |
| 33 | drm.service.enabled=true \ |
| 34 | ro.carrier=wifi-only |
| 35 | |
| 36 | # Set default USB interface |
| 37 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 38 | persist.sys.usb.config=mtp |
| 39 | |
| 40 | include frameworks/native/build/tablet-dalvik-heap.mk |
| 41 | |
| 42 | PRODUCT_COPY_FILES += \ |
| 43 | $(LOCAL_KERNEL):kernel \ |
| 44 | device/asus/grouper/init.grouper.rc:root/init.grouper.rc \ |
| 45 | device/asus/grouper/fstab.grouper:root/fstab.grouper \ |
| 46 | device/asus/grouper/ueventd.grouper.rc:root/ueventd.grouper.rc \ |
| 47 | device/asus/grouper/init.grouper.usb.rc:root/init.grouper.usb.rc \ |
| 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 | # for PDK build, include only when the dir exists |
| 68 | # too early to use $(TARGET_BUILD_PDK) |
| 69 | ifneq ($(wildcard packages/wallpapers/LivePicker),) |
| 70 | PRODUCT_COPY_FILES += \ |
| 71 | packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml |
| 72 | endif |
| 73 | |
| 74 | PRODUCT_COPY_FILES += \ |
| 75 | device/asus/grouper/vold.fstab:system/etc/vold.fstab \ |
| 76 | device/asus/grouper/elan-touchscreen.idc:system/usr/idc/elan-touchscreen.idc \ |
| 77 | device/asus/grouper/raydium_ts.idc:system/usr/idc/raydium_ts.idc \ |
| 78 | device/asus/grouper/sensor00fn11.idc:system/usr/idc/sensor00fn11.idc \ |
| 79 | device/asus/grouper/gpio-keys.kl:system/usr/keylayout/gpio-keys.kl \ |
| 80 | device/asus/grouper/tegra-kbc.kl:system/usr/keylayout/tegra-kbc.kl |
| 81 | |
| 82 | PRODUCT_PACKAGES := \ |
| 83 | camera.grouper \ |
| 84 | sensors.grouper \ |
| 85 | sensors-config \ |
| 86 | lights.grouper \ |
| 87 | audio.primary.grouper \ |
| 88 | power.grouper \ |
| 89 | audio.a2dp.default \ |
| 90 | audio.usb.default \ |
| 91 | librs_jni \ |
| 92 | make_ext4fs \ |
| 93 | l2ping \ |
| 94 | hcitool \ |
| 95 | bttest \ |
| 96 | com.android.future.usb.accessory \ |
| 97 | whisperd |
| 98 | |
| 99 | # for bugmailer |
| 100 | PRODUCT_PACKAGES += send_bug |
| 101 | PRODUCT_COPY_FILES += \ |
| 102 | system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \ |
| 103 | system/extras/bugmailer/send_bug:system/bin/send_bug |
| 104 | |
| 105 | # NFC packages |
| 106 | PRODUCT_PACKAGES += \ |
| 107 | nfc.grouper \ |
| 108 | libnfc \ |
| 109 | libnfc_jni \ |
| 110 | Nfc \ |
| 111 | Tag \ |
| 112 | com.android.nfc_extras |
| 113 | |
| 114 | PRODUCT_CHARACTERISTICS := tablet,nosdcard |
| 115 | |
| 116 | # we have enough storage space to hold precise GC data |
| 117 | PRODUCT_TAGS += dalvik.gc.type-precise |
| 118 | |
| 119 | # media config xml file |
| 120 | PRODUCT_COPY_FILES += \ |
| 121 | device/asus/grouper/media_profiles.xml:system/etc/media_profiles.xml |
| 122 | |
| 123 | # media codec config xml file |
| 124 | PRODUCT_COPY_FILES += \ |
| 125 | device/asus/grouper/media_codecs.xml:system/etc/media_codecs.xml |
| 126 | |
| 127 | # Bluetooth config file |
| 128 | PRODUCT_COPY_FILES += \ |
| 129 | system/bluetooth/data/main.nonsmartphone.conf:system/etc/bluetooth/main.conf \ |
| 130 | |
| 131 | # audio mixer paths |
| 132 | PRODUCT_COPY_FILES += \ |
| 133 | device/asus/grouper/mixer_paths.xml:system/etc/mixer_paths.xml |
| 134 | |
| 135 | # audio policy configuration |
| 136 | PRODUCT_COPY_FILES += \ |
| 137 | device/asus/grouper/audio_policy.conf:system/etc/audio_policy.conf |
| 138 | |
| 139 | # inherit from the non-open-source side, if present |
| 140 | $(call inherit-product-if-exists, vendor/asus/grouper/device-vendor.mk) |
| 141 | |
| 142 | PRODUCT_COPY_FILES += \ |
| 143 | frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \ |
| 144 | frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \ |
| 145 | frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml |
| 146 | |
| 147 | # NFCEE access control |
| 148 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 149 | NFCEE_ACCESS_PATH := device/asus/grouper/nfcee_access.xml |
| 150 | else |
| 151 | NFCEE_ACCESS_PATH := device/asus/grouper/nfcee_access_debug.xml |
| 152 | endif |
| 153 | PRODUCT_COPY_FILES += \ |
| 154 | $(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml |
| 155 | |
| 156 | WIFI_BAND := 802_11_BG |
| 157 | $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk) |
| 158 | |