]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - ubuntu/vbox-update
UBUNTU: SAUCE: make sure ubuntu/xr-usb-serial builds for x86
[mirror_ubuntu-bionic-kernel.git] / ubuntu / vbox-update
index 7460aefbdafbb3754e728daeb03ea565ab090a5b..604f587db97d7072b352709805682c93896b5c31 100755 (executable)
@@ -37,6 +37,12 @@ do
        sed -i -e '1iKBUILD_EXTMOD=${srctree}/ubuntu/vbox' $make
 done
 
+# Fix up KERN_DIR to point at the kernel source tree
+for make in vbox/*/Makefile.include.header
+do
+       sed -i -e 's/^KERN_DIR := .*$/KERN_DIR := $(srctree)/' $make
+done
+
 # We're now using the vboxvideo module in drivers/staging, so disable
 # the version that was imported.
 sed -i -e 's: vboxvideo/::' vbox/Makefile