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.

109 lines
4.8KB

  1. # Copyright (C) 2014 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. $(call inherit-product-if-exists, device/sony/customization/customization.mk)
  15. # Common path
  16. COMMON_PATH := device/sony/common
  17. # Build scripts
  18. SONY_CLEAR_VARS := $(COMMON_PATH)/sony_clear_vars.mk
  19. SONY_BUILD_SYMLINKS := $(COMMON_PATH)/sony_build_symlinks.mk
  20. DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay
  21. PRODUCT_ENFORCE_RRO_TARGETS := \
  22. framework-res
  23. # Force split of sepolicy into /system/etc/selinux and (/system)/vendor/etc/selinux
  24. # for all devices, regardless of shipping API level
  25. PRODUCT_SEPOLICY_SPLIT_OVERRIDE := true
  26. # Codecs Configuration
  27. PRODUCT_COPY_FILES += \
  28. frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
  29. frameworks/av/media/libstagefright/data/media_codecs_google_telephony.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_telephony.xml \
  30. frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml
  31. # Common etc
  32. PRODUCT_COPY_FILES += \
  33. $(COMMON_PATH)/rootdir/system/etc/nfcee_access.xml:system/etc/nfcee_access.xml
  34. # GPS Configuration
  35. PRODUCT_COPY_FILES += \
  36. $(COMMON_PATH)/rootdir/vendor/etc/gps.conf:$(TARGET_COPY_OUT_VENDOR)/etc/gps.conf \
  37. $(COMMON_PATH)/rootdir/system/etc/gps_debug.conf:system/etc/gps_debug.conf
  38. # Sensors common
  39. PRODUCT_COPY_FILES += \
  40. $(COMMON_PATH)/rootdir/vendor/etc/sensors/sensors_settings:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensors_settings
  41. # QMI
  42. PRODUCT_COPY_FILES += \
  43. $(COMMON_PATH)/rootdir/vendor/etc/data/dsi_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/data/dsi_config.xml \
  44. $(COMMON_PATH)/rootdir/vendor/etc/data/netmgr_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/data/netmgr_config.xml \
  45. $(COMMON_PATH)/rootdir/vendor/etc/data/qmi_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/data/qmi_config.xml
  46. # Sec Configuration
  47. PRODUCT_COPY_FILES += \
  48. $(COMMON_PATH)/rootdir/vendor/etc/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
  49. # Seccomp policy
  50. PRODUCT_COPY_FILES += \
  51. $(COMMON_PATH)/rootdir/vendor/etc/seccomp_policy/mediaextractor.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaextractor.policy \
  52. $(COMMON_PATH)/rootdir/vendor/etc/seccomp_policy/mediacodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy
  53. # Audio Configuration
  54. PRODUCT_COPY_FILES += \
  55. $(COMMON_PATH)/rootdir/vendor/etc/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
  56. frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
  57. frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
  58. frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
  59. frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
  60. frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml
  61. # Public Libraries
  62. PRODUCT_COPY_FILES += \
  63. $(COMMON_PATH)/rootdir/vendor/etc/public.libraries.txt:$(TARGET_COPY_OUT_VENDOR)/etc/public.libraries.txt
  64. # PRODUCT_PLATFORM isn't set yet, thus we check the available path
  65. ifneq (,$(filter userdebug eng,$(TARGET_BUILD_VARIANT)))
  66. # ramdump cleaner
  67. PRODUCT_PACKAGES += \
  68. rdclean.sh
  69. endif
  70. # Depend on symlink creation in /vendor:
  71. PRODUCT_PACKAGES += \
  72. adreno_symlinks \
  73. camera_symlinks \
  74. qca_cld3_symlinks \
  75. tftp_symlinks
  76. # Create firmware mount point folders in /vendor:
  77. PRODUCT_PACKAGES += \
  78. firmware_folders
  79. # APN list
  80. PRODUCT_COPY_FILES += \
  81. device/sample/etc/old-apns-conf.xml:system/etc/old-apns-conf.xml \
  82. device/sample/etc/apns-full-conf.xml:system/etc/apns-conf.xml
  83. $(call inherit-product, device/sony/common/common-init.mk)
  84. $(call inherit-product, device/sony/common/common-odm.mk)
  85. $(call inherit-product, device/sony/common/common-packages.mk)
  86. $(call inherit-product, device/sony/common/common-perm.mk)
  87. $(call inherit-product, device/sony/common/common-prop.mk)
  88. $(call inherit-product, device/sony/common/common-treble.mk)