device-lynx.mk 6.3 KB

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