dlkm_loader: Add vendor_ramdisk modules.blocklist am: f30799b08b am: 1ea356726a am: c8698d3f53 am: 6181093b83
Original change: https://android-review.googlesource.com/c/device/linaro/dragonboard/+/2711578
Change-Id: I26fd7d1ac4dcdb74e4dbf9a2fd83b96c3577c137
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