nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2012 The CyanogenMod 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 | |
codeworkx | 171d0d9 | 2012-11-11 10:36:08 +0100 | [diff] [blame] | 17 | COMMON_PATH := device/samsung/smdk4412-common |
| 18 | |
| 19 | DEVICE_PACKAGE_OVERLAYS := $(COMMON_PATH)/overlay |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 20 | |
| 21 | PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0 |
| 22 | |
| 23 | $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk) |
| 24 | |
| 25 | # The gps config appropriate for this device |
| 26 | $(call inherit-product, device/common/gps/gps_us_supl.mk) |
| 27 | |
| 28 | # Init files |
| 29 | PRODUCT_COPY_FILES := \ |
Daniel Hillenbrand | a6d6fa2 | 2013-08-10 17:47:36 +0200 | [diff] [blame] | 30 | $(COMMON_PATH)/rootdir/init.smdk4x12.rc:root/init.smdk4x12.rc \ |
codeworkx | 9ca23f8 | 2013-07-30 01:20:12 +0200 | [diff] [blame] | 31 | $(COMMON_PATH)/rootdir/init.smdk4x12.usb.rc:root/init.smdk4x12.usb.rc \ |
| 32 | $(COMMON_PATH)/rootdir/lpm.rc:root/lpm.rc \ |
| 33 | $(COMMON_PATH)/rootdir/init.trace.rc:root/init.trace.rc \ |
| 34 | $(COMMON_PATH)/rootdir/ueventd.smdk4x12.rc:root/ueventd.smdk4x12.rc \ |
| 35 | $(COMMON_PATH)/rootdir/ueventd.smdk4x12.rc:recovery/root/ueventd.smdk4x12.rc |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 36 | |
| 37 | # Audio |
| 38 | PRODUCT_COPY_FILES += \ |
codeworkx | 7d504ec | 2012-11-23 17:54:59 +0100 | [diff] [blame] | 39 | $(COMMON_PATH)/configs/audio_effects.conf:system/etc/audio_effects.conf \ |
Ricardo Cerqueira | 60fff34 | 2014-05-18 17:40:50 +0000 | [diff] [blame] | 40 | $(COMMON_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf \ |
| 41 | $(COMMON_PATH)/audio/silence.wav:system/etc/sound/silence.wav |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 42 | |
codeworkx | 993cbfb | 2013-03-13 17:00:06 +0000 | [diff] [blame] | 43 | # Camera FW |
| 44 | PRODUCT_COPY_FILES += \ |
| 45 | $(COMMON_PATH)/configs/80cfw:system/etc/init.d/80cfw |
| 46 | |
Ricardo Cerqueira | 46a81cc | 2013-09-02 21:37:09 +0200 | [diff] [blame] | 47 | # Netflix hack |
| 48 | PRODUCT_COPY_FILES += \ |
| 49 | $(COMMON_PATH)/configs/98netflix:system/etc/init.d/98netflix |
| 50 | |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 51 | # Wifi |
| 52 | PRODUCT_COPY_FILES += \ |
codeworkx | 171d0d9 | 2012-11-11 10:36:08 +0100 | [diff] [blame] | 53 | $(COMMON_PATH)/configs/wpa_supplicant.conf:system/etc/wifi/wpa_supplicant.conf |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 54 | |
| 55 | PRODUCT_PROPERTY_OVERRIDES += \ |
| 56 | wifi.interface=wlan0 \ |
| 57 | wifi.supplicant_scan_interval=15 |
| 58 | |
| 59 | # Gps |
| 60 | PRODUCT_COPY_FILES += \ |
codeworkx | 171d0d9 | 2012-11-11 10:36:08 +0100 | [diff] [blame] | 61 | $(COMMON_PATH)/configs/gps.conf:system/etc/gps.conf |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 62 | |
| 63 | # Packages |
| 64 | PRODUCT_PACKAGES := \ |
Ricardo Cerqueira | de1305c | 2013-10-25 17:27:47 +0100 | [diff] [blame] | 65 | AdvancedDisplay \ |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 66 | audio.a2dp.default \ |
| 67 | audio.primary.smdk4x12 \ |
| 68 | audio.usb.default \ |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 69 | com.android.future.usb.accessory \ |
codeworkx | ed2a098 | 2012-12-01 23:59:59 +0100 | [diff] [blame] | 70 | gralloc.exynos4 \ |
| 71 | hwcomposer.exynos4 \ |
Daniel Hillenbrand | 9498ee7 | 2013-06-14 16:19:30 +0200 | [diff] [blame] | 72 | libfimg \ |
codeworkx | bfc72f4 | 2012-11-27 00:45:06 +0100 | [diff] [blame] | 73 | libnetcmdiface \ |
codeworkx | 4bfa6df | 2013-02-24 11:56:42 +0000 | [diff] [blame] | 74 | libsecion \ |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 75 | libsync \ |
codeworkx | 171d0d9 | 2012-11-11 10:36:08 +0100 | [diff] [blame] | 76 | lights.exynos4 \ |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 77 | macloader \ |
sbrissen | 832bd42 | 2014-01-10 12:12:14 -0500 | [diff] [blame] | 78 | tinymix |
| 79 | |
| 80 | ifneq ($(TARGET_HAS_CAM_FLASH) ,false) |
| 81 | PRODUCT_PACKAGES += \ |
| 82 | Torch |
| 83 | endif |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 84 | |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 85 | # MFC API |
| 86 | PRODUCT_PACKAGES += \ |
| 87 | libsecmfcdecapi \ |
| 88 | libsecmfcencapi |
| 89 | |
| 90 | # OMX |
| 91 | PRODUCT_PACKAGES += \ |
| 92 | libstagefrighthw \ |
| 93 | libSEC_OMX_Resourcemanager \ |
| 94 | libSEC_OMX_Core \ |
| 95 | libOMX.SEC.AVC.Decoder \ |
| 96 | libOMX.SEC.M4V.Decoder \ |
| 97 | libOMX.SEC.WMV.Decoder \ |
| 98 | libOMX.SEC.AVC.Encoder \ |
| 99 | libOMX.SEC.M4V.Encoder |
| 100 | # libOMX.SEC.VP8.Decoder |
| 101 | |
| 102 | PRODUCT_COPY_FILES += \ |
codeworkx | 171d0d9 | 2012-11-11 10:36:08 +0100 | [diff] [blame] | 103 | $(COMMON_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \ |
| 104 | $(COMMON_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 105 | |
| 106 | # Filesystem management tools |
| 107 | PRODUCT_PACKAGES += \ |
| 108 | static_busybox \ |
| 109 | make_ext4fs \ |
| 110 | setup_fs |
| 111 | |
| 112 | # Live Wallpapers |
| 113 | PRODUCT_PACKAGES += \ |
| 114 | Galaxy4 \ |
| 115 | HoloSpiralWallpaper \ |
| 116 | LiveWallpapers \ |
| 117 | LiveWallpapersPicker \ |
| 118 | MagicSmokeWallpapers \ |
| 119 | NoiseField \ |
| 120 | PhaseBeam \ |
| 121 | VisualizationWallpapers \ |
| 122 | librs_jni |
| 123 | |
| 124 | # These are the hardware-specific features |
| 125 | PRODUCT_COPY_FILES += \ |
| 126 | frameworks/native/data/etc/android.hardware.audio.low_latency.xml:system/etc/permissions/android.hardware.audio.low_latency.xml \ |
Daniel Hillenbrand | 1e9993a | 2013-08-14 19:55:10 +0200 | [diff] [blame] | 127 | frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml \ |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 128 | frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \ |
| 129 | frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \ |
| 130 | frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \ |
| 131 | frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \ |
| 132 | frameworks/native/data/etc/android.hardware.location.gps.xml:system/etc/permissions/android.hardware.location.gps.xml \ |
| 133 | frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \ |
| 134 | frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \ |
| 135 | frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \ |
| 136 | frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.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.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \ |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 139 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \ |
| 140 | frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \ |
| 141 | frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \ |
| 142 | frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \ |
| 143 | frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \ |
| 144 | frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \ |
| 145 | frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \ |
| 146 | frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \ |
codeworkx | b72eaab | 2012-11-11 11:22:43 +0100 | [diff] [blame] | 147 | frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 148 | |
| 149 | # Feature live wallpaper |
| 150 | PRODUCT_COPY_FILES += \ |
| 151 | packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:system/etc/permissions/android.software.live_wallpaper.xml |
| 152 | |
codeworkx | 4eb4314 | 2013-08-07 19:12:18 +0200 | [diff] [blame] | 153 | # Graphics |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 154 | PRODUCT_PROPERTY_OVERRIDES += \ |
Ricardo Cerqueira | 9af9b69 | 2013-11-02 17:43:31 +0000 | [diff] [blame] | 155 | ro.zygote.disable_gl_preload=1 \ |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 156 | ro.opengles.version=131072 \ |
Ricardo Cerqueira | 9af9b69 | 2013-11-02 17:43:31 +0000 | [diff] [blame] | 157 | ro.bq.gpu_to_cpu_unsupported=1 \ |
Ricardo Cerqueira | 0607cc2 | 2013-10-25 23:44:05 +0100 | [diff] [blame] | 158 | debug.hwui.render_dirty_regions=false |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 159 | |
| 160 | PRODUCT_TAGS += dalvik.gc.type-precise |
| 161 | |
| 162 | # Set default USB interface |
| 163 | PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ |
| 164 | persist.sys.usb.config=mtp |
| 165 | |
| 166 | $(call inherit-product, frameworks/native/build/phone-xhdpi-1024-dalvik-heap.mk) |
| 167 | |
| 168 | # Include exynos4 platform specific parts |
| 169 | TARGET_HAL_PATH := hardware/samsung/exynos4/hal |
| 170 | TARGET_OMX_PATH := hardware/samsung/exynos/multimedia/openmax |
| 171 | $(call inherit-product, hardware/samsung/exynos4x12.mk) |
nebkat | ee1a839 | 2012-11-10 10:36:07 +0000 | [diff] [blame] | 172 | |
Daniel Hillenbrand | c08fc8c | 2013-09-07 22:18:07 +0200 | [diff] [blame] | 173 | # Include non-opensource parts |
| 174 | $(call inherit-product, vendor/samsung/smdk4412-common/common-vendor.mk) |