You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

186 lines
7.4 KiB

  1. #
  2. # Copyright (C) 2012 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. COMMON_PATH := device/samsung/galaxys2-common
  17. DEVICE_PACKAGE_OVERLAYS := $(COMMON_PATH)/overlay
  18. # Rootdir
  19. PRODUCT_COPY_FILES := \
  20. $(COMMON_PATH)/rootdir/fstab.smdk4210:root/fstab.smdk4210 \
  21. $(COMMON_PATH)/rootdir/init.smdk4210.usb.rc:root/init.smdk4210.usb.rc \
  22. $(COMMON_PATH)/rootdir/init.smdk4210.rc:root/init.smdk4210.rc \
  23. $(COMMON_PATH)/rootdir/ueventd.smdk4210.rc:root/ueventd.smdk4210.rc
  24. # Recovery rootdir
  25. PRODUCT_COPY_FILES += \
  26. $(COMMON_PATH)/rootdir/init.recovery.smdk4210.rc:root/init.recovery.smdk4210.rc
  27. # Netflix hack
  28. PRODUCT_COPY_FILES += \
  29. $(COMMON_PATH)/configs/98netflix:system/etc/init.d/98netflix
  30. # Audio
  31. PRODUCT_COPY_FILES += \
  32. $(COMMON_PATH)/configs/tinyalsa-audio.xml:system/etc/tinyalsa-audio.xml \
  33. $(COMMON_PATH)/configs/audio_policy.conf:system/etc/audio_policy.conf
  34. # Wifi
  35. PRODUCT_COPY_FILES += \
  36. $(COMMON_PATH)/configs/wpa_supplicant_overlay.conf:system/etc/wifi/wpa_supplicant_overlay.conf \
  37. $(COMMON_PATH)/configs/p2p_supplicant_overlay.conf:system/etc/wifi/p2p_supplicant_overlay.conf
  38. PRODUCT_PROPERTY_OVERRIDES += \
  39. wifi.interface=wlan0 \
  40. wifi.supplicant_scan_interval=30 \
  41. net.tethering.noprovisioning=true
  42. $(call inherit-product-if-exists, hardware/broadcom/wlan/bcmdhd/firmware/bcm4330/device-bcm.mk)
  43. # Packages
  44. PRODUCT_PACKAGES := \
  45. com.android.future.usb.accessory \
  46. SamsungServiceMode
  47. # Audio Packages
  48. PRODUCT_PACKAGES += \
  49. AdvancedDisplay \
  50. audio.primary.exynos4 \
  51. audio.a2dp.default \
  52. audio.r_submix.default \
  53. audio.usb.default \
  54. libaudiohw_legacy \
  55. libaudio-ril-interface
  56. # HAL
  57. PRODUCT_PACKAGES += \
  58. camera.smdk4210 \
  59. hwcomposer.exynos4 \
  60. libnetcmdiface \
  61. lights.exynos4 \
  62. libhwconverter \
  63. libs5pjpeg \
  64. libfimg \
  65. libsecion
  66. # Charger
  67. PRODUCT_PACKAGES += \
  68. charger \
  69. charger_res_images
  70. # MFC API
  71. PRODUCT_PACKAGES += \
  72. libsecmfcapi
  73. # OMX
  74. PRODUCT_PACKAGES += \
  75. libstagefrighthw \
  76. libseccscapi \
  77. libsecbasecomponent \
  78. libsecosal \
  79. libSEC_OMX_Resourcemanager \
  80. libSEC_OMX_Core \
  81. libSEC_OMX_Vdec \
  82. libOMX.SEC.AVC.Decoder \
  83. libOMX.SEC.M4V.Decoder \
  84. libOMX.SEC.WMV.Decoder \
  85. libOMX.SEC.AVC.Encoder \
  86. libSEC_OMX_Venc \
  87. libOMX.SEC.M4V.Encoder
  88. PRODUCT_COPY_FILES += \
  89. $(COMMON_PATH)/configs/media_codecs.xml:system/etc/media_codecs.xml \
  90. $(COMMON_PATH)/configs/media_profiles.xml:system/etc/media_profiles.xml \
  91. frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:system/etc/media_codecs_google_audio.xml \
  92. frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:system/etc/media_codecs_google_telephony.xml \
  93. frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:system/etc/media_codecs_google_video.xml
  94. # Graphics
  95. PRODUCT_PROPERTY_OVERRIDES += \
  96. ro.opengles.version=131072 \
  97. ro.zygote.disable_gl_preload=true \
  98. ro.bq.gpu_to_cpu_unsupported=1 \
  99. debug.hwui.render_dirty_regions=false
  100. # RIL
  101. PRODUCT_PACKAGES += \
  102. libsamsung-ril
  103. PRODUCT_PROPERTY_OVERRIDES += \
  104. mobiledata.interfaces=pdp0,gprs,ppp0,rmnet0,rmnet1 \
  105. ro.telephony.call_ring.multiple=false \
  106. ro.telephony.call_ring.delay=3000
  107. # Filesystem management tools
  108. PRODUCT_PACKAGES += \
  109. make_ext4fs \
  110. resize2fs_static \
  111. setup_fs
  112. # F2FS Filesystem
  113. PRODUCT_PACKAGES += \
  114. fsck.f2fs \
  115. mkfs.f2fs
  116. # Wifi
  117. PRODUCT_PACKAGES += \
  118. dhcpcd.conf \
  119. hostapd \
  120. libwpa_client \
  121. macloader \
  122. wpa_supplicant \
  123. wpa_supplicant.conf
  124. # These are the hardware-specific features
  125. PRODUCT_COPY_FILES += \
  126. frameworks/native/data/etc/android.hardware.camera.autofocus.xml:system/etc/permissions/android.hardware.camera.autofocus.xml \
  127. frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:system/etc/permissions/android.hardware.camera.flash-autofocus.xml \
  128. frameworks/native/data/etc/android.hardware.camera.front.xml:system/etc/permissions/android.hardware.camera.front.xml \
  129. frameworks/native/data/etc/android.hardware.camera.xml:system/etc/permissions/android.hardware.camera.xml \
  130. frameworks/native/data/etc/android.hardware.location.xml:system/etc/permissions/android.hardware.location.xml \
  131. frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.hardware.sensor.accelerometer.xml \
  132. frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hardware.sensor.compass.xml \
  133. frameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.hardware.sensor.gyroscope.xml \
  134. frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardware.sensor.light.xml \
  135. frameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.hardware.sensor.proximity.xml \
  136. frameworks/native/data/etc/android.hardware.telephony.gsm.xml:system/etc/permissions/android.hardware.telephony.gsm.xml \
  137. frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
  138. frameworks/native/data/etc/android.hardware.touchscreen.multitouch.xml:system/etc/permissions/android.hardware.touchscreen.multitouch.xml \
  139. frameworks/native/data/etc/android.hardware.touchscreen.xml:system/etc/permissions/android.hardware.touchscreen.xml \
  140. frameworks/native/data/etc/android.hardware.usb.accessory.xml:system/etc/permissions/android.hardware.usb.accessory.xml \
  141. frameworks/native/data/etc/android.hardware.usb.host.xml:system/etc/permissions/android.hardware.usb.host.xml \
  142. frameworks/native/data/etc/android.hardware.wifi.direct.xml:system/etc/permissions/android.hardware.wifi.direct.xml \
  143. frameworks/native/data/etc/android.hardware.wifi.xml:system/etc/permissions/android.hardware.wifi.xml \
  144. frameworks/native/data/etc/android.software.sip.voip.xml:system/etc/permissions/android.software.sip.voip.xml \
  145. frameworks/native/data/etc/android.software.sip.xml:system/etc/permissions/android.software.sip.xml \
  146. frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
  147. frameworks/native/data/etc/android.hardware.bluetooth_le.xml:system/etc/permissions/android.hardware.bluetooth_le.xml
  148. PRODUCT_TAGS += dalvik.gc.type-precise
  149. # Keylayouts
  150. PRODUCT_COPY_FILES += \
  151. $(LOCAL_PATH)/configs/excluded-input-devices.xml:system/etc/excluded-input-devices.xml
  152. $(call inherit-product, frameworks/native/build/phone-hdpi-512-dalvik-heap.mk)
  153. # Include exynos4 platform specific parts
  154. TARGET_HAL_PATH := hardware/samsung/exynos4/hal
  155. TARGET_OMX_PATH := hardware/samsung/exynos/multimedia/openmax
  156. $(call inherit-product, hardware/samsung/exynos4210.mk)
  157. # Include non-open-source parts
  158. $(call inherit-product-if-exists, vendor/samsung/galaxys2-common/common-vendor.mk)