| 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 \ |
| Mike Lockwood | 9d622a4 | 2011-06-09 17:27:20 -0700 | [diff] [blame] | 52 | device/samsung/crespo/init.herring.usb.rc:root/init.herring.usb.rc \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 53 | device/samsung/crespo/ueventd.herring.rc:root/ueventd.herring.rc |
| 54 | |
| Ying Wang | 39e4b9e | 2011-03-15 15:38:37 -0700 | [diff] [blame] | 55 | # Prebuilt kl and kcm keymaps |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 56 | PRODUCT_COPY_FILES += \ |
| 57 | device/samsung/crespo/s3c-keypad.kl:system/usr/keylayout/s3c-keypad.kl \ |
| Ying Wang | 39e4b9e | 2011-03-15 15:38:37 -0700 | [diff] [blame] | 58 | device/samsung/crespo/s3c-keypad.kcm:system/usr/keychars/s3c-keypad.kcm \ |
| 59 | device/samsung/crespo/herring-keypad.kl:system/usr/keylayout/herring-keypad.kl \ |
| 60 | device/samsung/crespo/herring-keypad.kcm:system/usr/keychars/herring-keypad.kcm \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 61 | device/samsung/crespo/cypress-touchkey.kl:system/usr/keylayout/cypress-touchkey.kl \ |
| Ying Wang | 39e4b9e | 2011-03-15 15:38:37 -0700 | [diff] [blame] | 62 | device/samsung/crespo/cypress-touchkey.kcm:system/usr/keychars/cypress-touchkey.kcm \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 63 | device/samsung/crespo/sec_jack.kl:system/usr/keylayout/sec_jack.kl \ |
| Jeff Brown | ceea45b | 2011-06-23 15:39:31 -0700 | [diff] [blame] | 64 | device/samsung/crespo/sec_jack.kcm:system/usr/keychars/sec_jack.kcm \ |
| 65 | device/samsung/crespo/mxt224_ts_input.kl:system/usr/keylayout/mxt224_ts_input.kl \ |
| 66 | device/samsung/crespo/mxt224_ts_input.kcm:system/usr/keychars/mxt224_ts_input.kcm |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 67 | |
| Jaikumar Ganesh | c5c2066 | 2011-05-26 11:16:07 -0700 | [diff] [blame] | 68 | #Bluetooth setup |
| 69 | PRODUCT_COPY_FILES += \ |
| 70 | system/bluetooth/data/main.conf:system/etc/bluetooth/main.conf \ |
| 71 | |
| Jean-Baptiste Queru | 1c8cfa4 | 2011-05-19 15:58:01 -0700 | [diff] [blame] | 72 | #NVRAM setup |
| 73 | PRODUCT_COPY_FILES += \ |
| 74 | device/samsung/crespo/nvram_net.txt:system/vendor/firmware/nvram_net.txt |
| 75 | |
| 76 | #MFC Firmware |
| 77 | PRODUCT_COPY_FILES += \ |
| 78 | device/samsung/crespo/samsung_mfc_fw.bin:system/vendor/firmware/samsung_mfc_fw.bin |
| 79 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 80 | # Generated kcm keymaps |
| 81 | PRODUCT_PACKAGES := \ |
| 82 | s3c-keypad.kcm \ |
| 83 | cypress-touchkey.kcm |
| 84 | |
| 85 | # Filesystem management tools |
| 86 | PRODUCT_PACKAGES += \ |
| 87 | make_ext4fs \ |
| 88 | setup_fs |
| 89 | |
| 90 | PRODUCT_CHARACTERISTICS := nosdcard |
| 91 | |
| 92 | # These are the OpenMAX IL configuration files |
| 93 | PRODUCT_COPY_FILES += \ |
| 94 | device/samsung/crespo/sec_mm/sec_omx/sec_omx_core/secomxregistry:system/etc/secomxregistry \ |
| 95 | device/samsung/crespo/media_profiles.xml:system/etc/media_profiles.xml |
| 96 | |
| 97 | |
| 98 | # These are the OpenMAX IL modules |
| 99 | PRODUCT_PACKAGES += \ |
| 100 | libSEC_OMX_Core \ |
| 101 | libOMX.SEC.AVC.Decoder \ |
| 102 | libOMX.SEC.M4V.Decoder \ |
| 103 | libOMX.SEC.M4V.Encoder \ |
| 104 | libOMX.SEC.AVC.Encoder |
| 105 | |
| 106 | # Misc other modules |
| 107 | PRODUCT_PACKAGES += \ |
| 108 | lights.s5pc110 \ |
| 109 | overlay.s5pc110 \ |
| 110 | sensors.herring |
| 111 | |
| Iliyan Malchev | 05df7dc | 2011-06-06 17:56:20 -0700 | [diff] [blame] | 112 | # Camera |
| 113 | PRODUCT_PACKAGES += \ |
| Jeong-Seok Yang | 114856a | 2011-06-08 20:28:48 +0900 | [diff] [blame] | 114 | camera.herring |
| Iliyan Malchev | 05df7dc | 2011-06-06 17:56:20 -0700 | [diff] [blame] | 115 | |
| Dima Zavin | 99ba135 | 2011-04-20 01:22:02 -0700 | [diff] [blame] | 116 | # audio |
| 117 | PRODUCT_PACKAGES += \ |
| 118 | audio_policy.herring \ |
| 119 | audio.primary.herring \ |
| 120 | audio.a2dp.default |
| 121 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 122 | # Libs |
| 123 | PRODUCT_PACKAGES += \ |
| 124 | libcamera \ |
| 125 | libstagefrighthw \ |
| 126 | com.android.future.usb.accessory |
| 127 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 128 | # Input device calibration files |
| 129 | PRODUCT_COPY_FILES += \ |
| 130 | device/samsung/crespo/mxt224_ts_input.idc:system/usr/idc/mxt224_ts_input.idc |
| 131 | |
| Jean-Baptiste Queru | c577471 | 2011-07-18 10:26:42 -0700 | [diff] [blame^] | 132 | # for bugmailer |
| 133 | PRODUCT_COPY_FILES += \ |
| 134 | system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh |
| 135 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 136 | # These are the hardware-specific features |
| 137 | PRODUCT_COPY_FILES += \ |
| Jean-Baptiste Queru | f8a678a | 2011-06-10 15:17:51 -0700 | [diff] [blame] | 138 | device/sample/nxp/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 139 | frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ |
| 140 | frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 141 | frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| 142 | frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ |
| 143 | frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
| 144 | frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 145 | frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| 146 | frameworks/base/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 147 | frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 148 | frameworks/base/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ |
| 149 | frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ |
| 150 | frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
| 151 | packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml |
| 152 | |
| 153 | # The OpenGL ES API level that is natively supported by this device. |
| 154 | # This is a 16.16 fixed point number |
| 155 | PRODUCT_PROPERTY_OVERRIDES := \ |
| 156 | ro.opengles.version=131072 |
| 157 | |
| 158 | # These are the hardware-specific settings that are stored in system properties. |
| 159 | # Note that the only such settings should be the ones that are too low-level to |
| 160 | # be reachable from resources or other mechanisms. |
| 161 | PRODUCT_PROPERTY_OVERRIDES += \ |
| Ying Wang | 39e4b9e | 2011-03-15 15:38:37 -0700 | [diff] [blame] | 162 | wifi.interface=wlan0 \ |
| 163 | wifi.supplicant_scan_interval=15 |
| 164 | |
| Mike Lockwood | 81d2808 | 2011-06-08 16:42:26 -0700 | [diff] [blame] | 165 | # Set default USB interface |
| Mike Lockwood | a03410b | 2011-06-09 17:26:15 -0700 | [diff] [blame] | 166 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| Mike Lockwood | 81d2808 | 2011-06-08 16:42:26 -0700 | [diff] [blame] | 167 | persist.sys.usb.config=mass_storage |
| 168 | |
| Ying Wang | 39e4b9e | 2011-03-15 15:38:37 -0700 | [diff] [blame] | 169 | include frameworks/base/build/phone-hdpi-512-dalvik-heap.mk |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 170 | |
| 171 | # we have enough storage space to hold precise GC data |
| 172 | PRODUCT_TAGS += dalvik.gc.type-precise |
| 173 | |
| Ying Wang | f45551b | 2011-03-16 11:08:20 -0700 | [diff] [blame] | 174 | # Screen size is "normal", density is "hdpi" |
| 175 | PRODUCT_AAPT_CONFIG := normal hdpi |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 176 | |
| JP Abgrall | 3b10d5e | 2011-04-12 16:47:07 -0700 | [diff] [blame] | 177 | ifeq ($(TARGET_PREBUILT_WIFI_MODULE),) |
| 178 | LOCAL_WIFI_MODULE := device/samsung/crespo/bcm4329.ko |
| 179 | else |
| 180 | LOCAL_WIFI_MODULE := $(TARGET_PREBUILT_WIFI_MODULE) |
| 181 | endif |
| 182 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 183 | PRODUCT_COPY_FILES += \ |
| JP Abgrall | 3b10d5e | 2011-04-12 16:47:07 -0700 | [diff] [blame] | 184 | $(LOCAL_WIFI_MODULE):system/modules/bcm4329.ko |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 185 | |
| 186 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 187 | LOCAL_KERNEL := device/samsung/crespo/kernel |
| 188 | else |
| 189 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 190 | endif |
| 191 | |
| 192 | PRODUCT_COPY_FILES += \ |
| 193 | $(LOCAL_KERNEL):kernel |
| Nick Pelly | e2b2a54 | 2011-06-24 10:43:30 -0700 | [diff] [blame] | 194 | |
| 195 | $(call inherit-product-if-exists, vendor/nxp/pn544/nxp-pn544-fw-vendor.mk) |