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.

135 lines
4.2KB

  1. # Copyright 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. -include device/sony/customization/Customization.mk
  15. # Common path
  16. COMMON_PATH := device/sony/common
  17. # Do not build proprietary capability
  18. TARGET_USES_AOSP := true
  19. TARGET_BOARD_AUTO := true
  20. TARGET_NO_RADIOIMAGE := true
  21. TARGET_NO_BOOTLOADER := true
  22. TARGET_NO_RECOVERY ?= false
  23. TARGET_NO_KERNEL := false
  24. # common cmdline parameters
  25. ifneq ($(BOARD_USE_ENFORCING_SELINUX),true)
  26. BOARD_KERNEL_CMDLINE += androidboot.selinux=permissive
  27. endif
  28. #BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200,n8 androidboot.console=ttyMSM0
  29. BOARD_KERNEL_CMDLINE += msm_rtb.filter=0x3F ehci-hcd.park=3
  30. BOARD_KERNEL_CMDLINE += coherent_pool=8M
  31. BOARD_KERNEL_CMDLINE += sched_enable_power_aware=1 user_debug=31
  32. BOARD_KERNEL_CMDLINE += cgroup.memory=nokmem
  33. BOARD_KERNEL_CMDLINE += printk.devkmsg=on
  34. BOARD_MKBOOTIMG_ARGS := --ramdisk_offset $(BOARD_RAMDISK_OFFSET) --tags_offset $(BOARD_KERNEL_TAGS_OFFSET)
  35. TARGET_KERNEL_ARCH := arm64
  36. TARGET_KERNEL_HEADER_ARCH := arm64
  37. TARGET_KERNEL_CROSS_COMPILE_PREFIX := aarch64-linux-android-
  38. BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
  39. # Use mke2fs to create ext4 images
  40. TARGET_USES_MKE2FS := true
  41. TARGET_USERIMAGES_USE_EXT4 := true
  42. BOARD_ROOT_EXTRA_FOLDERS := odm
  43. BOARD_ROOT_EXTRA_SYMLINKS += /$(TARGET_COPY_OUT_VENDOR)/dsp:/dsp
  44. BOARD_ROOT_EXTRA_SYMLINKS += /$(TARGET_COPY_OUT_VENDOR)/firmware_mnt:/firmware
  45. BOARD_ROOT_EXTRA_SYMLINKS += /$(TARGET_COPY_OUT_VENDOR)/bt_firmware:/bt_firmware
  46. BOARD_ROOT_EXTRA_SYMLINKS += /mnt/vendor/persist:/persist
  47. # Filesystem
  48. TARGET_FS_CONFIG_GEN := $(COMMON_PATH)/config.fs
  49. # GFX
  50. USE_OPENGL_RENDERER := true
  51. BOARD_USES_ADRENO := true
  52. TARGET_USES_ION := true
  53. MAX_EGL_CACHE_KEY_SIZE := 12*1024
  54. MAX_EGL_CACHE_SIZE := 2048*1024
  55. OVERRIDE_RS_DRIVER := libRSDriver_adreno.so
  56. TARGET_FORCE_HWC_FOR_VIRTUAL_DISPLAYS := true
  57. # Display
  58. NUM_FRAMEBUFFER_SURFACE_BUFFERS := 3
  59. TARGET_USES_COLOR_METADATA := true
  60. TARGET_USES_HWC2 := true
  61. # Audio
  62. BOARD_USES_ALSA_AUDIO := true
  63. AUDIO_FEATURE_ENABLED_MULTI_VOICE_SESSIONS := true
  64. USE_XML_AUDIO_POLICY_CONF := 1
  65. # Camera
  66. BOARD_QTI_CAMERA_32BIT_ONLY := true
  67. BOARD_QTI_CAMERA_V2 := true
  68. CAMERA_DAEMON_NOT_PRESENT := true
  69. # GPS definitions for Qualcomm solution
  70. BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := $(TARGET_BOARD_PLATFORM)
  71. BOARD_VENDOR_QCOM_LOC_PDK_FEATURE_SET := true
  72. TARGET_NO_RPC := true
  73. # Charger
  74. BOARD_CHARGER_DISABLE_INIT_BLANK := true
  75. BOARD_CHARGER_ENABLE_SUSPEND := true
  76. # Enable dex-preoptimization to speed up first boot sequence
  77. ifeq ($(HOST_OS),linux)
  78. ifneq ($(TARGET_BUILD_VARIANT),eng)
  79. ifeq ($(WITH_DEXPREOPT),)
  80. WITH_DEXPREOPT := true
  81. endif
  82. endif
  83. endif
  84. WITH_DEXPREOPT_BOOT_IMG_AND_SYSTEM_SERVER_ONLY ?= true
  85. BUILD_KERNEL := true
  86. -include $(KERNEL_PATH)/common-headers/KernelHeaders.mk
  87. -include $(KERNEL_PATH)/common-kernel/KernelConfig.mk
  88. # Include build helpers for QCOM proprietary
  89. -include vendor/qcom/proprietary/common/build/proprietary-build.mk
  90. # SELinux
  91. include device/sony/sepolicy/sepolicy.mk
  92. DEVICE_MANIFEST_FILE := $(COMMON_PATH)/vintf/manifest.xml
  93. DEVICE_MATRIX_FILE := $(COMMON_PATH)/vintf/compatibility_matrix.xml
  94. # Custom NXP vendor interfaces
  95. DEVICE_MANIFEST_FILE += $(COMMON_PATH)/vintf/vendor.nxp.nfc.interfaces.xml
  96. ifeq ($(PRODUCT_DEVICE_DS),true)
  97. DEVICE_MANIFEST_FILE += $(COMMON_PATH)/vintf/android.hw.radio_ds.xml
  98. DEVICE_MANIFEST_FILE += $(COMMON_PATH)/vintf/vendor.hw.radio_ds.xml
  99. else
  100. DEVICE_MANIFEST_FILE += $(COMMON_PATH)/vintf/android.hw.radio_ss.xml
  101. DEVICE_MANIFEST_FILE += $(COMMON_PATH)/vintf/vendor.hw.radio_ss.xml
  102. endif
  103. ifeq ($(TARGET_KEYMASTER_V4),true)
  104. DEVICE_MANIFEST_FILE += $(COMMON_PATH)/vintf/android.hw.keymaster_v4.xml
  105. else
  106. DEVICE_MANIFEST_FILE += $(COMMON_PATH)/vintf/android.hw.keymaster_v3.xml
  107. endif