omni_PL2.mk 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #
  2. # Copyright (C) 2018 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. # Release name
  17. PRODUCT_RELEASE_NAME := PL2
  18. # Inherit Build configuration for a very minimal build of the Open-Source part of the tree.
  19. $(call inherit-product, build/target/product/embedded.mk)
  20. # Inherit from our custom product configuration
  21. $(call inherit-product, vendor/omni/config/common.mk)
  22. # AB update support
  23. AB_OTA_UPDATER := true
  24. AB_OTA_PARTITIONS += \
  25. boot \
  26. system \
  27. vendor
  28. AB_OTA_POSTINSTALL_CONFIG += \
  29. RUN_POSTINSTALL_system=true \
  30. POSTINSTALL_PATH_system=system/bin/otapreopt_script \
  31. FILESYSTEM_TYPE_system=ext4 \
  32. POSTINSTALL_OPTIONAL_system=true
  33. PRODUCT_PACKAGES += \
  34. otapreopt_script
  35. # Boot control
  36. PRODUCT_PACKAGES_DEBUG += \
  37. android.hardware.boot@1.0-impl \
  38. android.hardware.boot@1.0-service \
  39. bootctl
  40. # Update engine
  41. PRODUCT_PACKAGES += \
  42. brillo_update_payload \
  43. update_engine \
  44. update_engine_sideload \
  45. update_verifier
  46. PRODUCT_PACKAGES += \
  47. bootctrl.sdm660
  48. PRODUCT_STATIC_BOOT_CONTROL_HAL := \
  49. bootctrl.sdm660 \
  50. libcutils \
  51. libgptutils \
  52. libz \
  53. PRODUCT_PACKAGES_DEBUG += \
  54. update_engine_client
  55. # Charger
  56. PRODUCT_PACKAGES += \
  57. charger_res_images \
  58. charger
  59. # Define time zone data path
  60. ifneq ($(wildcard bionic/libc/zoneinfo),)
  61. TZDATAPATH := bionic/libc/zoneinfo
  62. else ifneq ($(wildcard system/timezone),)
  63. TZDATAPATH := system/timezone/output_data/iana
  64. endif
  65. # Time Zone data for Recovery
  66. ifdef TZDATAPATH
  67. PRODUCT_COPY_FILES += \
  68. $(TZDATAPATH)/tzdata:recovery/root/system/usr/share/zoneinfo/tzdata
  69. endif
  70. # Keystore
  71. PRODUCT_PROPERTY_OVERRIDES += \
  72. ro.hardware.keystore=sdm660
  73. ## Device identifier. This must come after all inclusions
  74. PRODUCT_NAME := omni_PL2
  75. PRODUCT_DEVICE := PL2
  76. PRODUCT_MANUFACTURER := FIH
  77. PRODUCT_BRAND := Nokia
  78. PRODUCT_MODEL := Nokia 6.1