device-lynx.mk 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. #
  2. # Copyright (C) 2021 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. TARGET_KERNEL_DIR ?= device/google/lynx-kernel
  17. TARGET_BOARD_KERNEL_HEADERS := device/google/lynx-kernel/kernel-headers
  18. $(call inherit-product-if-exists, vendor/google_devices/lynx/prebuilts/device-vendor-lynx.mk)
  19. $(call inherit-product-if-exists, vendor/google_devices/gs201/prebuilts/device-vendor.mk)
  20. $(call inherit-product-if-exists, vendor/google_devices/gs201/proprietary/device-vendor.mk)
  21. $(call inherit-product-if-exists, vendor/google_devices/lynx/proprietary/lynx/device-vendor-lynx.mk)
  22. include device/google/lynx/audio/lynx/audio-tables.mk
  23. include device/google/gs201/device-shipping-common.mk
  24. include hardware/google/pixel/vibrator/cs40l26/device.mk
  25. $(call soong_config_set,lyric,tuning_product,cloudripper)
  26. $(call soong_config_set,google3a_config,target_device,cloudripper)
  27. # Init files
  28. PRODUCT_COPY_FILES += \
  29. device/google/lynx/conf/init.lynx.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/hw/init.lynx.rc
  30. # Recovery files
  31. PRODUCT_COPY_FILES += \
  32. device/google/lynx/conf/init.recovery.device.rc:$(TARGET_COPY_OUT_RECOVERY)/root/init.recovery.lynx.rc
  33. # insmod files
  34. PRODUCT_COPY_FILES += \
  35. device/google/lynx/init.insmod.lynx.cfg:$(TARGET_COPY_OUT_VENDOR)/etc/init.insmod.lynx.cfg
  36. # Camera
  37. PRODUCT_COPY_FILES += \
  38. device/google/lynx/media_profiles_lynx.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
  39. # NFC
  40. PRODUCT_COPY_FILES += \
  41. frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.xml \
  42. frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hce.xml \
  43. frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.hcef.xml \
  44. frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml \
  45. frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.uicc.xml \
  46. frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.nfc.ese.xml \
  47. device/google/lynx/nfc/libnfc-hal-st.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-hal-st.conf \
  48. device/google/lynx/nfc/libnfc-nci-lynx.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf
  49. PRODUCT_PACKAGES += \
  50. NfcNci \
  51. Tag \
  52. [email protected]
  53. # SecureElement
  54. PRODUCT_PACKAGES += \
  55. [email protected] \
  56. [email protected]
  57. PRODUCT_COPY_FILES += \
  58. frameworks/native/data/etc/android.hardware.se.omapi.ese.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.ese.xml \
  59. frameworks/native/data/etc/android.hardware.se.omapi.uicc.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.se.omapi.uicc.xml \
  60. device/google/lynx/nfc/libse-gto-hal.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal.conf \
  61. device/google/lynx/nfc/libse-gto-hal2.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libse-gto-hal2.conf
  62. DEVICE_MANIFEST_FILE += \
  63. device/google/lynx/nfc/manifest_nfc.xml \
  64. device/google/lynx/nfc/manifest_se.xml
  65. # Thermal Config
  66. PRODUCT_COPY_FILES += \
  67. device/google/lynx/thermal_info_config_lynx.json:$(TARGET_COPY_OUT_VENDOR)/etc/thermal_info_config.json
  68. # Power HAL config
  69. PRODUCT_COPY_FILES += \
  70. device/google/lynx/powerhint.json:$(TARGET_COPY_OUT_VENDOR)/etc/powerhint.json
  71. # PowerStats HAL
  72. PRODUCT_SOONG_NAMESPACES += device/google/lynx/powerstats
  73. # Bluetooth HAL and Pixel extension
  74. include device/google/lynx/bluetooth/qti_default.mk
  75. # Keymaster HAL
  76. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  77. # Gatekeeper HAL
  78. #LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= [email protected]
  79. # Gatekeeper
  80. # PRODUCT_PACKAGES += \
  81. # [email protected]
  82. # Keymint replaces Keymaster
  83. # PRODUCT_PACKAGES += \
  84. # android.hardware.security.keymint-service
  85. # Keymaster
  86. #PRODUCT_PACKAGES += \
  87. # [email protected] \
  88. # [email protected]
  89. #PRODUCT_PACKAGES += [email protected]
  90. #PRODUCT_PACKAGES += [email protected]
  91. #LOCAL_KEYMASTER_PRODUCT_PACKAGE := [email protected]
  92. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  93. # PRODUCT_PROPERTY_OVERRIDES += \
  94. # ro.hardware.keystore_desede=true \
  95. # ro.hardware.keystore=software \
  96. # ro.hardware.gatekeeper=software
  97. # Fingerprint HAL
  98. GOODIX_CONFIG_BUILD_VERSION := g7_trusty
  99. include device/google/gs101/fingerprint/udfps_common.mk
  100. ifeq ($(filter factory%, $(TARGET_PRODUCT)),)
  101. include device/google/gs101/fingerprint/udfps_shipping.mk
  102. else
  103. include device/google/gs101/fingerprint/udfps_factory.mk
  104. endif
  105. # Vibrator HAL
  106. PRODUCT_VENDOR_PROPERTIES += \
  107. ro.vendor.vibrator.hal.supported_primitives=243
  108. # Trusty liboemcrypto.so
  109. PRODUCT_SOONG_NAMESPACES += vendor/google_devices/lynx/prebuilts
  110. # GPS xml
  111. ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
  112. PRODUCT_COPY_FILES += \
  113. device/google/lynx/gps.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
  114. else
  115. PRODUCT_COPY_FILES += \
  116. device/google/lynx/gps_user.xml.l10:$(TARGET_COPY_OUT_VENDOR)/etc/gnss/gps.xml
  117. endif
  118. # DCK properties based on target
  119. PRODUCT_PROPERTY_OVERRIDES += \
  120. ro.gms.dck.eligible_wcc=2
  121. # WIFI COEX
  122. PRODUCT_COPY_FILES += \
  123. device/google/lynx/wifi/coex_table.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/coex_table.xml
  124. # Set zram size
  125. PRODUCT_VENDOR_PROPERTIES += \
  126. vendor.zram.size=3g