device.mk 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. BOARD_USES_RECOVERY_AS_BOOT := true
  25. TARGET_NO_RECOVERY := true
  26. AB_OTA_POSTINSTALL_CONFIG += \
  27. RUN_POSTINSTALL_system=true \
  28. POSTINSTALL_PATH_system=system/bin/otapreopt_script \
  29. FILESYSTEM_TYPE_system=ext4 \
  30. POSTINSTALL_OPTIONAL_system=true
  31. # Boot control HAL
  32. PRODUCT_PACKAGES += \
  33. android.hardware.boot@1.0-impl \
  34. android.hardware.boot@1.0-service
  35. #PRODUCT_PACKAGES += \
  36. # bootctrl.mt6761
  37. #PRODUCT_STATIC_BOOT_CONTROL_HAL := \
  38. # bootctrl.mt6761 \
  39. # libgptutils \
  40. # libz \
  41. # libcutils
  42. PRODUCT_PACKAGES := \
  43. bootctrl.mt6761 \
  44. libgptutils \
  45. libz \
  46. libcutils
  47. PRODUCT_PACKAGES += \
  48. otapreopt_script \
  49. cppreopts.sh \
  50. update_engine \
  51. update_verifier \
  52. update_engine_sideload