vmci.ko-gcc

This commit is contained in:
milisbir 2018-03-01 17:54:38 +02:00
parent 70d92fb0ba
commit 719cec87af
1 changed files with 3 additions and 3 deletions

View File

@ -4,13 +4,13 @@ mkdir -p /lib/modules/$(uname -r)/extra
cd /usr/src/vmware-14* cd /usr/src/vmware-14*
[ -f /usr/src/linux-$(uname -r)/vmlinux ] && mv /usr/src/linux-$(uname -r)/vmlinux /opt [ -f /usr/src/linux-$(uname -r)/vmlinux ] && mv /usr/src/linux-$(uname -r)/vmlinux /opt
make KVERSION=$(uname -r) VM_KBUILD=yes -C vmmon-only make KVERSION=$(uname -r) VM_KBUILD=yes -C vmmon-only
cp vmmon-only/vmmon.ko lib/modules/$(uname -r)/extra/ cp vmmon-only/vmmon.ko /lib/modules/$(uname -r)/extra/
make KVERSION=$(uname -r) VM_KBUILD=yes -C vmnet-only make KVERSION=$(uname -r) VM_KBUILD=yes -C vmnet-only
cp vmnet-only/vmnet.ko lib/modules/$(uname -r)/extra/ cp vmnet-only/vmnet.ko /lib/modules/$(uname -r)/extra/
[ -f /opt/vmlinux ] && mv /opt/vmlinux /usr/src/linux-$(uname -r)/ [ -f /opt/vmlinux ] && mv /opt/vmlinux /usr/src/linux-$(uname -r)/
depmod depmod
modprobe vmmon modprobe vmmon
modprobe vmnet modprobe vmnet
[ -f lib/modules/$(uname -r)/extra/vmci.ko ] && modprobe vmci [ -f /lib/modules/$(uname -r)/extra/vmci.ko ] && modprobe vmci