device-lynx.mk 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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/gs201/device-shipping-common.mk
  23. include device/google/lynx/audio/lynx/audio-tables.mk
  24. include hardware/google/pixel/vibrator/cs40l26/device.mk
  25. include device/google/gs101/bluetooth/bluetooth.mk
  26. SOONG_CONFIG_lyric_tuning_product := cloudripper
  27. SOONG_CONFIG_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. # Bluetooth HAL
  70. DEVICE_MANIFEST_FILE += \
  71. device/google/lynx/bluetooth/manifest_bluetooth.xml
  72. PRODUCT_SOONG_NAMESPACES += \
  73. vendor/broadcom/bluetooth
  74. PRODUCT_PACKAGES += \
  75. [email protected] \
  76. bt_vendor.conf
  77. PRODUCT_COPY_FILES += \
  78. device/google/lynx/bluetooth/bt_vendor_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth/bt_vendor_overlay.conf
  79. # Keymaster HAL
  80. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  81. # Gatekeeper HAL
  82. #LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= [email protected]
  83. # Gatekeeper
  84. # PRODUCT_PACKAGES += \
  85. # [email protected]
  86. # Keymint replaces Keymaster
  87. # PRODUCT_PACKAGES += \
  88. # android.hardware.security.keymint-service
  89. # Keymaster
  90. #PRODUCT_PACKAGES += \
  91. # [email protected] \
  92. # [email protected]
  93. #PRODUCT_PACKAGES += [email protected]
  94. #PRODUCT_PACKAGES += [email protected]
  95. #LOCAL_KEYMASTER_PRODUCT_PACKAGE := [email protected]
  96. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  97. # PRODUCT_PROPERTY_OVERRIDES += \
  98. # ro.hardware.keystore_desede=true \
  99. # ro.hardware.keystore=software \
  100. # ro.hardware.gatekeeper=software
  101. # default BDADDR for EVB only
  102. PRODUCT_PROPERTY_OVERRIDES += \
  103. ro.vendor.bluetooth.evb_bdaddr="22:22:22:33:44:55"
  104. # Fingerprint HAL
  105. GOODIX_CONFIG_BUILD_VERSION := g7_trusty
  106. include device/google/gs101/fingerprint/udfps_common.mk
  107. ifeq ($(filter factory%, $(TARGET_PRODUCT)),)
  108. include device/google/gs101/fingerprint/udfps_shipping.mk
  109. else
  110. include device/google/gs101/fingerprint/udfps_factory.mk
  111. endif
  112. # Vibrator HAL
  113. PRODUCT_VENDOR_PROPERTIES += \
  114. ro.vendor.vibrator.hal.long.frequency.shift=15
  115. # Trusty liboemcrypto.so
  116. PRODUCT_SOONG_NAMESPACES += vendor/google_devices/lynx/prebuilts