device.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. #
  2. # Copyright (C) 2020 The Android Open Source Project
  3. # Copyright (C) 2020 The TWRP Open Source Project
  4. # Copyright (C) 2020 SebaUbuntu's TWRP device tree generator
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. #
  18. LOCAL_PATH := device/hmd/WSP_sprout
  19. # A/B
  20. AB_OTA_PARTITIONS += \
  21. boot \
  22. system \
  23. vendor
  24. AB_OTA_POSTINSTALL_CONFIG += \
  25. RUN_POSTINSTALL_system=true \
  26. POSTINSTALL_PATH_system=system/bin/otapreopt_script \
  27. FILESYSTEM_TYPE_system=ext4 \
  28. POSTINSTALL_OPTIONAL_system=true
  29. # Boot control HAL
  30. PRODUCT_PACKAGES += \
  31. android.hardware.boot@1.0-impl \
  32. android.hardware.boot@1.0-service
  33. PRODUCT_PACKAGES += \
  34. bootctrl.mt6761
  35. PRODUCT_STATIC_BOOT_CONTROL_HAL := \
  36. bootctrl.mt6761 \
  37. libgptutils \
  38. libz \
  39. libcutils
  40. PRODUCT_PACKAGES += \
  41. otapreopt_script \
  42. cppreopts.sh \
  43. update_engine \
  44. update_verifier \
  45. update_engine_sideload