device-lynx.mk 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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 and Pixel extension
  70. include device/google/lynx/bluetooth/qti_default.mk
  71. # Keymaster HAL
  72. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  73. # Gatekeeper HAL
  74. #LOCAL_GATEKEEPER_PRODUCT_PACKAGE ?= [email protected]
  75. # Gatekeeper
  76. # PRODUCT_PACKAGES += \
  77. # [email protected]
  78. # Keymint replaces Keymaster
  79. # PRODUCT_PACKAGES += \
  80. # android.hardware.security.keymint-service
  81. # Keymaster
  82. #PRODUCT_PACKAGES += \
  83. # [email protected] \
  84. # [email protected]
  85. #PRODUCT_PACKAGES += [email protected]
  86. #PRODUCT_PACKAGES += [email protected]
  87. #LOCAL_KEYMASTER_PRODUCT_PACKAGE := [email protected]
  88. #LOCAL_KEYMASTER_PRODUCT_PACKAGE ?= [email protected]
  89. # PRODUCT_PROPERTY_OVERRIDES += \
  90. # ro.hardware.keystore_desede=true \
  91. # ro.hardware.keystore=software \
  92. # ro.hardware.gatekeeper=software
  93. # Fingerprint HAL
  94. GOODIX_CONFIG_BUILD_VERSION := g7_trusty
  95. include device/google/gs101/fingerprint/udfps_common.mk
  96. ifeq ($(filter factory%, $(TARGET_PRODUCT)),)
  97. include device/google/gs101/fingerprint/udfps_shipping.mk
  98. else
  99. include device/google/gs101/fingerprint/udfps_factory.mk
  100. endif
  101. # Vibrator HAL
  102. PRODUCT_VENDOR_PROPERTIES += \
  103. ro.vendor.vibrator.hal.long.frequency.shift=15
  104. # Trusty liboemcrypto.so
  105. PRODUCT_SOONG_NAMESPACES += vendor/google_devices/lynx/prebuilts