dlkm_loader: Add vendor_ramdisk modules.blocklist

This is a list of kernel modules that are known to be broken
on Dragonboards and should not be loaded automatically.

Suggested-by: Ramji Jiyani <ramjiyani@google.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: Ia179ce34e91bf994bb4c9b16ab76a9b8357d2e90
diff --git a/shared/utils/dlkm_loader/device.mk b/shared/utils/dlkm_loader/device.mk
index a4db638..c1ba32e 100644
--- a/shared/utils/dlkm_loader/device.mk
+++ b/shared/utils/dlkm_loader/device.mk
@@ -1,2 +1,6 @@
 AB_OTA_PARTITIONS += system_dlkm
 PRODUCT_PACKAGES += dlkm_loader
+
+# List of modules that should not load automatically
+PRODUCT_COPY_FILES += \
+    device/linaro/dragonboard/shared/utils/dlkm_loader/vendor_ramdisk.modules.blocklist:$(TARGET_COPY_OUT_VENDOR_RAMDISK)/lib/modules/modules.blocklist
diff --git a/shared/utils/dlkm_loader/vendor_ramdisk.modules.blocklist b/shared/utils/dlkm_loader/vendor_ramdisk.modules.blocklist
new file mode 100644
index 0000000..2099643
--- /dev/null
+++ b/shared/utils/dlkm_loader/vendor_ramdisk.modules.blocklist
@@ -0,0 +1,4 @@
+# List of kernel modules that should not load automatically
+
+# ptp_kvm.ko should only load when the kvm hypervisor is available on the target
+blocklist ptp_kvm.ko