sm7325-common: Disable UFFD GC

Unable to determine UFFD GC flag for kernel version "5.4.268-qgki".
You can fix this by explicitly setting PRODUCT_ENABLE_UFFD_GC to "true" or
"false" based on the kernel version.
1. Set PRODUCT_ENABLE_UFFD_GC to "true" if the kernel supports userfaultfd(2)
   and MREMAP_DONTUNMAP.
2. Set PRODUCT_ENABLE_UFFD_GC to "false" otherwise.

Change-Id: Ie77d9a86a7fe94e4cade1868ffea27194f724e03
This commit is contained in:
Chirayu Desai 2024-06-13 22:02:20 +05:30 committed by Nolen Johnson
parent 17b770768b
commit 45e60673ef

View File

@ -249,6 +249,9 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \ PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config $(LOCAL_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
# Kernel
PRODUCT_ENABLE_UFFD_GC := false
# Keymaster # Keymaster
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.keymaster@4.1.vendor android.hardware.keymaster@4.1.vendor