| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame^] | 1 | # Copyright (C) 2010 The Android Open Source Project |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | |
| 16 | # This file is the device-specific product definition file for |
| 17 | # crespo. It lists all the overlays, files, modules and properties |
| 18 | # that are specific to this hardware: i.e. those are device-specific |
| 19 | # drivers, configuration files, settings, etc... |
| 20 | |
| 21 | # Note that crespo is not a fully open device. Some of the drivers |
| 22 | # aren't publicly available in all circumstances, which means that some |
| 23 | # of the hardware capabilities aren't present in builds where those |
| 24 | # drivers aren't available. Such cases are handled by having this file |
| 25 | # separated into two halves: this half here contains the parts that |
| 26 | # are available to everyone, while another half in the vendor/ hierarchy |
| 27 | # augments that set with the parts that are only relevant when all the |
| 28 | # associated drivers are available. Aspects that are irrelevant but |
| 29 | # harmless in no-driver builds should be kept here for simplicity and |
| 30 | # transparency. There are two variants of the half that deals with |
| 31 | # the unavailable drivers: one is directly checked into the unreleased |
| 32 | # vendor tree and is used by engineers who have access to it. The other |
| 33 | # is generated by setup-makefile.sh in the same directory as this files, |
| 34 | # and is used by people who have access to binary versions of the drivers |
| 35 | # but not to the original vendor tree. Be sure to update both. |
| 36 | |
| 37 | |
| 38 | |
| 39 | # These is the hardware-specific overlay, which points to the location |
| 40 | # of hardware-specific resource overrides, typically the frameworks and |
| 41 | # application settings that are stored in resourced. |
| 42 | DEVICE_PACKAGE_OVERLAYS := device/samsung/crespo/overlay |
| 43 | |
| 44 | # These are the hardware-specific configuration files |
| 45 | PRODUCT_COPY_FILES := \ |
| 46 | device/samsung/crespo/vold.fstab:system/etc/vold.fstab \ |
| 47 | device/samsung/crespo/egl.cfg:system/lib/egl/egl.cfg |
| 48 | |
| 49 | # Init files |
| 50 | PRODUCT_COPY_FILES += \ |
| 51 | device/samsung/crespo/init.herring.rc:root/init.herring.rc \ |
| 52 | device/samsung/crespo/ueventd.herring.rc:root/ueventd.herring.rc |
| 53 | |
| 54 | # Prebuilt kl keymaps |
| 55 | PRODUCT_COPY_FILES += \ |
| 56 | device/samsung/crespo/s3c-keypad.kl:system/usr/keylayout/s3c-keypad.kl \ |
| 57 | device/samsung/crespo/cypress-touchkey.kl:system/usr/keylayout/cypress-touchkey.kl \ |
| 58 | device/samsung/crespo/sec_jack.kl:system/usr/keylayout/sec_jack.kl \ |
| 59 | device/samsung/crespo/herring-keypad.kl:system/usr/keylayout/herring-keypad.kl |
| 60 | |
| 61 | # Generated kcm keymaps |
| 62 | PRODUCT_PACKAGES := \ |
| 63 | s3c-keypad.kcm \ |
| 64 | cypress-touchkey.kcm |
| 65 | |
| 66 | # Filesystem management tools |
| 67 | PRODUCT_PACKAGES += \ |
| 68 | make_ext4fs \ |
| 69 | setup_fs |
| 70 | |
| 71 | PRODUCT_CHARACTERISTICS := nosdcard |
| 72 | |
| 73 | # These are the OpenMAX IL configuration files |
| 74 | PRODUCT_COPY_FILES += \ |
| 75 | device/samsung/crespo/sec_mm/sec_omx/sec_omx_core/secomxregistry:system/etc/secomxregistry \ |
| 76 | device/samsung/crespo/media_profiles.xml:system/etc/media_profiles.xml |
| 77 | |
| 78 | |
| 79 | # These are the OpenMAX IL modules |
| 80 | PRODUCT_PACKAGES += \ |
| 81 | libSEC_OMX_Core \ |
| 82 | libOMX.SEC.AVC.Decoder \ |
| 83 | libOMX.SEC.M4V.Decoder \ |
| 84 | libOMX.SEC.M4V.Encoder \ |
| 85 | libOMX.SEC.AVC.Encoder |
| 86 | |
| 87 | # Misc other modules |
| 88 | PRODUCT_PACKAGES += \ |
| 89 | lights.s5pc110 \ |
| 90 | overlay.s5pc110 \ |
| 91 | sensors.herring |
| 92 | |
| 93 | # Libs |
| 94 | PRODUCT_PACKAGES += \ |
| 95 | libcamera \ |
| 96 | libstagefrighthw \ |
| 97 | com.android.future.usb.accessory |
| 98 | |
| 99 | # NFC |
| 100 | PRODUCT_PACKAGES += \ |
| 101 | libnfc \ |
| 102 | libnfc_jni \ |
| 103 | Nfc \ |
| 104 | Tag |
| 105 | |
| 106 | # Input device calibration files |
| 107 | PRODUCT_COPY_FILES += \ |
| 108 | device/samsung/crespo/mxt224_ts_input.idc:system/usr/idc/mxt224_ts_input.idc |
| 109 | |
| 110 | # These are the hardware-specific features |
| 111 | PRODUCT_COPY_FILES += \ |
| 112 | frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ |
| 113 | frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 114 | frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| 115 | frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ |
| 116 | frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
| 117 | frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 118 | frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| 119 | frameworks/base/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 120 | frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 121 | frameworks/base/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ |
| 122 | frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ |
| 123 | frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
| 124 | packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml |
| 125 | |
| 126 | # The OpenGL ES API level that is natively supported by this device. |
| 127 | # This is a 16.16 fixed point number |
| 128 | PRODUCT_PROPERTY_OVERRIDES := \ |
| 129 | ro.opengles.version=131072 |
| 130 | |
| 131 | # These are the hardware-specific settings that are stored in system properties. |
| 132 | # Note that the only such settings should be the ones that are too low-level to |
| 133 | # be reachable from resources or other mechanisms. |
| 134 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 135 | wifi.interface=eth0 \ |
| 136 | wifi.supplicant_scan_interval=15 \ |
| 137 | dalvik.vm.heapsize=32m |
| 138 | |
| 139 | # we have enough storage space to hold precise GC data |
| 140 | PRODUCT_TAGS += dalvik.gc.type-precise |
| 141 | |
| 142 | # Screen density is actually considered a locale (since it is taken into account |
| 143 | # the the build-time selection of resources). The product definitions including |
| 144 | # this file must pay attention to the fact that the first entry in the final |
| 145 | # PRODUCT_LOCALES expansion must not be a density. |
| 146 | PRODUCT_LOCALES := hdpi |
| 147 | |
| 148 | |
| 149 | PRODUCT_COPY_FILES += \ |
| 150 | device/samsung/crespo/bcm4329.ko:system/modules/bcm4329.ko |
| 151 | |
| 152 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 153 | LOCAL_KERNEL := device/samsung/crespo/kernel |
| 154 | else |
| 155 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 156 | endif |
| 157 | |
| 158 | PRODUCT_COPY_FILES += \ |
| 159 | $(LOCAL_KERNEL):kernel |
| 160 | |
| 161 | # See comment at the top of this file. This is where the other |
| 162 | # half of the device-specific product definition file takes care |
| 163 | # of the aspects that require proprietary drivers that aren't |
| 164 | # commonly available |
| 165 | $(call inherit-product-if-exists, vendor/samsung/crespo/device-vendor.mk) |