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