blob: e75d1818d37d3e9dd1d4ad1a6d0832aa400c7f35 [file] [log] [blame]
Ying Wang0ea9ad82011-03-15 10:36:33 -07001# 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.
42DEVICE_PACKAGE_OVERLAYS := device/samsung/crespo/overlay
43
44# These are the hardware-specific configuration files
45PRODUCT_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
50PRODUCT_COPY_FILES += \
51 device/samsung/crespo/init.herring.rc:root/init.herring.rc \
Mike Lockwood9d622a42011-06-09 17:27:20 -070052 device/samsung/crespo/init.herring.usb.rc:root/init.herring.usb.rc \
Ying Wang0ea9ad82011-03-15 10:36:33 -070053 device/samsung/crespo/ueventd.herring.rc:root/ueventd.herring.rc
54
Ying Wang39e4b9e2011-03-15 15:38:37 -070055# Prebuilt kl and kcm keymaps
Ying Wang0ea9ad82011-03-15 10:36:33 -070056PRODUCT_COPY_FILES += \
57 device/samsung/crespo/s3c-keypad.kl:system/usr/keylayout/s3c-keypad.kl \
Ying Wang39e4b9e2011-03-15 15:38:37 -070058 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 Wang0ea9ad82011-03-15 10:36:33 -070061 device/samsung/crespo/cypress-touchkey.kl:system/usr/keylayout/cypress-touchkey.kl \
Ying Wang39e4b9e2011-03-15 15:38:37 -070062 device/samsung/crespo/cypress-touchkey.kcm:system/usr/keychars/cypress-touchkey.kcm \
Ying Wang0ea9ad82011-03-15 10:36:33 -070063 device/samsung/crespo/sec_jack.kl:system/usr/keylayout/sec_jack.kl \
Jeff Brownceea45b2011-06-23 15:39:31 -070064 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 Wang0ea9ad82011-03-15 10:36:33 -070067
Jaikumar Ganeshc5c20662011-05-26 11:16:07 -070068#Bluetooth setup
69PRODUCT_COPY_FILES += \
70 system/bluetooth/data/main.conf:system/etc/bluetooth/main.conf \
71
Jean-Baptiste Queru1c8cfa42011-05-19 15:58:01 -070072#NVRAM setup
73PRODUCT_COPY_FILES += \
74 device/samsung/crespo/nvram_net.txt:system/vendor/firmware/nvram_net.txt
75
76#MFC Firmware
77PRODUCT_COPY_FILES += \
78 device/samsung/crespo/samsung_mfc_fw.bin:system/vendor/firmware/samsung_mfc_fw.bin
79
Nick Pelly9c87fac2011-11-10 18:16:45 -080080# NFCEE access control
81ifeq ($(TARGET_BUILD_VARIANT),user)
82 NFCEE_ACCESS_PATH := device/samsung/tuna/nfcee_access.xml
83else
84 NFCEE_ACCESS_PATH := device/samsung/tuna/nfcee_access_debug.xml
85endif
86PRODUCT_COPY_FILES += \
87 $(NFCEE_ACCESS_PATH):system/etc/nfcee_access.xml
88
Ying Wang0ea9ad82011-03-15 10:36:33 -070089# Generated kcm keymaps
90PRODUCT_PACKAGES := \
91 s3c-keypad.kcm \
92 cypress-touchkey.kcm
93
94# Filesystem management tools
95PRODUCT_PACKAGES += \
96 make_ext4fs \
97 setup_fs
98
99PRODUCT_CHARACTERISTICS := nosdcard
100
101# These are the OpenMAX IL configuration files
102PRODUCT_COPY_FILES += \
103 device/samsung/crespo/sec_mm/sec_omx/sec_omx_core/secomxregistry:system/etc/secomxregistry \
104 device/samsung/crespo/media_profiles.xml:system/etc/media_profiles.xml
105
106
107# These are the OpenMAX IL modules
108PRODUCT_PACKAGES += \
109 libSEC_OMX_Core \
110 libOMX.SEC.AVC.Decoder \
111 libOMX.SEC.M4V.Decoder \
112 libOMX.SEC.M4V.Encoder \
113 libOMX.SEC.AVC.Encoder
114
115# Misc other modules
116PRODUCT_PACKAGES += \
117 lights.s5pc110 \
jung-min.oh7c54f812011-08-06 13:08:34 +0900118 hwcomposer.s5pc110 \
119 sensors.herring
Ying Wang0ea9ad82011-03-15 10:36:33 -0700120
Iliyan Malchev05df7dc2011-06-06 17:56:20 -0700121# Camera
122PRODUCT_PACKAGES += \
Jeong-Seok Yang114856a2011-06-08 20:28:48 +0900123 camera.herring
Iliyan Malchev05df7dc2011-06-06 17:56:20 -0700124
Dima Zavin99ba1352011-04-20 01:22:02 -0700125# audio
126PRODUCT_PACKAGES += \
127 audio_policy.herring \
128 audio.primary.herring \
Eric Laurent89c5a822011-08-17 09:07:18 -0700129 audio.a2dp.default \
130 libaudioutils
Dima Zavin99ba1352011-04-20 01:22:02 -0700131
Martijn Coenen3dfd1452011-11-03 11:45:42 -0700132# NFC
133PRODUCT_PACKAGES += \
134 nfc.herring
135
Ying Wang0ea9ad82011-03-15 10:36:33 -0700136# Libs
137PRODUCT_PACKAGES += \
138 libcamera \
139 libstagefrighthw \
140 com.android.future.usb.accessory
141
Ying Wang0ea9ad82011-03-15 10:36:33 -0700142# Input device calibration files
143PRODUCT_COPY_FILES += \
144 device/samsung/crespo/mxt224_ts_input.idc:system/usr/idc/mxt224_ts_input.idc
145
Jean-Baptiste Queruc5774712011-07-18 10:26:42 -0700146# for bugmailer
Guang Zhuc1c0bed2011-07-19 18:41:25 -0700147ifneq ($(TARGET_BUILD_VARIANT),user)
148 PRODUCT_PACKAGES += send_bug
149 PRODUCT_COPY_FILES += \
150 system/extras/bugmailer/bugmailer.sh:system/bin/bugmailer.sh \
151 system/extras/bugmailer/send_bug:system/bin/send_bug
152endif
Jean-Baptiste Queruc5774712011-07-18 10:26:42 -0700153
Ying Wang0ea9ad82011-03-15 10:36:33 -0700154# These are the hardware-specific features
155PRODUCT_COPY_FILES += \
Jean-Baptiste Queruf8a678a2011-06-10 15:17:51 -0700156 device/sample/nxp/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
Ying Wang0ea9ad82011-03-15 10:36:33 -0700157 frameworks/base/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
158 frameworks/base/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
159 frameworks/base/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
160 frameworks/base/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \
161 frameworks/base/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
162 frameworks/base/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
163 frameworks/base/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
164 frameworks/base/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
165 frameworks/base/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
166 frameworks/base/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
167 frameworks/base/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
168 frameworks/base/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
169 packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml
170
171# The OpenGL ES API level that is natively supported by this device.
172# This is a 16.16 fixed point number
173PRODUCT_PROPERTY_OVERRIDES := \
174 ro.opengles.version=131072
175
176# These are the hardware-specific settings that are stored in system properties.
177# Note that the only such settings should be the ones that are too low-level to
178# be reachable from resources or other mechanisms.
179PRODUCT_PROPERTY_OVERRIDES += \
Ying Wang39e4b9e2011-03-15 15:38:37 -0700180 wifi.interface=wlan0 \
181 wifi.supplicant_scan_interval=15
182
Mike Lockwood81d28082011-06-08 16:42:26 -0700183# Set default USB interface
Mike Lockwooda03410b2011-06-09 17:26:15 -0700184PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \
Mike Lockwood81d28082011-06-08 16:42:26 -0700185 persist.sys.usb.config=mass_storage
186
Ying Wang39e4b9e2011-03-15 15:38:37 -0700187include frameworks/base/build/phone-hdpi-512-dalvik-heap.mk
Ying Wang0ea9ad82011-03-15 10:36:33 -0700188
189# we have enough storage space to hold precise GC data
190PRODUCT_TAGS += dalvik.gc.type-precise
191
Ying Wangf45551b2011-03-16 11:08:20 -0700192# Screen size is "normal", density is "hdpi"
193PRODUCT_AAPT_CONFIG := normal hdpi
Ying Wang0ea9ad82011-03-15 10:36:33 -0700194
JP Abgrall3b10d5e2011-04-12 16:47:07 -0700195ifeq ($(TARGET_PREBUILT_WIFI_MODULE),)
196LOCAL_WIFI_MODULE := device/samsung/crespo/bcm4329.ko
197else
198LOCAL_WIFI_MODULE := $(TARGET_PREBUILT_WIFI_MODULE)
199endif
200
Ying Wang0ea9ad82011-03-15 10:36:33 -0700201PRODUCT_COPY_FILES += \
JP Abgrall3b10d5e2011-04-12 16:47:07 -0700202 $(LOCAL_WIFI_MODULE):system/modules/bcm4329.ko
Ying Wang0ea9ad82011-03-15 10:36:33 -0700203
204ifeq ($(TARGET_PREBUILT_KERNEL),)
205LOCAL_KERNEL := device/samsung/crespo/kernel
206else
207LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
208endif
209
210PRODUCT_COPY_FILES += \
211 $(LOCAL_KERNEL):kernel
Nick Pellye2b2a542011-06-24 10:43:30 -0700212
213$(call inherit-product-if-exists, vendor/nxp/pn544/nxp-pn544-fw-vendor.mk)