summaryrefslogtreecommitdiffstats
path: root/core/modules/vbox-src
diff options
context:
space:
mode:
authorSimon Rettberg2023-03-31 16:04:45 +0200
committerSimon Rettberg2023-03-31 16:04:45 +0200
commit9120e0c3b81e8d9fb8306a176bc648299da28a72 (patch)
tree5c554ace185291564e46a31b9538aeca3c4c36aa /core/modules/vbox-src
parent[docker-ce] Quick and dirty fix for debian version (diff)
downloadmltk-9120e0c3b81e8d9fb8306a176bc648299da28a72.tar.gz
mltk-9120e0c3b81e8d9fb8306a176bc648299da28a72.tar.xz
mltk-9120e0c3b81e8d9fb8306a176bc648299da28a72.zip
[vbox-src] Fix kernel version variable name
Diffstat (limited to 'core/modules/vbox-src')
-rw-r--r--core/modules/vbox-src/module.build8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/modules/vbox-src/module.build b/core/modules/vbox-src/module.build
index 84055470..bcf85f9a 100644
--- a/core/modules/vbox-src/module.build
+++ b/core/modules/vbox-src/module.build
@@ -77,10 +77,10 @@ build() (
|| perror "'configure' failed."
# Newer version SUCK because they ignore --with-linux and require KERN_DIR to be set,
# and forthermode require it to end in "<version>/build", so we need to create a symlink *facepalm*
- mkdir -p "kernel/${KERNEL_VERSION_LONG}"
- ln -s "${KERNEL_HEADERS_DIR}" "kernel/${KERNEL_VERSION_LONG}/build" \
- || perror "Kernel symlink fail ('${KERNEL_HEADERS_DIR}' <- 'kernel/${KERNEL_VERSION_LONG}/build')"
- export KERN_DIR="$( readlink -f "kernel" )/${KERNEL_VERSION_LONG}/build"
+ mkdir -p "kernel/${TARGET_KERNEL_LONG}"
+ ln -nfs "${KERNEL_HEADERS_DIR}" "kernel/${TARGET_KERNEL_LONG}/build" \
+ || perror "Kernel symlink fail ('${KERNEL_HEADERS_DIR}' <- 'kernel/${TARGET_KERNEL_LONG}/build')"
+ export KERN_DIR="$( readlink -f "kernel" )/${TARGET_KERNEL_LONG}/build"
# Limit job count - can easily OOM
num="$( awk '$1 == "MemTotal:" { print int(0.25 + $2 / (1024*1024)) }' /proc/meminfo )"
(( num > CPU_CORES )) && num="$CPU_CORES"