omni_PL2.mk 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. # Inherit language packages
  23. $(call inherit-product, $(SRC_TARGET_DIR)/product/languages_full.mk)
  24. # A/B updater
  25. AB_OTA_UPDATER := true
  26. AB_OTA_PARTITIONS += \
  27. boot \
  28. system
  29. AB_OTA_POSTINSTALL_CONFIG += \
  30. RUN_POSTINSTALL_system=true \
  31. POSTINSTALL_PATH_system=system/bin/otapreopt_script \
  32. FILESYSTEM_TYPE_system=ext4 \
  33. POSTINSTALL_OPTIONAL_system=true
  34. PRODUCT_PACKAGES += \
  35. otapreopt_script \
  36. update_engine \
  37. update_engine_sideload \
  38. update_verifier
  39. # The following modules are included in debuggable builds only.
  40. PRODUCT_PACKAGES_DEBUG += \
  41. bootctl \
  42. update_engine_client
  43. # Boot control HAL
  44. PRODUCT_PACKAGES += \
  45. android.hardware.boot@1.0-impl \
  46. android.hardware.boot@1.0-service \
  47. bootctrl.sdm660
  48. PRODUCT_STATIC_BOOT_CONTROL_HAL := \
  49. bootctrl.sdm660 \
  50. libgptutils \
  51. libz
  52. # Charger
  53. PRODUCT_PACKAGES += \
  54. charger_res_images \
  55. charger
  56. # Define time zone data path
  57. ifneq ($(wildcard bionic/libc/zoneinfo),)
  58. TZDATAPATH := bionic/libc/zoneinfo
  59. else ifneq ($(wildcard system/timezone),)
  60. TZDATAPATH := system/timezone/output_data/iana
  61. endif
  62. # Time Zone data for Recovery
  63. ifdef TZDATAPATH
  64. PRODUCT_COPY_FILES += \
  65. $(TZDATAPATH)/tzdata:recovery/root/system/usr/share/zoneinfo/tzdata
  66. endif
  67. ## Device identifier. This must come after all inclusions
  68. PRODUCT_NAME := omni_PL2
  69. PRODUCT_DEVICE := PL2
  70. PRODUCT_BRAND := Nokia
  71. PRODUCT_MODEL := 6.1
  72. PRODUCT_MANUFACTURER := Nokia