| 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 \ |
| Ken Sumrall | db6230d | 2012-04-12 14:38:39 -0700 | [diff] [blame] | 53 | device/samsung/crespo/fstab.herring:root/fstab.herring \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 54 | device/samsung/crespo/ueventd.herring.rc:root/ueventd.herring.rc |
| 55 | |
| Ying Wang | 39e4b9e | 2011-03-15 15:38:37 -0700 | [diff] [blame] | 56 | # Prebuilt kl and kcm keymaps |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 57 | PRODUCT_COPY_FILES += \ |
| 58 | device/samsung/crespo/s3c-keypad.kl:system/usr/keylayout/s3c-keypad.kl \ |
| Ying Wang | 39e4b9e | 2011-03-15 15:38:37 -0700 | [diff] [blame] | 59 | device/samsung/crespo/s3c-keypad.kcm:system/usr/keychars/s3c-keypad.kcm \ |
| 60 | device/samsung/crespo/herring-keypad.kl:system/usr/keylayout/herring-keypad.kl \ |
| 61 | device/samsung/crespo/herring-keypad.kcm:system/usr/keychars/herring-keypad.kcm \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 62 | device/samsung/crespo/cypress-touchkey.kl:system/usr/keylayout/cypress-touchkey.kl \ |
| Ying Wang | 39e4b9e | 2011-03-15 15:38:37 -0700 | [diff] [blame] | 63 | device/samsung/crespo/cypress-touchkey.kcm:system/usr/keychars/cypress-touchkey.kcm \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 64 | device/samsung/crespo/sec_jack.kl:system/usr/keylayout/sec_jack.kl \ |
| Jeff Brown | ceea45b | 2011-06-23 15:39:31 -0700 | [diff] [blame] | 65 | device/samsung/crespo/sec_jack.kcm:system/usr/keychars/sec_jack.kcm \ |
| 66 | device/samsung/crespo/mxt224_ts_input.kl:system/usr/keylayout/mxt224_ts_input.kl \ |
| 67 | 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] | 68 | |
| Jaikumar Ganesh | c5c2066 | 2011-05-26 11:16:07 -0700 | [diff] [blame] | 69 | #Bluetooth setup |
| 70 | PRODUCT_COPY_FILES += \ |
| 71 | system/bluetooth/data/main.conf:system/etc/bluetooth/main.conf \ |
| 72 | |
| Jean-Baptiste Queru | 1c8cfa4 | 2011-05-19 15:58:01 -0700 | [diff] [blame] | 73 | #NVRAM setup |
| 74 | PRODUCT_COPY_FILES += \ |
| 75 | device/samsung/crespo/nvram_net.txt:system/vendor/firmware/nvram_net.txt |
| 76 | |
| 77 | #MFC Firmware |
| 78 | PRODUCT_COPY_FILES += \ |
| 79 | device/samsung/crespo/samsung_mfc_fw.bin:system/vendor/firmware/samsung_mfc_fw.bin |
| 80 | |
| Nick Pelly | 3623340 | 2011-11-21 14:49:42 -0800 | [diff] [blame] | 81 | # NFC |
| 82 | PRODUCT_PACKAGES += \ |
| 83 | libnfc \ |
| 84 | libnfc_jni \ |
| 85 | Nfc \ |
| 86 | Tag |
| 87 | |
| 88 | # Commands to migrate prefs from com.android.nfc3 to com.android.nfc |
| 89 | PRODUCT_COPY_FILES += \ |
| 90 | packages/apps/Nfc/migrate_nfc.txt:system/etc/updatecmds/migrate_nfc.txt |
| 91 | |
| Nick Pelly | 9875dfc | 2011-11-14 15:19:02 -0800 | [diff] [blame] | 92 | # file that declares the MIFARE NFC constant |
| 93 | PRODUCT_COPY_FILES += \ |
| Martijn Coenen | 0ca5e27 | 2012-04-12 22:10:58 -0700 | [diff] [blame] | 94 | frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml |
| Nick Pelly | 9875dfc | 2011-11-14 15:19:02 -0800 | [diff] [blame] | 95 | |
| 96 | # NFC EXTRAS add-on API |
| 97 | PRODUCT_PACKAGES += \ |
| 98 | com.android.nfc_extras |
| 99 | PRODUCT_COPY_FILES += \ |
| Ramanan Rajeswaran | b97b5bd | 2012-04-12 13:24:23 -0700 | [diff] [blame] | 100 | frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml |
| Nick Pelly | 9875dfc | 2011-11-14 15:19:02 -0800 | [diff] [blame] | 101 | |
| Nick Pelly | 9c87fac | 2011-11-10 18:16:45 -0800 | [diff] [blame] | 102 | # NFCEE access control |
| 103 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| Nick Pelly | 9875dfc | 2011-11-14 15:19:02 -0800 | [diff] [blame] | 104 | NFCEE_ACCESS_PATH := device/samsung/crespo/nfcee_access.xml |
| Nick Pelly | 9c87fac | 2011-11-10 18:16:45 -0800 | [diff] [blame] | 105 | else |
| Nick Pelly | 9875dfc | 2011-11-14 15:19:02 -0800 | [diff] [blame] | 106 | NFCEE_ACCESS_PATH := device/samsung/crespo/nfcee_access_debug.xml |
| Nick Pelly | 9c87fac | 2011-11-10 18:16:45 -0800 | [diff] [blame] | 107 | endif |
| 108 | PRODUCT_COPY_FILES += \ |
| 109 | $(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml |
| 110 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 111 | # Generated kcm keymaps |
| Nick Pelly | 3623340 | 2011-11-21 14:49:42 -0800 | [diff] [blame] | 112 | PRODUCT_PACKAGES += \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 113 | s3c-keypad.kcm \ |
| 114 | cypress-touchkey.kcm |
| 115 | |
| 116 | # Filesystem management tools |
| 117 | PRODUCT_PACKAGES += \ |
| 118 | make_ext4fs \ |
| 119 | setup_fs |
| 120 | |
| 121 | PRODUCT_CHARACTERISTICS := nosdcard |
| 122 | |
| 123 | # These are the OpenMAX IL configuration files |
| 124 | PRODUCT_COPY_FILES += \ |
| 125 | device/samsung/crespo/sec_mm/sec_omx/sec_omx_core/secomxregistry:system/etc/secomxregistry \ |
| Andreas Huber | 21a850d | 2012-03-01 10:54:29 -0800 | [diff] [blame] | 126 | device/samsung/crespo/media_profiles.xml:system/etc/media_profiles.xml \ |
| 127 | device/samsung/crespo/media_codecs.xml:system/etc/media_codecs.xml |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 128 | |
| 129 | |
| 130 | # These are the OpenMAX IL modules |
| 131 | PRODUCT_PACKAGES += \ |
| 132 | libSEC_OMX_Core \ |
| 133 | libOMX.SEC.AVC.Decoder \ |
| 134 | libOMX.SEC.M4V.Decoder \ |
| 135 | libOMX.SEC.M4V.Encoder \ |
| 136 | libOMX.SEC.AVC.Encoder |
| 137 | |
| 138 | # Misc other modules |
| 139 | PRODUCT_PACKAGES += \ |
| 140 | lights.s5pc110 \ |
| jung-min.oh | 7c54f81 | 2011-08-06 13:08:34 +0900 | [diff] [blame] | 141 | hwcomposer.s5pc110 \ |
| 142 | sensors.herring |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 143 | |
| Iliyan Malchev | 05df7dc | 2011-06-06 17:56:20 -0700 | [diff] [blame] | 144 | # Camera |
| 145 | PRODUCT_PACKAGES += \ |
| Jeong-Seok Yang | 114856a | 2011-06-08 20:28:48 +0900 | [diff] [blame] | 146 | camera.herring |
| Iliyan Malchev | 05df7dc | 2011-06-06 17:56:20 -0700 | [diff] [blame] | 147 | |
| Dima Zavin | 99ba135 | 2011-04-20 01:22:02 -0700 | [diff] [blame] | 148 | # audio |
| 149 | PRODUCT_PACKAGES += \ |
| 150 | audio_policy.herring \ |
| 151 | audio.primary.herring \ |
| Mike Lockwood | 1e50ab9 | 2012-04-26 10:42:08 -0700 | [diff] [blame] | 152 | audio.a2dp.default \ |
| 153 | audio.usb.default |
| Dima Zavin | 99ba135 | 2011-04-20 01:22:02 -0700 | [diff] [blame] | 154 | |
| Eric Laurent | 7cd5cbe | 2012-03-20 17:52:29 -0700 | [diff] [blame] | 155 | PRODUCT_COPY_FILES += \ |
| 156 | device/samsung/crespo/libaudio/audio_policy.conf:system/etc/audio_policy.conf |
| 157 | |
| Martijn Coenen | 3dfd145 | 2011-11-03 11:45:42 -0700 | [diff] [blame] | 158 | # NFC |
| 159 | PRODUCT_PACKAGES += \ |
| 160 | nfc.herring |
| 161 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 162 | # Libs |
| 163 | PRODUCT_PACKAGES += \ |
| 164 | libcamera \ |
| 165 | libstagefrighthw \ |
| Jeff Tinker | f08bab5 | 2012-06-14 17:34:06 -0700 | [diff] [blame] | 166 | libdrmdecrypt \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 167 | com.android.future.usb.accessory |
| 168 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 169 | # Input device calibration files |
| 170 | PRODUCT_COPY_FILES += \ |
| 171 | device/samsung/crespo/mxt224_ts_input.idc:system/usr/idc/mxt224_ts_input.idc |
| 172 | |
| Jean-Baptiste Queru | c577471 | 2011-07-18 10:26:42 -0700 | [diff] [blame] | 173 | # for bugmailer |
| Kenny Root | 1c199cb | 2011-12-02 13:15:02 -0800 | [diff] [blame] | 174 | PRODUCT_PACKAGES += send_bug |
| 175 | PRODUCT_COPY_FILES += \ |
| 176 | system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \ |
| 177 | system/extras/bugmailer/send_bug:system/bin/send_bug |
| Jean-Baptiste Queru | c577471 | 2011-07-18 10:26:42 -0700 | [diff] [blame] | 178 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 179 | # These are the hardware-specific features |
| 180 | PRODUCT_COPY_FILES += \ |
| Colin Cross | ccc62ab | 2012-03-26 16:25:50 -0700 | [diff] [blame] | 181 | frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ |
| 182 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 183 | frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| 184 | frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ |
| 185 | frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
| 186 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 187 | frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| 188 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 189 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 190 | frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ |
| 191 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ |
| 192 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 193 | packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml |
| 194 | |
| 195 | # The OpenGL ES API level that is natively supported by this device. |
| 196 | # This is a 16.16 fixed point number |
| 197 | PRODUCT_PROPERTY_OVERRIDES := \ |
| 198 | ro.opengles.version=131072 |
| 199 | |
| 200 | # These are the hardware-specific settings that are stored in system properties. |
| 201 | # Note that the only such settings should be the ones that are too low-level to |
| 202 | # be reachable from resources or other mechanisms. |
| 203 | PRODUCT_PROPERTY_OVERRIDES += \ |
| Dmitry Shmidt | 17e987e | 2012-01-10 12:57:10 -0800 | [diff] [blame] | 204 | wifi.interface=wlan0 |
| Ying Wang | 39e4b9e | 2011-03-15 15:38:37 -0700 | [diff] [blame] | 205 | |
| Mike Lockwood | 81d2808 | 2011-06-08 16:42:26 -0700 | [diff] [blame] | 206 | # Set default USB interface |
| Mike Lockwood | a03410b | 2011-06-09 17:26:15 -0700 | [diff] [blame] | 207 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| Mike Lockwood | 81d2808 | 2011-06-08 16:42:26 -0700 | [diff] [blame] | 208 | persist.sys.usb.config=mass_storage |
| 209 | |
| Dima Zavin | c7db296 | 2012-03-23 12:51:41 -0700 | [diff] [blame] | 210 | include frameworks/native/build/phone-hdpi-512-dalvik-heap.mk |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 211 | |
| 212 | # we have enough storage space to hold precise GC data |
| 213 | PRODUCT_TAGS += dalvik.gc.type-precise |
| 214 | |
| Ying Wang | f45551b | 2011-03-16 11:08:20 -0700 | [diff] [blame] | 215 | # Screen size is "normal", density is "hdpi" |
| 216 | PRODUCT_AAPT_CONFIG := normal hdpi |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 217 | |
| JP Abgrall | 3b10d5e | 2011-04-12 16:47:07 -0700 | [diff] [blame] | 218 | ifeq ($(TARGET_PREBUILT_WIFI_MODULE),) |
| 219 | LOCAL_WIFI_MODULE := device/samsung/crespo/bcm4329.ko |
| 220 | else |
| 221 | LOCAL_WIFI_MODULE := $(TARGET_PREBUILT_WIFI_MODULE) |
| 222 | endif |
| 223 | |
| Ying Wang | 0ea9ad8 | 2011-03-15 10:36:33 -0700 | [diff] [blame] | 224 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 225 | LOCAL_KERNEL := device/samsung/crespo/kernel |
| 226 | else |
| 227 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 228 | endif |
| 229 | |
| 230 | PRODUCT_COPY_FILES += \ |
| 231 | $(LOCAL_KERNEL):kernel |
| Nick Pelly | e2b2a54 | 2011-06-24 10:43:30 -0700 | [diff] [blame] | 232 | |
| 233 | $(call inherit-product-if-exists, vendor/nxp/pn544/nxp-pn544-fw-vendor.mk) |
| Dmitry Shmidt | 14d7e18 | 2012-01-26 14:00:23 -0800 | [diff] [blame] | 234 | |
| 235 | WIFI_BAND := 802_11_BG |
| 236 | $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4329/device-bcm.mk) |