| Colin Cross | c151bcf | 2011-04-11 18:49:38 -0700 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2011 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 | # This file includes all definitions that apply to ALL tuna devices, and |
| 18 | # are also specific to tuna devices |
| 19 | # |
| 20 | # Everything in this directory will become public |
| 21 | |
| 22 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 23 | LOCAL_KERNEL := device/samsung/tuna/kernel |
| 24 | else |
| 25 | LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL) |
| 26 | endif |
| 27 | |
| 28 | DEVICE_PACKAGE_OVERLAYS := device/samsung/tuna/overlay |
| 29 | |
| Dianne Hackborn | 22c864c | 2011-10-14 19:40:09 -0700 | [diff] [blame] | 30 | # This device is xhdpi. However the platform doesn't |
| 31 | # currently contain all of the bitmaps at xhdpi density so |
| 32 | # we do this little trick to fall back to the hdpi version |
| 33 | # if the xhdpi doesn't exist. |
| Colin Cross | 07e2549 | 2011-05-04 17:33:38 -0700 | [diff] [blame] | 34 | PRODUCT_AAPT_CONFIG := normal hdpi xhdpi |
| Dianne Hackborn | 22c864c | 2011-10-14 19:40:09 -0700 | [diff] [blame] | 35 | PRODUCT_AAPT_PREF_CONFIG := xhdpi |
| Colin Cross | 07e2549 | 2011-05-04 17:33:38 -0700 | [diff] [blame] | 36 | |
| Arve Hjønnevåg | 3f06643 | 2011-06-14 20:47:06 -0700 | [diff] [blame] | 37 | PRODUCT_PACKAGES := \ |
| Dima Zavin | 6d11ad3 | 2011-08-25 16:04:27 -0700 | [diff] [blame] | 38 | lights.tuna \ |
| Dima Zavin | 4574a99 | 2011-09-25 21:38:59 -0700 | [diff] [blame] | 39 | charger \ |
| 40 | charger_res_images |
| Arve Hjønnevåg | 460ea5c | 2011-06-29 18:48:12 -0700 | [diff] [blame] | 41 | |
| 42 | PRODUCT_PACKAGES += \ |
| Arve Hjønnevåg | 082c9cc | 2011-08-15 19:56:46 -0700 | [diff] [blame] | 43 | sensors.tuna \ |
| 44 | libinvensense_mpl |
| Arve Hjønnevåg | 3f06643 | 2011-06-14 20:47:06 -0700 | [diff] [blame] | 45 | |
| Simon Wilson | 1ff6591 | 2011-06-21 14:09:10 -0700 | [diff] [blame] | 46 | PRODUCT_PACKAGES += \ |
| Martijn Coenen | 196d029 | 2011-11-02 15:57:19 -0700 | [diff] [blame] | 47 | nfc.tuna |
| 48 | |
| Todd Poynor | 095e19a | 2012-04-10 16:54:21 -0700 | [diff] [blame] | 49 | PRODUCT_PACKAGES += \ |
| 50 | power.tuna |
| 51 | |
| Eric Laurent | 3dbd45a | 2012-03-20 18:10:13 -0700 | [diff] [blame] | 52 | # Audio |
| Martijn Coenen | 196d029 | 2011-11-02 15:57:19 -0700 | [diff] [blame] | 53 | PRODUCT_PACKAGES += \ |
| Jaikumar Ganesh | bee26b0 | 2011-07-12 10:41:09 -0700 | [diff] [blame] | 54 | audio.primary.tuna \ |
| Mike Lockwood | e834192 | 2012-04-26 10:43:39 -0700 | [diff] [blame] | 55 | audio.a2dp.default \ |
| 56 | audio.usb.default |
| Simon Wilson | 1ff6591 | 2011-06-21 14:09:10 -0700 | [diff] [blame] | 57 | |
| Eric Laurent | 3dbd45a | 2012-03-20 18:10:13 -0700 | [diff] [blame] | 58 | PRODUCT_COPY_FILES += \ |
| Eric Laurent | 00e4a33 | 2012-09-07 17:28:50 -0700 | [diff] [blame] | 59 | device/samsung/tuna/audio/audio_policy.conf:system/etc/audio_policy.conf \ |
| 60 | device/samsung/tuna/audio_effects.conf:system/vendor/etc/audio_effects.conf |
| Eric Laurent | 3dbd45a | 2012-03-20 18:10:13 -0700 | [diff] [blame] | 61 | |
| Dima Zavin | 3ca2f3e | 2011-10-11 13:33:24 -0700 | [diff] [blame] | 62 | PRODUCT_PACKAGES += \ |
| 63 | tuna_hdcp_keys |
| 64 | |
| Kenny Root | 792edf5 | 2012-04-03 17:29:15 -0700 | [diff] [blame] | 65 | #PRODUCT_PACKAGES += \ |
| 66 | # keystore.tuna |
| Kenny Root | 7d863c7 | 2012-01-09 13:59:45 -0800 | [diff] [blame] | 67 | |
| Eric Laurent | 3dbd45a | 2012-03-20 18:10:13 -0700 | [diff] [blame] | 68 | PRODUCT_COPY_FILES += \ |
| Colin Cross | c151bcf | 2011-04-11 18:49:38 -0700 | [diff] [blame] | 69 | $(LOCAL_KERNEL):kernel \ |
| 70 | device/samsung/tuna/init.tuna.rc:root/init.tuna.rc \ |
| sujin119.kim | f75543d | 2011-09-24 16:41:02 +0900 | [diff] [blame] | 71 | device/samsung/tuna/init.tuna.usb.rc:root/init.tuna.usb.rc \ |
| Ken Sumrall | 98fb2f5 | 2012-03-01 18:07:35 -0800 | [diff] [blame] | 72 | device/samsung/tuna/fstab.tuna:root/fstab.tuna \ |
| Colin Cross | c151bcf | 2011-04-11 18:49:38 -0700 | [diff] [blame] | 73 | device/samsung/tuna/ueventd.tuna.rc:root/ueventd.tuna.rc \ |
| Amith Yamasani | b4aa1d1 | 2011-06-24 15:04:49 -0700 | [diff] [blame] | 74 | device/samsung/tuna/media_profiles.xml:system/etc/media_profiles.xml \ |
| Andreas Huber | d8edac6 | 2012-02-29 16:41:46 -0800 | [diff] [blame] | 75 | device/samsung/tuna/media_codecs.xml:system/etc/media_codecs.xml \ |
| Amith Yamasani | b4aa1d1 | 2011-06-24 15:04:49 -0700 | [diff] [blame] | 76 | device/samsung/tuna/gps.conf:system/etc/gps.conf |
| Colin Cross | c151bcf | 2011-04-11 18:49:38 -0700 | [diff] [blame] | 77 | |
| Jaikumar Ganesh | cd4ae1d | 2011-05-26 11:20:29 -0700 | [diff] [blame] | 78 | # Bluetooth configuration files |
| Colin Cross | f2f0221 | 2011-05-27 18:47:21 -0700 | [diff] [blame] | 79 | PRODUCT_COPY_FILES += \ |
| Jaikumar Ganesh | cd4ae1d | 2011-05-26 11:20:29 -0700 | [diff] [blame] | 80 | system/bluetooth/data/main.le.conf:system/etc/bluetooth/main.conf |
| 81 | |
| Dmitry Shmidt | 0f7779b | 2011-06-03 11:13:15 -0700 | [diff] [blame] | 82 | # Wifi |
| Dmitry Shmidt | 643ad5d | 2011-07-08 13:28:17 -0700 | [diff] [blame] | 83 | ifneq ($(TARGET_PREBUILT_WIFI_MODULE),) |
| Dmitry Shmidt | 0f7779b | 2011-06-03 11:13:15 -0700 | [diff] [blame] | 84 | PRODUCT_COPY_FILES += \ |
| Dmitry Shmidt | 643ad5d | 2011-07-08 13:28:17 -0700 | [diff] [blame] | 85 | $(TARGET_PREBUILT_WIFI_MODULE):system/lib/modules/bcmdhd.ko |
| 86 | endif |
| 87 | PRODUCT_COPY_FILES += \ |
| Dmitry Shmidt | 0f7779b | 2011-06-03 11:13:15 -0700 | [diff] [blame] | 88 | device/samsung/tuna/bcmdhd.cal:system/etc/wifi/bcmdhd.cal |
| 89 | |
| 90 | PRODUCT_PROPERTY_OVERRIDES := \ |
| Dmitry Shmidt | 9dc151a | 2012-01-10 12:51:09 -0800 | [diff] [blame] | 91 | wifi.interface=wlan0 |
| Dmitry Shmidt | 0f7779b | 2011-06-03 11:13:15 -0700 | [diff] [blame] | 92 | |
| Dave Burke | 7cd304e | 2012-05-25 09:40:28 -0700 | [diff] [blame] | 93 | # Enable AAC 5.1 output |
| 94 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 95 | media.aac_51_output_enabled=true |
| 96 | |
| Mike Lockwood | 5d319dd | 2011-06-08 16:44:16 -0700 | [diff] [blame] | 97 | # Set default USB interface |
| Mike Lockwood | b7aca00 | 2011-06-09 17:24:26 -0700 | [diff] [blame] | 98 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| Mike Lockwood | 5d319dd | 2011-06-08 16:44:16 -0700 | [diff] [blame] | 99 | persist.sys.usb.config=mtp |
| 100 | |
| Jeff Brown | bd545d8 | 2011-06-08 18:48:36 -0700 | [diff] [blame] | 101 | # NFC |
| 102 | PRODUCT_PACKAGES += \ |
| 103 | libnfc \ |
| 104 | libnfc_jni \ |
| 105 | Nfc \ |
| 106 | Tag |
| 107 | |
| 108 | # Live Wallpapers |
| 109 | PRODUCT_PACKAGES += \ |
| 110 | LiveWallpapers \ |
| 111 | LiveWallpapersPicker \ |
| Jeff Brown | bd545d8 | 2011-06-08 18:48:36 -0700 | [diff] [blame] | 112 | VisualizationWallpapers \ |
| 113 | librs_jni |
| 114 | |
| Jeff Brown | 3a2cd55 | 2011-11-10 14:17:35 -0800 | [diff] [blame] | 115 | # Key maps |
| 116 | PRODUCT_COPY_FILES += \ |
| 117 | device/samsung/tuna/tuna-gpio-keypad.kl:system/usr/keylayout/tuna-gpio-keypad.kl \ |
| Dima Zavin | 7aeae7a | 2012-01-18 12:42:24 -0800 | [diff] [blame] | 118 | device/samsung/tuna/tuna-gpio-keypad.kcm:system/usr/keychars/tuna-gpio-keypad.kcm \ |
| 119 | device/samsung/tuna/sec_jack.kl:system/usr/keylayout/sec_jack.kl \ |
| Greg Hackmann | 4af56bf | 2012-04-04 12:57:48 -0700 | [diff] [blame] | 120 | device/samsung/tuna/sec_jack.kcm:system/usr/keychars/sec_jack.kcm \ |
| 121 | device/samsung/tuna/sii9234_rcp.kl:system/usr/keylayout/sii9234_rcp.kl \ |
| 122 | device/samsung/tuna/sii9234_rcp.kcm:system/usr/keychars/sii9234_rcp.kcm |
| Jeff Brown | 3a2cd55 | 2011-11-10 14:17:35 -0800 | [diff] [blame] | 123 | |
| Colin Cross | c4b2568 | 2011-05-04 17:33:16 -0700 | [diff] [blame] | 124 | # Input device calibration files |
| 125 | PRODUCT_COPY_FILES += \ |
| Jeff Brown | be91eb2 | 2011-08-11 18:22:16 -0700 | [diff] [blame] | 126 | device/samsung/tuna/Melfas_MMSxxx_Touchscreen.idc:system/usr/idc/Melfas_MMSxxx_Touchscreen.idc |
| Colin Cross | c4b2568 | 2011-05-04 17:33:16 -0700 | [diff] [blame] | 127 | |
| Jeff Brown | bd545d8 | 2011-06-08 18:48:36 -0700 | [diff] [blame] | 128 | # These are the hardware-specific features |
| 129 | PRODUCT_COPY_FILES += \ |
| Colin Cross | 4284270 | 2012-03-26 16:25:50 -0700 | [diff] [blame] | 130 | frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \ |
| 131 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 132 | frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| 133 | frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ |
| 134 | frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
| 135 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ |
| 136 | frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
| 137 | frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \ |
| 138 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \ |
| 139 | frameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.hardware.sensor.barometer.xml \ |
| 140 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 141 | frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ |
| 142 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ |
| 143 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
| Keun young Park | 8a1d4ed | 2012-05-24 16:46:42 -0700 | [diff] [blame] | 144 | frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml |
| Jeff Brown | bd545d8 | 2011-06-08 18:48:36 -0700 | [diff] [blame] | 145 | |
| Dima Zavin | 9008922 | 2011-06-08 14:22:08 -0700 | [diff] [blame] | 146 | # Melfas touchscreen firmware |
| 147 | PRODUCT_COPY_FILES += \ |
| Dima Zavin | 049329a | 2011-09-20 09:33:43 -0700 | [diff] [blame] | 148 | device/samsung/tuna/mms144_ts_rev31.fw:system/vendor/firmware/mms144_ts_rev31.fw \ |
| 149 | device/samsung/tuna/mms144_ts_rev32.fw:system/vendor/firmware/mms144_ts_rev32.fw |
| Dima Zavin | 9008922 | 2011-06-08 14:22:08 -0700 | [diff] [blame] | 150 | |
| Erik Gilling | bba3d2f | 2011-12-13 15:13:49 -0800 | [diff] [blame] | 151 | # Portrait dock image |
| 152 | PRODUCT_COPY_FILES += \ |
| 153 | device/samsung/tuna/dock.png:system/vendor/res/images/dock/dock.png |
| 154 | |
| Nick Pelly | 46f0619 | 2011-11-21 14:54:34 -0800 | [diff] [blame] | 155 | # Commands to migrate prefs from com.android.nfc3 to com.android.nfc |
| Keun young Park | 8a1d4ed | 2012-05-24 16:46:42 -0700 | [diff] [blame] | 156 | PRODUCT_COPY_FILES += $(call add-to-product-copy-files-if-exists,\ |
| 157 | packages/apps/Nfc/migrate_nfc.txt:system/etc/updatecmds/migrate_nfc.txt) |
| Nick Pelly | 46f0619 | 2011-11-21 14:54:34 -0800 | [diff] [blame] | 158 | |
| Nick Pelly | 28a1fe0 | 2011-11-14 15:17:30 -0800 | [diff] [blame] | 159 | # file that declares the MIFARE NFC constant |
| 160 | PRODUCT_COPY_FILES += \ |
| Martijn Coenen | 3505f7c | 2012-04-12 21:31:43 -0700 | [diff] [blame] | 161 | frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml |
| Nick Pelly | 28a1fe0 | 2011-11-14 15:17:30 -0800 | [diff] [blame] | 162 | |
| 163 | # NFC EXTRAS add-on API |
| 164 | PRODUCT_PACKAGES += \ |
| 165 | com.android.nfc_extras |
| 166 | PRODUCT_COPY_FILES += \ |
| Ramanan Rajeswaran | ae0717d | 2012-04-12 13:19:33 -0700 | [diff] [blame] | 167 | frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml |
| Nick Pelly | 28a1fe0 | 2011-11-14 15:17:30 -0800 | [diff] [blame] | 168 | |
| Nick Pelly | 16bd12a | 2011-11-10 16:42:59 -0800 | [diff] [blame] | 169 | # NFCEE access control |
| 170 | ifeq ($(TARGET_BUILD_VARIANT),user) |
| 171 | NFCEE_ACCESS_PATH := device/samsung/tuna/nfcee_access.xml |
| 172 | else |
| 173 | NFCEE_ACCESS_PATH := device/samsung/tuna/nfcee_access_debug.xml |
| 174 | endif |
| 175 | PRODUCT_COPY_FILES += \ |
| 176 | $(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml |
| 177 | |
| Dima Zavin | 069f305 | 2011-05-25 10:44:13 -0700 | [diff] [blame] | 178 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 179 | ro.opengles.version=131072 |
| 180 | |
| 181 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 182 | ro.sf.lcd_density=320 |
| 183 | |
| Amith Yamasani | 0bf0d9d | 2011-09-22 13:49:01 -0700 | [diff] [blame] | 184 | PRODUCT_CHARACTERISTICS := nosdcard |
| Colin Cross | c151bcf | 2011-04-11 18:49:38 -0700 | [diff] [blame] | 185 | |
| 186 | PRODUCT_TAGS += dalvik.gc.type-precise |
| 187 | |
| 188 | PRODUCT_PACKAGES += \ |
| 189 | librs_jni \ |
| 190 | com.android.future.usb.accessory |
| 191 | |
| Colin Cross | 9595154 | 2011-04-22 12:21:45 -0700 | [diff] [blame] | 192 | # Filesystem management tools |
| 193 | PRODUCT_PACKAGES += \ |
| Ken Sumrall | 98fb2f5 | 2012-03-01 18:07:35 -0800 | [diff] [blame] | 194 | e2fsck \ |
| Ken Sumrall | a8d86db | 2011-06-03 13:24:42 -0700 | [diff] [blame] | 195 | setup_fs |
| Colin Cross | 9595154 | 2011-04-22 12:21:45 -0700 | [diff] [blame] | 196 | |
| Guang Zhu | 11b6f60 | 2011-07-19 18:43:54 -0700 | [diff] [blame] | 197 | # for bugmailer |
| Justin Ho | 9a0cc69 | 2011-12-06 15:01:09 -0800 | [diff] [blame] | 198 | PRODUCT_PACKAGES += send_bug |
| 199 | PRODUCT_COPY_FILES += \ |
| 200 | system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \ |
| 201 | system/extras/bugmailer/send_bug:system/bin/send_bug |
| Guang Zhu | 11b6f60 | 2011-07-19 18:43:54 -0700 | [diff] [blame] | 202 | |
| Dima Zavin | 2e2b60b | 2012-03-23 12:52:21 -0700 | [diff] [blame] | 203 | $(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk) |
| Dima Zavin | 069f305 | 2011-05-25 10:44:13 -0700 | [diff] [blame] | 204 | |
| Nick Pelly | c1cd79e | 2011-06-24 10:42:22 -0700 | [diff] [blame] | 205 | $(call inherit-product-if-exists, vendor/nxp/pn544/nxp-pn544-fw-vendor.mk) |
| Iliyan Malchev | 1626798 | 2011-08-08 11:33:59 -0700 | [diff] [blame] | 206 | $(call inherit-product, hardware/ti/omap4xxx/omap4.mk) |
| Colin Cross | c151bcf | 2011-04-11 18:49:38 -0700 | [diff] [blame] | 207 | $(call inherit-product-if-exists, vendor/ti/proprietary/omap4/ti-omap4-vendor.mk) |
| 208 | $(call inherit-product-if-exists, vendor/samsung/tuna/device-vendor.mk) |
| Dmitry Shmidt | 0f7779b | 2011-06-03 11:13:15 -0700 | [diff] [blame] | 209 | |
| Dmitry Shmidt | c007800 | 2011-06-15 15:26:33 -0700 | [diff] [blame] | 210 | BOARD_WLAN_DEVICE_REV := bcm4330_b2 |
| Dmitry Shmidt | 0003574 | 2011-06-09 11:16:48 -0700 | [diff] [blame] | 211 | WIFI_BAND := 802_11_ABG |
| Dmitry Shmidt | 0f7779b | 2011-06-03 11:13:15 -0700 | [diff] [blame] | 212 | $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk) |