device.mk 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #
  2. # Copyright (C) 2025 The Android Open Source Project
  3. # Copyright (C) 2025 The TWRP Open Source Project
  4. #
  5. # SPDX-License-Identifier: Apache-2.0
  6. #
  7. LOCAL_PATH := device/samsung/dm2q
  8. # Inherit from common AOSP config
  9. $(call inherit-product, $(SRC_TARGET_DIR)/product/base.mk)
  10. $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
  11. # Enable project quotas and casefolding for emulated storage without sdcardfs
  12. $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
  13. # Inherit some common TWRP stuff.
  14. $(call inherit-product, vendor/twrp/config/common.mk)
  15. BUILD_BROKEN_DUP_RULES := true
  16. RELAX_USES_LIBRARY_CHECK := true
  17. # A/B support
  18. AB_OTA_UPDATER := false
  19. # Dynamic partitions
  20. PRODUCT_USE_DYNAMIC_PARTITIONS := true
  21. # f2fs utilities
  22. PRODUCT_PACKAGES += \
  23. sg_write_buffer \
  24. f2fs_io \
  25. check_f2fs
  26. # Userdata checkpoint
  27. PRODUCT_PACKAGES += \
  28. checkpoint_gc
  29. # fastbootd
  30. PRODUCT_PACKAGES += fastbootd
  31. # Add default implementation of fastboot HAL.
  32. PRODUCT_PACKAGES += android.hardware.fastboot@1.0-impl-mock
  33. #namespace definition for librecovery_updater
  34. #differentiate legacy 'sg' or 'bsg' framework
  35. SOONG_CONFIG_NAMESPACES += ufsbsg
  36. SOONG_CONFIG_ufsbsg += ufsframework
  37. SOONG_CONFIG_ufsbsg_ufsframework := bsg
  38. # Enable Fuse Passthrough
  39. PRODUCT_PROPERTY_OVERRIDES += persist.sys.fuse.passthrough.enable=true
  40. # Soong namespaces
  41. PRODUCT_SOONG_NAMESPACES += \
  42. $(DEVICE_PATH)