summaryrefslogtreecommitdiffstats
path: root/core/modules/vmware16
diff options
context:
space:
mode:
authorSimon Rettberg2022-07-14 14:19:21 +0200
committerSimon Rettberg2022-07-14 14:19:21 +0200
commit67f2676b02202d28303e9c8cf35a869d3f9c2761 (patch)
treea43ac9b53d77898cd646f171c2b0ecfb6cff0ac4 /core/modules/vmware16
parent[busybox] We need cmp now (diff)
downloadmltk-67f2676b02202d28303e9c8cf35a869d3f9c2761.tar.gz
mltk-67f2676b02202d28303e9c8cf35a869d3f9c2761.tar.xz
mltk-67f2676b02202d28303e9c8cf35a869d3f9c2761.zip
[vmware16] Add USB patcher
Diffstat (limited to 'core/modules/vmware16')
-rw-r--r--core/modules/vmware16/module.build5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/modules/vmware16/module.build b/core/modules/vmware16/module.build
index c6626de0..96045023 100644
--- a/core/modules/vmware16/module.build
+++ b/core/modules/vmware16/module.build
@@ -183,6 +183,11 @@ build() {
# /usr/lib/vmware-ovftool/vmware.eula
# If it cannot open these files (as we deleted them) it will crash with a SIGABRT (signal 6)
# coming from an uncaught exeception in libglibmm's file_get_contents
+ # Patch vmware-vmx to always enable USB autoconnect for VMs
+ if [[ "${OFFICIAL_VERSION}" = 16.2.* ]]; then
+ gcc -o "${MODULE_WORK_DIR}/patsch" "${MODULE_DIR}/usb-patch.c" || perror "USB patscher build failed"
+ "${MODULE_WORK_DIR}/patsch" "${MODULE_BUILD_DIR}/usr/lib/vmware/bin/vmware-vmx" || perror "Patsching vmware-vmx failed"
+ fi
}
post_copy() {