dlkm_loader: Add vendor_ramdisk modules.blocklist am: f30799b08b
Original change: https://android-review.googlesource.com/c/device/linaro/dragonboard/+/2711578
Change-Id: Ief7808d83d881c00174857e2c56fe9ec4e2f5313
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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